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

Side by Side Diff: chrome/browser/invalidation/gcm_invalidation_bridge_unittest.cc

Issue 319223002: Componentize TiclInvalidationService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "base/run_loop.h" 5 #include "base/run_loop.h"
6 #include "chrome/browser/invalidation/gcm_invalidation_bridge.h"
7 #include "chrome/browser/signin/fake_profile_oauth2_token_service.h" 6 #include "chrome/browser/signin/fake_profile_oauth2_token_service.h"
8 #include "chrome/browser/signin/fake_profile_oauth2_token_service_builder.h" 7 #include "chrome/browser/signin/fake_profile_oauth2_token_service_builder.h"
9 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 8 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
10 #include "chrome/test/base/testing_profile.h" 9 #include "chrome/test/base/testing_profile.h"
11 #include "components/gcm_driver/fake_gcm_driver.h" 10 #include "components/gcm_driver/fake_gcm_driver.h"
12 #include "components/gcm_driver/gcm_driver.h" 11 #include "components/gcm_driver/gcm_driver.h"
12 #include "components/invalidation/gcm_invalidation_bridge.h"
13 #include "content/public/test/test_browser_thread_bundle.h" 13 #include "content/public/test/test_browser_thread_bundle.h"
14 #include "google_apis/gaia/fake_identity_provider.h" 14 #include "google_apis/gaia/fake_identity_provider.h"
15 #include "google_apis/gaia/google_service_auth_error.h" 15 #include "google_apis/gaia/google_service_auth_error.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 namespace invalidation { 18 namespace invalidation {
19 namespace { 19 namespace {
20 20
21 // Implementation of GCMDriver::Register that always succeeds with the same 21 // Implementation of GCMDriver::Register that always succeeds with the same
22 // registrationId. 22 // registrationId.
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 delegate_->Register(base::Bind(&GCMInvalidationBridgeTest::RegisterFinished, 136 delegate_->Register(base::Bind(&GCMInvalidationBridgeTest::RegisterFinished,
137 base::Unretained(this))); 137 base::Unretained(this)));
138 base::RunLoop run_loop; 138 base::RunLoop run_loop;
139 run_loop.RunUntilIdle(); 139 run_loop.RunUntilIdle();
140 140
141 EXPECT_FALSE(registration_id_.empty()); 141 EXPECT_FALSE(registration_id_.empty());
142 } 142 }
143 143
144 } // namespace 144 } // namespace
145 } // namespace invalidation 145 } // namespace invalidation
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698