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 "components/signin/core/browser/signin_manager.h" | 5 #include "components/signin/core/browser/signin_manager.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
15 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
16 #include "base/strings/stringprintf.h" | |
17 #include "chrome/browser/browser_process.h" | 16 #include "chrome/browser/browser_process.h" |
18 #include "chrome/browser/chrome_notification_types.h" | 17 #include "chrome/browser/chrome_notification_types.h" |
19 #include "chrome/browser/prefs/browser_prefs.h" | 18 #include "chrome/browser/prefs/browser_prefs.h" |
20 #include "chrome/browser/signin/account_fetcher_service_factory.h" | 19 #include "chrome/browser/signin/account_fetcher_service_factory.h" |
21 #include "chrome/browser/signin/account_tracker_service_factory.h" | 20 #include "chrome/browser/signin/account_tracker_service_factory.h" |
22 #include "chrome/browser/signin/chrome_signin_client_factory.h" | 21 #include "chrome/browser/signin/chrome_signin_client_factory.h" |
23 #include "chrome/browser/signin/fake_account_fetcher_service_builder.h" | 22 #include "chrome/browser/signin/fake_account_fetcher_service_builder.h" |
24 #include "chrome/browser/signin/fake_profile_oauth2_token_service_builder.h" | 23 #include "chrome/browser/signin/fake_profile_oauth2_token_service_builder.h" |
25 #include "chrome/browser/signin/gaia_cookie_manager_service_factory.h" | 24 #include "chrome/browser/signin/gaia_cookie_manager_service_factory.h" |
26 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 25 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
589 | 588 |
590 EXPECT_EQ(gaia_id, manager_->GetAuthenticatedAccountId()); | 589 EXPECT_EQ(gaia_id, manager_->GetAuthenticatedAccountId()); |
591 EXPECT_EQ(gaia_id, profile()->GetPrefs()->GetString( | 590 EXPECT_EQ(gaia_id, profile()->GetPrefs()->GetString( |
592 prefs::kGoogleServicesAccountId)); | 591 prefs::kGoogleServicesAccountId)); |
593 | 592 |
594 base::RunLoop().RunUntilIdle(); | 593 base::RunLoop().RunUntilIdle(); |
595 EXPECT_EQ(AccountTrackerService::MIGRATION_DONE, | 594 EXPECT_EQ(AccountTrackerService::MIGRATION_DONE, |
596 tracker->GetMigrationState()); | 595 tracker->GetMigrationState()); |
597 } | 596 } |
598 } | 597 } |
OLD | NEW |