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

Side by Side Diff: chrome/browser/profiles/gaia_info_update_service_unittest.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
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> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/prefs/pref_service.h"
12 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
13 #include "build/build_config.h" 12 #include "build/build_config.h"
14 #include "chrome/browser/browser_process.h" 13 #include "chrome/browser/browser_process.h"
15 #include "chrome/browser/profiles/profile_downloader.h" 14 #include "chrome/browser/profiles/profile_downloader.h"
16 #include "chrome/browser/profiles/profile_info_cache.h" 15 #include "chrome/browser/profiles/profile_info_cache.h"
17 #include "chrome/browser/profiles/profile_info_cache_unittest.h" 16 #include "chrome/browser/profiles/profile_info_cache_unittest.h"
18 #include "chrome/browser/profiles/profiles_state.h" 17 #include "chrome/browser/profiles/profiles_state.h"
19 #include "chrome/browser/signin/account_tracker_service_factory.h" 18 #include "chrome/browser/signin/account_tracker_service_factory.h"
20 #include "chrome/browser/signin/chrome_signin_client_factory.h" 19 #include "chrome/browser/signin/chrome_signin_client_factory.h"
21 #include "chrome/browser/signin/signin_manager_factory.h" 20 #include "chrome/browser/signin/signin_manager_factory.h"
22 #include "chrome/browser/signin/test_signin_client_builder.h" 21 #include "chrome/browser/signin/test_signin_client_builder.h"
23 #include "chrome/common/pref_names.h" 22 #include "chrome/common/pref_names.h"
24 #include "chrome/test/base/testing_browser_process.h" 23 #include "chrome/test/base/testing_browser_process.h"
25 #include "chrome/test/base/testing_profile.h" 24 #include "chrome/test/base/testing_profile.h"
26 #include "chrome/test/base/testing_profile_manager.h" 25 #include "chrome/test/base/testing_profile_manager.h"
26 #include "components/prefs/pref_service.h"
27 #include "components/signin/core/browser/account_tracker_service.h" 27 #include "components/signin/core/browser/account_tracker_service.h"
28 #include "components/signin/core/common/signin_pref_names.h" 28 #include "components/signin/core/common/signin_pref_names.h"
29 #include "components/syncable_prefs/pref_service_syncable.h" 29 #include "components/syncable_prefs/pref_service_syncable.h"
30 #include "testing/gmock/include/gmock/gmock.h" 30 #include "testing/gmock/include/gmock/gmock.h"
31 #include "ui/gfx/image/image.h" 31 #include "ui/gfx/image/image.h"
32 #include "ui/gfx/image/image_unittest_util.h" 32 #include "ui/gfx/image/image_unittest_util.h"
33 33
34 using ::testing::Return; 34 using ::testing::Return;
35 using ::testing::NiceMock; 35 using ::testing::NiceMock;
36 36
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 // Log in. 313 // Log in.
314 EXPECT_CALL(*service(), Update()); 314 EXPECT_CALL(*service(), Update());
315 AccountTrackerServiceFactory::GetForProfile(profile()) 315 AccountTrackerServiceFactory::GetForProfile(profile())
316 ->SeedAccountInfo("gaia_id", "pat@example.com"); 316 ->SeedAccountInfo("gaia_id", "pat@example.com");
317 SigninManager* signin_manager = 317 SigninManager* signin_manager =
318 SigninManagerFactory::GetForProfile(profile()); 318 SigninManagerFactory::GetForProfile(profile());
319 signin_manager->OnExternalSigninCompleted("pat@example.com"); 319 signin_manager->OnExternalSigninCompleted("pat@example.com");
320 } 320 }
321 321
322 #endif 322 #endif
OLDNEW
« no previous file with comments | « chrome/browser/profiles/gaia_info_update_service.cc ('k') | chrome/browser/profiles/host_zoom_map_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698