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

Side by Side Diff: chrome/browser/signin/signin_manager_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
« no previous file with comments | « chrome/browser/signin/signin_manager_factory.cc ('k') | chrome/browser/signin/signin_promo.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "components/signin/core/browser/signin_manager.h" 5 #include "components/signin/core/browser/signin_manager.h"
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/bind_helpers.h" 11 #include "base/bind_helpers.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/prefs/pref_registry_simple.h"
15 #include "base/prefs/pref_service.h"
16 #include "base/prefs/scoped_user_pref_update.h"
17 #include "base/prefs/testing_pref_service.h"
18 #include "base/run_loop.h" 14 #include "base/run_loop.h"
19 #include "base/strings/stringprintf.h" 15 #include "base/strings/stringprintf.h"
20 #include "chrome/browser/browser_process.h" 16 #include "chrome/browser/browser_process.h"
21 #include "chrome/browser/chrome_notification_types.h" 17 #include "chrome/browser/chrome_notification_types.h"
22 #include "chrome/browser/prefs/browser_prefs.h" 18 #include "chrome/browser/prefs/browser_prefs.h"
23 #include "chrome/browser/signin/account_fetcher_service_factory.h" 19 #include "chrome/browser/signin/account_fetcher_service_factory.h"
24 #include "chrome/browser/signin/account_tracker_service_factory.h" 20 #include "chrome/browser/signin/account_tracker_service_factory.h"
25 #include "chrome/browser/signin/chrome_signin_client_factory.h" 21 #include "chrome/browser/signin/chrome_signin_client_factory.h"
26 #include "chrome/browser/signin/fake_account_fetcher_service_builder.h" 22 #include "chrome/browser/signin/fake_account_fetcher_service_builder.h"
27 #include "chrome/browser/signin/fake_profile_oauth2_token_service_builder.h" 23 #include "chrome/browser/signin/fake_profile_oauth2_token_service_builder.h"
28 #include "chrome/browser/signin/gaia_cookie_manager_service_factory.h" 24 #include "chrome/browser/signin/gaia_cookie_manager_service_factory.h"
29 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 25 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
30 #include "chrome/browser/signin/signin_manager_factory.h" 26 #include "chrome/browser/signin/signin_manager_factory.h"
31 #include "chrome/browser/signin/test_signin_client_builder.h" 27 #include "chrome/browser/signin/test_signin_client_builder.h"
32 #include "chrome/common/pref_names.h" 28 #include "chrome/common/pref_names.h"
33 #include "chrome/common/url_constants.h" 29 #include "chrome/common/url_constants.h"
34 #include "chrome/test/base/testing_browser_process.h" 30 #include "chrome/test/base/testing_browser_process.h"
35 #include "chrome/test/base/testing_profile.h" 31 #include "chrome/test/base/testing_profile.h"
32 #include "components/prefs/pref_registry_simple.h"
33 #include "components/prefs/pref_service.h"
34 #include "components/prefs/scoped_user_pref_update.h"
35 #include "components/prefs/testing_pref_service.h"
36 #include "components/signin/core/browser/account_tracker_service.h" 36 #include "components/signin/core/browser/account_tracker_service.h"
37 #include "components/signin/core/browser/fake_account_fetcher_service.h" 37 #include "components/signin/core/browser/fake_account_fetcher_service.h"
38 #include "components/signin/core/browser/fake_profile_oauth2_token_service.h" 38 #include "components/signin/core/browser/fake_profile_oauth2_token_service.h"
39 #include "components/signin/core/browser/profile_oauth2_token_service.h" 39 #include "components/signin/core/browser/profile_oauth2_token_service.h"
40 #include "components/signin/core/browser/test_signin_client.h" 40 #include "components/signin/core/browser/test_signin_client.h"
41 #include "components/signin/core/common/signin_pref_names.h" 41 #include "components/signin/core/common/signin_pref_names.h"
42 #include "content/public/browser/child_process_security_policy.h" 42 #include "content/public/browser/child_process_security_policy.h"
43 #include "content/public/browser/notification_source.h" 43 #include "content/public/browser/notification_source.h"
44 #include "content/public/test/test_browser_thread_bundle.h" 44 #include "content/public/test/test_browser_thread_bundle.h"
45 #include "google_apis/gaia/gaia_constants.h" 45 #include "google_apis/gaia/gaia_constants.h"
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 587
588 EXPECT_EQ(gaia_id, manager_->GetAuthenticatedAccountId()); 588 EXPECT_EQ(gaia_id, manager_->GetAuthenticatedAccountId());
589 EXPECT_EQ(gaia_id, profile()->GetPrefs()->GetString( 589 EXPECT_EQ(gaia_id, profile()->GetPrefs()->GetString(
590 prefs::kGoogleServicesAccountId)); 590 prefs::kGoogleServicesAccountId));
591 591
592 base::RunLoop().RunUntilIdle(); 592 base::RunLoop().RunUntilIdle();
593 EXPECT_EQ(AccountTrackerService::MIGRATION_DONE, 593 EXPECT_EQ(AccountTrackerService::MIGRATION_DONE,
594 tracker->GetMigrationState()); 594 tracker->GetMigrationState());
595 } 595 }
596 } 596 }
OLDNEW
« no previous file with comments | « chrome/browser/signin/signin_manager_factory.cc ('k') | chrome/browser/signin/signin_promo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698