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

Side by Side Diff: chrome/browser/sync/profile_sync_service_startup_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 <utility> 5 #include <utility>
6 6
7 #include "base/files/file_util.h" 7 #include "base/files/file_util.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/prefs/pref_service.h"
10 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
11 #include "base/thread_task_runner_handle.h" 10 #include "base/thread_task_runner_handle.h"
12 #include "build/build_config.h" 11 #include "build/build_config.h"
13 #include "components/browser_sync/browser/profile_sync_service.h" 12 #include "components/browser_sync/browser/profile_sync_service.h"
14 #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"
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"
21 #include "components/sync_driver/data_type_manager_mock.h" 21 #include "components/sync_driver/data_type_manager_mock.h"
22 #include "components/sync_driver/fake_data_type_controller.h" 22 #include "components/sync_driver/fake_data_type_controller.h"
23 #include "components/sync_driver/glue/sync_backend_host_mock.h" 23 #include "components/sync_driver/glue/sync_backend_host_mock.h"
24 #include "components/sync_driver/pref_names.h" 24 #include "components/sync_driver/pref_names.h"
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 pref_service()->ClearPref(sync_driver::prefs::kSyncFirstSetupComplete); 480 pref_service()->ClearPref(sync_driver::prefs::kSyncFirstSetupComplete);
481 481
482 EXPECT_CALL(observer_, OnStateChanged()).Times(AnyNumber()); 482 EXPECT_CALL(observer_, OnStateChanged()).Times(AnyNumber());
483 sync_service_->Initialize(); 483 sync_service_->Initialize();
484 484
485 sync_service_->SetSetupInProgress(true); 485 sync_service_->SetSetupInProgress(true);
486 IssueTestTokens(account_id); 486 IssueTestTokens(account_id);
487 sync_service_->SetSetupInProgress(false); 487 sync_service_->SetSetupInProgress(false);
488 EXPECT_FALSE(sync_service_->IsSyncActive()); 488 EXPECT_FALSE(sync_service_->IsSyncActive());
489 } 489 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service_android.cc ('k') | chrome/browser/sync/sync_ui_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698