| 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 <stddef.h> |
| 8 |
| 7 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| 11 #include "build/build_config.h" |
| 9 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/profiles/profile_downloader.h" | 13 #include "chrome/browser/profiles/profile_downloader.h" |
| 11 #include "chrome/browser/profiles/profile_info_cache.h" | 14 #include "chrome/browser/profiles/profile_info_cache.h" |
| 12 #include "chrome/browser/profiles/profile_info_cache_unittest.h" | 15 #include "chrome/browser/profiles/profile_info_cache_unittest.h" |
| 13 #include "chrome/browser/profiles/profiles_state.h" | 16 #include "chrome/browser/profiles/profiles_state.h" |
| 14 #include "chrome/browser/signin/account_tracker_service_factory.h" | 17 #include "chrome/browser/signin/account_tracker_service_factory.h" |
| 15 #include "chrome/browser/signin/chrome_signin_client_factory.h" | 18 #include "chrome/browser/signin/chrome_signin_client_factory.h" |
| 16 #include "chrome/browser/signin/signin_manager_factory.h" | 19 #include "chrome/browser/signin/signin_manager_factory.h" |
| 17 #include "chrome/browser/signin/test_signin_client_builder.h" | 20 #include "chrome/browser/signin/test_signin_client_builder.h" |
| 18 #include "chrome/common/pref_names.h" | 21 #include "chrome/common/pref_names.h" |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 // Log in. | 310 // Log in. |
| 308 EXPECT_CALL(*service(), Update()); | 311 EXPECT_CALL(*service(), Update()); |
| 309 AccountTrackerServiceFactory::GetForProfile(profile()) | 312 AccountTrackerServiceFactory::GetForProfile(profile()) |
| 310 ->SeedAccountInfo("gaia_id", "pat@example.com"); | 313 ->SeedAccountInfo("gaia_id", "pat@example.com"); |
| 311 SigninManager* signin_manager = | 314 SigninManager* signin_manager = |
| 312 SigninManagerFactory::GetForProfile(profile()); | 315 SigninManagerFactory::GetForProfile(profile()); |
| 313 signin_manager->OnExternalSigninCompleted("pat@example.com"); | 316 signin_manager->OnExternalSigninCompleted("pat@example.com"); |
| 314 } | 317 } |
| 315 | 318 |
| 316 #endif | 319 #endif |
| OLD | NEW |