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 <memory> | 5 #include <memory> |
6 #include <utility> | 6 #include <utility> |
7 | 7 |
8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "base/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 #include "components/browser_sync/browser/profile_sync_service.h" | 12 #include "components/browser_sync/browser/profile_sync_service.h" |
13 #include "components/browser_sync/browser/profile_sync_test_util.h" | 13 #include "components/browser_sync/browser/profile_sync_test_util.h" |
14 #include "components/prefs/pref_service.h" | 14 #include "components/prefs/pref_service.h" |
15 #include "components/signin/core/browser/account_tracker_service.h" | 15 #include "components/signin/core/browser/account_tracker_service.h" |
16 #include "components/signin/core/browser/fake_profile_oauth2_token_service.h" | 16 #include "components/signin/core/browser/fake_profile_oauth2_token_service.h" |
17 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 17 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
18 #include "components/signin/core/browser/signin_manager.h" | 18 #include "components/signin/core/browser/signin_manager.h" |
19 #include "components/signin/core/common/signin_pref_names.h" | 19 #include "components/signin/core/common/signin_pref_names.h" |
20 #include "components/sync_driver/data_type_manager.h" | 20 #include "components/sync_driver/data_type_manager.h" |
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 pref_service()->ClearPref(sync_driver::prefs::kSyncFirstSetupComplete); | 476 pref_service()->ClearPref(sync_driver::prefs::kSyncFirstSetupComplete); |
477 | 477 |
478 EXPECT_CALL(observer_, OnStateChanged()).Times(AnyNumber()); | 478 EXPECT_CALL(observer_, OnStateChanged()).Times(AnyNumber()); |
479 sync_service_->Initialize(); | 479 sync_service_->Initialize(); |
480 | 480 |
481 sync_service_->SetSetupInProgress(true); | 481 sync_service_->SetSetupInProgress(true); |
482 IssueTestTokens(account_id); | 482 IssueTestTokens(account_id); |
483 sync_service_->SetSetupInProgress(false); | 483 sync_service_->SetSetupInProgress(false); |
484 EXPECT_FALSE(sync_service_->IsSyncActive()); | 484 EXPECT_FALSE(sync_service_->IsSyncActive()); |
485 } | 485 } |
OLD | NEW |