| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/gcm_driver/gcm_stats_recorder_android.h" | 5 #include "components/gcm_driver/gcm_stats_recorder_android.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 8 | 10 |
| 9 namespace gcm { | 11 namespace gcm { |
| 10 | 12 |
| 11 namespace { | 13 namespace { |
| 12 | 14 |
| 13 const char kTestAppId[] = "test_app_id"; | 15 const char kTestAppId[] = "test_app_id"; |
| 14 | 16 |
| 15 class GCMStatsRecorderAndroidTest : public ::testing::Test, | 17 class GCMStatsRecorderAndroidTest : public ::testing::Test, |
| 16 public GCMStatsRecorderAndroid::Delegate { | 18 public GCMStatsRecorderAndroid::Delegate { |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 97 |
| 96 RecordedActivities activities; | 98 RecordedActivities activities; |
| 97 recorder.CollectActivities(&activities); | 99 recorder.CollectActivities(&activities); |
| 98 | 100 |
| 99 EXPECT_EQ(0u, activities.registration_activities.size()); | 101 EXPECT_EQ(0u, activities.registration_activities.size()); |
| 100 } | 102 } |
| 101 | 103 |
| 102 } // namespace | 104 } // namespace |
| 103 | 105 |
| 104 } // namespace gcm | 106 } // namespace gcm |
| OLD | NEW |