Skip to content

Commit d60bf24

Browse files
committed
Merge branch 'mrschmidt/fieldvalue' of https://github.com/firebase/firebase-cpp-sdk into mrschmidt/fieldvalue
2 parents cedfa82 + 89cb07b commit d60bf24

File tree

288 files changed

+3893
-339
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

288 files changed

+3893
-339
lines changed

.github/workflows/integration_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
required: true
1515
apis:
1616
description: 'CSV of apis to build and test'
17-
default: 'admob,analytics,auth,database,dynamic_links,firestore,functions,installations,messaging,remote_config,storage'
17+
default: 'firestore'
1818
required: true
1919
operating_systems:
2020
description: 'CSV of VMs to run on'

auth/src/android/common_android.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ static const ErrorCodeMapping kFirebaseAuthCodes[] = {
115115
{"ERROR_UNSUPPORTED_FIRST_FACTOR", kAuthErrorUnsupportedFirstFactor},
116116
{"ERROR_EMAIL_CHANGE_NEEDS_VERIFICATION",
117117
kAuthErrorEmailChangeNeedsVerification},
118-
{"ERROR_USER_CANCELLED", kAuthErrorMissingOrInvalidNonce},
118+
{"ERROR_MISSING_OR_INVALID_NONCE", kAuthErrorMissingOrInvalidNonce},
119+
{"ERROR_USER_CANCELLED", kAuthErrorUserCancelled},
120+
{"ERROR_UNSUPPORTED_PASSTHROUGH_OPERATION",
121+
kAuthErrorUnsupportedPassthroughOperation},
122+
{"ERROR_TOKEN_REFRESH_UNAVAILABLE", kAuthErrorTokenRefreshUnavailable},
119123
{nullptr},
120124
};
121125

auth/src/include/firebase/auth/types.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,14 @@ enum AuthError {
419419
/// IDP sign-in.
420420
kAuthErrorUserCancelled,
421421

422+
/// Indicates that a request was made to an unsupported backend endpoint in
423+
/// passthrough mode.
424+
kAuthErrorUnsupportedPassthroughOperation,
425+
426+
/// Indicates that a token refresh was requested, but neither a refresh token
427+
/// nor a custom token provider is available.
428+
kAuthErrorTokenRefreshUnavailable,
429+
422430
#endif // INTERNAL_EXEPERIMENTAL
423431
};
424432

firestore/generate_android_test.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
#!/usr/grte/v4/bin/python2.7
22

33
# Copyright 2020 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
417
"""Generate JUnit4 tests from gtest files.
518
619
This script reads a template and fills in test-specific information such as .so

firestore/integration_test/src/integration_test.cc

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
// Copyright 2019 Google Inc. All rights reserved.
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
1+
/*
2+
* Copyright 2021 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
1416

1517
/*
1618
IMPORTANT: This file is used by both the regular and the internal Firestore

firestore/integration_test_emulator.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
#!/bin/bash
22

33
# Copyright 2020 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
416

517
source googletest.sh || exit 1
618

firestore/integration_test_internal/abseil-cpp.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019 Google
1+
# Copyright 2019 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

firestore/integration_test_internal/integration_test.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,7 @@
726726
"\"$(SRCROOT)/external/googletest/src/googletest\"",
727727
"\"$(SRCROOT)/external/googletest/src/googlemock\"",
728728
"\"$(SRCROOT)/Pods/FirebaseFirestore\"",
729+
"\"$(SRCROOT)/Pods/FirebaseFirestore/Firestore/Protos/nanopb\"",
729730
"\"$(SRCROOT)/../..\"",
730731
);
731732
INFOPLIST_FILE = "$(SRCROOT)/Info.plist";
@@ -768,6 +769,7 @@
768769
"\"$(SRCROOT)/external/googletest/src/googletest\"",
769770
"\"$(SRCROOT)/external/googletest/src/googlemock\"",
770771
"\"$(SRCROOT)/Pods/FirebaseFirestore\"",
772+
"\"$(SRCROOT)/Pods/FirebaseFirestore/Firestore/Protos/nanopb\"",
771773
"\"$(SRCROOT)/../..\"",
772774
);
773775
INFOPLIST_FILE = "$(SRCROOT)/Info.plist";
@@ -829,6 +831,7 @@
829831
"\"$(SRCROOT)/external/googletest/src/googletest\"",
830832
"\"$(SRCROOT)/external/googletest/src/googlemock\"",
831833
"\"$(SRCROOT)/Pods/FirebaseFirestore\"",
834+
"\"$(SRCROOT)/Pods/FirebaseFirestore/Firestore/Protos/nanopb\"",
832835
"\"$(SRCROOT)/../..\"",
833836
);
834837
INFOPLIST_FILE = "$(SRCROOT)/Info.plist";
@@ -894,6 +897,7 @@
894897
"\"$(SRCROOT)/external/googletest/src/googletest\"",
895898
"\"$(SRCROOT)/external/googletest/src/googlemock\"",
896899
"\"$(SRCROOT)/Pods/FirebaseFirestore\"",
900+
"\"$(SRCROOT)/Pods/FirebaseFirestore/Firestore/Protos/nanopb\"",
897901
"\"$(SRCROOT)/../..\"",
898902
);
899903
INFOPLIST_FILE = "$(SRCROOT)/Info.plist";

firestore/integration_test_internal/src/android/cancellation_token_source.cc

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
// Copyright 2021 Google LLC
1+
/*
2+
* Copyright 2021 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
216

317
#include "android/cancellation_token_source.h"
418

firestore/integration_test_internal/src/android/cancellation_token_source.h

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
// Copyright 2021 Google LLC
1+
/*
2+
* Copyright 2021 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
216

317
#ifndef FIREBASE_FIRESTORE_INTEGRATION_TEST_INTERNAL_SRC_ANDROID_CANCELLATION_TOKEN_SOURCE_H_
418
#define FIREBASE_FIRESTORE_INTEGRATION_TEST_INTERNAL_SRC_ANDROID_CANCELLATION_TOKEN_SOURCE_H_

0 commit comments

Comments
 (0)