@@ -68,13 +68,10 @@ public class MessagingAnalyticsRoboTest {
68
68
// Copy from FirebaseMessagingService so the tests break if the constants are changed
69
69
// TODO(dgiorgini) instead of copy&paste create a test to verify the original constants
70
70
static final String ANALYTICS_PREFIX = "google.c.a." ;
71
- static final String ANALYTICS_ENABLED = ANALYTICS_PREFIX + "e" ;
72
71
static final String ANALYTICS_COMPOSER_ID = ANALYTICS_PREFIX + "c_id" ;
73
72
static final String ANALYTICS_COMPOSER_LABEL = ANALYTICS_PREFIX + "c_l" ;
74
73
static final String ANALYTICS_MESSAGE_TIMESTAMP = ANALYTICS_PREFIX + "ts" ;
75
- static final String ANALYTICS_MESSAGE_USE_DEVICE_TIME = ANALYTICS_PREFIX + "udt" ;
76
74
static final String ANALYTICS_TRACK_CONVERSIONS = ANALYTICS_PREFIX + "tc" ;
77
- static final String ANALYTICS_ABT_EXPERIMENT = ANALYTICS_PREFIX + "abt" ;
78
75
static final String ANALYTICS_MESSAGE_LABEL = ANALYTICS_PREFIX + "m_l" ;
79
76
80
77
// Copy from MessagingAnalytics so the tests break if the constants are changed
@@ -997,7 +994,7 @@ public void testEventToProto_fullSampleTopicMessage() {
997
994
b .putString (MessagePayloadKeys .FROM , "/topics/my cool topic" );
998
995
b .putString (MessageNotificationKeys .ENABLE_NOTIFICATION , "1" );
999
996
b .putString (MessagePayloadKeys .MSGID , "an id!!!" );
1000
- b .putString (MessagePayloadKeys .DELIVERED_PRIORITY , "high " );
997
+ b .putString (MessagePayloadKeys .DELIVERED_PRIORITY , "normal " );
1001
998
b .putString (MessagePayloadKeys .SENDER_ID , "100101010" );
1002
999
b .putString (AnalyticsKeys .COMPOSER_LABEL , "composer label!" );
1003
1000
b .putString (AnalyticsKeys .MESSAGE_LABEL , "message label!" );
@@ -1016,6 +1013,7 @@ public void testEventToProto_fullSampleTopicMessage() {
1016
1013
assertThat (ev .getInstanceId ()).isEqualTo ("some_installation_id" );
1017
1014
assertThat (ev .getEvent ()).isEqualTo (MessagingClientEvent .Event .MESSAGE_DELIVERED );
1018
1015
assertThat (ev .getTtl ()).isEqualTo (22223L );
1016
+ assertThat (ev .getPriority ()).isEqualTo (5 );
1019
1017
assertThat (ev .getTopic ()).isEqualTo ("/topics/my cool topic" );
1020
1018
assertThat (ev .getAnalyticsLabel ()).isEqualTo ("message label!" );
1021
1019
assertThat (ev .getComposerLabel ()).isEqualTo ("composer label!" );
@@ -1049,6 +1047,7 @@ public void testEventToProto_fullSampleDirectedMessage() {
1049
1047
assertThat (ev .getInstanceId ()).isEqualTo ("some_installation_id" );
1050
1048
assertThat (ev .getEvent ()).isEqualTo (MessagingClientEvent .Event .MESSAGE_DELIVERED );
1051
1049
assertThat (ev .getTtl ()).isEqualTo (22223L );
1050
+ assertThat (ev .getPriority ()).isEqualTo (10 );
1052
1051
assertThat (ev .getTopic ()).isEmpty ();
1053
1052
assertThat (ev .getAnalyticsLabel ()).isEqualTo ("message label!" );
1054
1053
assertThat (ev .getComposerLabel ()).isEqualTo ("composer label!" );
0 commit comments