OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/profiles/gaia_info_update_service.h" | 5 #include "chrome/browser/profiles/gaia_info_update_service.h" |
6 | 6 |
7 #include "base/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/prefs/pref_service_syncable.h" | |
11 #include "chrome/browser/profiles/profile_downloader.h" | 10 #include "chrome/browser/profiles/profile_downloader.h" |
12 #include "chrome/browser/profiles/profile_info_cache.h" | 11 #include "chrome/browser/profiles/profile_info_cache.h" |
13 #include "chrome/browser/profiles/profile_info_cache_unittest.h" | 12 #include "chrome/browser/profiles/profile_info_cache_unittest.h" |
14 #include "chrome/browser/profiles/profiles_state.h" | 13 #include "chrome/browser/profiles/profiles_state.h" |
15 #include "chrome/browser/signin/account_tracker_service_factory.h" | 14 #include "chrome/browser/signin/account_tracker_service_factory.h" |
16 #include "chrome/browser/signin/chrome_signin_client_factory.h" | 15 #include "chrome/browser/signin/chrome_signin_client_factory.h" |
17 #include "chrome/browser/signin/signin_manager_factory.h" | 16 #include "chrome/browser/signin/signin_manager_factory.h" |
18 #include "chrome/browser/signin/test_signin_client_builder.h" | 17 #include "chrome/browser/signin/test_signin_client_builder.h" |
19 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
20 #include "chrome/test/base/testing_browser_process.h" | 19 #include "chrome/test/base/testing_browser_process.h" |
21 #include "chrome/test/base/testing_profile.h" | 20 #include "chrome/test/base/testing_profile.h" |
22 #include "chrome/test/base/testing_profile_manager.h" | 21 #include "chrome/test/base/testing_profile_manager.h" |
23 #include "components/signin/core/browser/account_tracker_service.h" | 22 #include "components/signin/core/browser/account_tracker_service.h" |
| 23 #include "components/syncable_prefs/pref_service_syncable.h" |
24 #include "testing/gmock/include/gmock/gmock.h" | 24 #include "testing/gmock/include/gmock/gmock.h" |
25 #include "ui/gfx/image/image.h" | 25 #include "ui/gfx/image/image.h" |
26 #include "ui/gfx/image/image_unittest_util.h" | 26 #include "ui/gfx/image/image_unittest_util.h" |
27 | 27 |
28 using ::testing::Return; | 28 using ::testing::Return; |
29 using ::testing::NiceMock; | 29 using ::testing::NiceMock; |
30 | 30 |
31 namespace { | 31 namespace { |
32 | 32 |
33 class ProfileDownloaderMock : public ProfileDownloader { | 33 class ProfileDownloaderMock : public ProfileDownloader { |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 // Log in. | 306 // Log in. |
307 EXPECT_CALL(*service(), Update()); | 307 EXPECT_CALL(*service(), Update()); |
308 AccountTrackerServiceFactory::GetForProfile(profile()) | 308 AccountTrackerServiceFactory::GetForProfile(profile()) |
309 ->SeedAccountInfo("gaia_id", "pat@example.com"); | 309 ->SeedAccountInfo("gaia_id", "pat@example.com"); |
310 SigninManager* signin_manager = | 310 SigninManager* signin_manager = |
311 SigninManagerFactory::GetForProfile(profile()); | 311 SigninManagerFactory::GetForProfile(profile()); |
312 signin_manager->OnExternalSigninCompleted("pat@example.com"); | 312 signin_manager->OnExternalSigninCompleted("pat@example.com"); |
313 } | 313 } |
314 | 314 |
315 #endif | 315 #endif |
OLD | NEW |