Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1325)

Unified Diff: components/gcm_driver/gcm_stats_recorder_android_unittest.cc

Issue 2250263007: Pass incoming sender_id to GCMStatsRecorderAndroid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/gcm_driver/gcm_stats_recorder_android.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/gcm_driver/gcm_stats_recorder_android_unittest.cc
diff --git a/components/gcm_driver/gcm_stats_recorder_android_unittest.cc b/components/gcm_driver/gcm_stats_recorder_android_unittest.cc
index d71f4666700a020a1251621db8f1b9d757f51883..e7b32673922db85796b6e68a81ede17d9787582e 100644
--- a/components/gcm_driver/gcm_stats_recorder_android_unittest.cc
+++ b/components/gcm_driver/gcm_stats_recorder_android_unittest.cc
@@ -14,6 +14,7 @@ namespace gcm {
namespace {
const char kTestAppId[] = "test_app_id";
+const char kTestSenderId[] = "test_sender_id";
class GCMStatsRecorderAndroidTest : public ::testing::Test,
public GCMStatsRecorderAndroid::Delegate {
@@ -53,7 +54,8 @@ TEST_F(GCMStatsRecorderAndroidTest, RecordsAndCallsDelegate) {
recorder.RecordUnregistrationResponse(kTestAppId, true /* success */);
EXPECT_EQ(4u, activity_recorded_calls());
- recorder.RecordDataMessageReceived(kTestAppId, 42 /* message_byte_size */);
+ recorder.RecordDataMessageReceived(kTestAppId, kTestSenderId,
+ 42 /* message_byte_size */);
EXPECT_EQ(5u, activity_recorded_calls());
recorder.RecordDecryptionFailure(
« no previous file with comments | « components/gcm_driver/gcm_stats_recorder_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698