Skip to content

Commit c72baab

Browse files
committed
Change comparison to lower-case to prevent restore_secrets overriding it.
1 parent 692f44d commit c72baab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

messaging/integration_test/src/integration_test.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// limitations under the License.
1414

1515
#include <inttypes.h>
16+
#include <strings.h>
1617

1718
#include <algorithm>
1819
#include <cstdio>
@@ -43,7 +44,7 @@ namespace firebase_testapp_automated {
4344
// Your Firebase project's Server Key for Cloud Messaging goes here.
4445
// You can get this from Firebase Console, in your Project settings under Cloud
4546
// Messaging.
46-
const char kFcmServerKey[] = "REPLACE_WITH_YOUR_SERVER_KEY";
47+
const char kFcmServerKey[] = "AAAAM2ROZHA:APA91bHVTMuAdnIw014jKETAUYiy7qLvIo1zMHGMOszbZyZJaf_cEEd6MF9ad8qwS_DbgjYo36FeELhtTf-dsJCsLt6hurDnbRPIGcxMPtNMNSYC1Krh-KSn9GURceEwEA-sr-i3HTDU";
4748

4849
const char kRestEndpoint[] = "https://fcm.googleapis.com/fcm/send";
4950

@@ -222,7 +223,7 @@ bool FirebaseMessagingTest::CreateTestMessage(
222223
// Don't send HTTP requests in stub mode.
223224
return false;
224225
}
225-
if (strcmp(kFcmServerKey, "REPLACE_WITH_YOUR_SERVER_KEY") == 0) {
226+
if (strcasecmp(kFcmServerKey, "replace_with_your_server_key") == 0) {
226227
LogWarning(
227228
"Please put your Firebase Cloud Messaging server key in "
228229
"kFcmServerKey.");

0 commit comments

Comments
 (0)