@@ -360,6 +360,12 @@ TEST_F(FirebaseMessagingTest, TestRequestPermission) {
360
360
TEST_F (FirebaseMessagingTest, TestReceiveToken) {
361
361
TEST_REQUIRES_USER_INTERACTION_ON_IOS;
362
362
363
+ // TODO(b/196589796) Test fails on Android emulators and causes failures in
364
+ // our CI. Since we don't have a good way to deterine if the runtime is an
365
+ // emulator or real device, we should disable the test in CI until we find
366
+ // the cause of problem.
367
+ TEST_REQUIRES_USER_INTERACTION_ON_ANDROID;
368
+
363
369
EXPECT_TRUE (RequestPermission ());
364
370
365
371
EXPECT_TRUE (::firebase::messaging::IsTokenRegistrationOnInitEnabled ());
@@ -375,6 +381,12 @@ TEST_F(FirebaseMessagingTest, TestReceiveToken) {
375
381
TEST_F (FirebaseMessagingTest, TestSubscribeAndUnsubscribe) {
376
382
TEST_REQUIRES_USER_INTERACTION_ON_IOS;
377
383
384
+ // TODO(b/196589796) Test fails on Android emulators and causes failures in
385
+ // our CI. Since we don't have a good way to deterine if the runtime is an
386
+ // emulator or real device, we should disable the test in CI until we find
387
+ // the cause of problem.
388
+ TEST_REQUIRES_USER_INTERACTION_ON_ANDROID;
389
+
378
390
EXPECT_TRUE (RequestPermission ());
379
391
EXPECT_TRUE (WaitForToken ());
380
392
EXPECT_TRUE (WaitForCompletion (firebase::messaging::Subscribe (" SubscribeTest" ),
@@ -502,6 +514,12 @@ TEST_F(FirebaseMessagingTest, TestSendMessageToToken) {
502
514
TEST_REQUIRES_USER_INTERACTION_ON_IOS;
503
515
SKIP_TEST_ON_DESKTOP;
504
516
517
+ // TODO(b/196589796) Test fails on Android emulators and causes failures in
518
+ // our CI. Since we don't have a good way to deterine if the runtime is an
519
+ // emulator or real device, we should disable the test in CI until we find
520
+ // the cause of problem.
521
+ TEST_REQUIRES_USER_INTERACTION_ON_ANDROID;
522
+
505
523
EXPECT_TRUE (RequestPermission ());
506
524
EXPECT_TRUE (WaitForToken ());
507
525
@@ -533,6 +551,12 @@ TEST_F(FirebaseMessagingTest, TestSendMessageToTopic) {
533
551
TEST_REQUIRES_USER_INTERACTION_ON_IOS;
534
552
SKIP_TEST_ON_DESKTOP;
535
553
554
+ // TODO(b/196589796) Test fails on Android emulators and causes failures in
555
+ // our CI. Since we don't have a good way to deterine if the runtime is an
556
+ // emulator or real device, we should disable the test in CI until we find
557
+ // the cause of problem.
558
+ TEST_REQUIRES_USER_INTERACTION_ON_ANDROID;
559
+
536
560
EXPECT_TRUE (RequestPermission ());
537
561
EXPECT_TRUE (WaitForToken ());
538
562
@@ -581,6 +605,12 @@ TEST_F(FirebaseMessagingTest, TestChangingListener) {
581
605
TEST_REQUIRES_USER_INTERACTION_ON_IOS;
582
606
SKIP_TEST_ON_DESKTOP;
583
607
608
+ // TODO(b/196589796) Test fails on Android emulators and causes failures in
609
+ // our CI. Since we don't have a good way to deterine if the runtime is an
610
+ // emulator or real device, we should disable the test in CI until we find
611
+ // the cause of problem.
612
+ TEST_REQUIRES_USER_INTERACTION_ON_ANDROID;
613
+
584
614
EXPECT_TRUE (RequestPermission ());
585
615
EXPECT_TRUE (WaitForToken ());
586
616
0 commit comments