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

Unified Diff: chrome/browser/services/gcm/gcm_profile_service_unittest.cc

Issue 98173009: GCM Checkin implementation with unit tests and protobufs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gcm-store
Patch Set: Final patch with gcm::CheckinRequest Created 6 years, 11 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 | « chrome/browser/services/gcm/gcm_profile_service.cc ('k') | google_apis/gcm/engine/checkin_request.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/services/gcm/gcm_profile_service_unittest.cc
diff --git a/chrome/browser/services/gcm/gcm_profile_service_unittest.cc b/chrome/browser/services/gcm/gcm_profile_service_unittest.cc
index cd01c4a4cbb0fe98becc84dac1cd1612be9d1362..35daa3f738215f413742c9164307a636ae4f17da 100644
--- a/chrome/browser/services/gcm/gcm_profile_service_unittest.cc
+++ b/chrome/browser/services/gcm/gcm_profile_service_unittest.cc
@@ -168,7 +168,7 @@ class GCMProfileServiceTest : public testing::Test,
return gcm_event_router_mock_.get();
}
- virtual void CheckInFinished(const GCMClient::CheckInInfo& checkin_info,
+ virtual void CheckInFinished(const GCMClient::CheckinInfo& checkin_info,
GCMClient::Result result) OVERRIDE {
checkin_info_ = checkin_info;
SignalCompleted();
@@ -229,7 +229,7 @@ class GCMProfileServiceTest : public testing::Test,
ExtensionService* extension_service_; // Not owned.
scoped_ptr<base::RunLoop> run_loop_;
scoped_ptr<GCMEventRouterMock> gcm_event_router_mock_;
- GCMClient::CheckInInfo checkin_info_;
+ GCMClient::CheckinInfo checkin_info_;
#if defined(OS_CHROMEOS)
chromeos::ScopedTestDeviceSettingsService test_device_settings_service_;
@@ -300,8 +300,8 @@ void GCMEventRouterMock::OnSendError(const std::string& app_id,
TEST_F(GCMProfileServiceTest, CheckIn) {
EXPECT_TRUE(checkin_info_.IsValid());
- GCMClient::CheckInInfo expected_checkin_info =
- GCMClientMock::GetCheckInInfoFromUsername(kTestingUsername);
+ GCMClient::CheckinInfo expected_checkin_info =
+ GCMClientMock::GetCheckinInfoFromUsername(kTestingUsername);
EXPECT_EQ(expected_checkin_info.android_id, checkin_info_.android_id);
EXPECT_EQ(expected_checkin_info.secret, checkin_info_.secret);
}
@@ -309,7 +309,7 @@ TEST_F(GCMProfileServiceTest, CheckIn) {
TEST_F(GCMProfileServiceTest, CheckInFromPrefsStore) {
// The first check-in should be successful.
EXPECT_TRUE(checkin_info_.IsValid());
- GCMClient::CheckInInfo saved_checkin_info = checkin_info_;
+ GCMClient::CheckinInfo saved_checkin_info = checkin_info_;
checkin_info_.Reset();
// Check-in should not reach the server. Forcing GCMClient server error should
« no previous file with comments | « chrome/browser/services/gcm/gcm_profile_service.cc ('k') | google_apis/gcm/engine/checkin_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698