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

Side by Side Diff: components/browser_sync/profile_sync_service_startup_unittest.cc

Issue 2388973002: [Sync] Removing duplicate includes, part 2. (Closed)
Patch Set: Rebase. Created 4 years, 2 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 <memory> 5 #include "components/browser_sync/profile_sync_service.h"
6 #include <utility>
maxbogue 2016/10/04 00:28:52 profile_sync_service.h should not be including <ut
skym 2016/10/04 15:49:40 Done.
7 6
8 #include "base/files/file_util.h" 7 #include "base/files/file_util.h"
9 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
10 #include "base/threading/thread_task_runner_handle.h" 9 #include "base/threading/thread_task_runner_handle.h"
11 #include "build/build_config.h"
12 #include "components/browser_sync/profile_sync_service.h"
13 #include "components/browser_sync/profile_sync_test_util.h" 10 #include "components/browser_sync/profile_sync_test_util.h"
14 #include "components/prefs/pref_service.h" 11 #include "components/prefs/pref_service.h"
15 #include "components/signin/core/browser/account_tracker_service.h" 12 #include "components/signin/core/browser/account_tracker_service.h"
16 #include "components/signin/core/browser/fake_profile_oauth2_token_service.h" 13 #include "components/signin/core/browser/fake_profile_oauth2_token_service.h"
17 #include "components/signin/core/browser/profile_oauth2_token_service.h" 14 #include "components/signin/core/browser/profile_oauth2_token_service.h"
18 #include "components/signin/core/browser/signin_manager.h" 15 #include "components/signin/core/browser/signin_manager.h"
19 #include "components/signin/core/common/signin_pref_names.h" 16 #include "components/signin/core/common/signin_pref_names.h"
20 #include "components/sync/driver/data_type_manager.h"
21 #include "components/sync/driver/data_type_manager_mock.h" 17 #include "components/sync/driver/data_type_manager_mock.h"
22 #include "components/sync/driver/fake_data_type_controller.h" 18 #include "components/sync/driver/fake_data_type_controller.h"
23 #include "components/sync/driver/glue/sync_backend_host_mock.h" 19 #include "components/sync/driver/glue/sync_backend_host_mock.h"
24 #include "components/sync/driver/pref_names.h" 20 #include "components/sync/driver/pref_names.h"
25 #include "components/sync/driver/sync_api_component_factory_mock.h" 21 #include "components/sync/driver/sync_api_component_factory_mock.h"
26 #include "components/sync/driver/sync_prefs.h"
27 #include "components/sync/driver/sync_service_observer.h" 22 #include "components/sync/driver/sync_service_observer.h"
28 #include "components/syncable_prefs/pref_service_syncable.h" 23 #include "components/syncable_prefs/pref_service_syncable.h"
29 #include "google_apis/gaia/gaia_auth_consumer.h" 24 #include "google_apis/gaia/gaia_auth_consumer.h"
30 #include "google_apis/gaia/gaia_constants.h" 25 #include "google_apis/gaia/gaia_constants.h"
31 #include "google_apis/gaia/oauth2_token_service.h"
32 #include "net/url_request/url_request_test_util.h" 26 #include "net/url_request/url_request_test_util.h"
33 #include "testing/gmock/include/gmock/gmock.h" 27 #include "testing/gmock/include/gmock/gmock.h"
34 #include "testing/gtest/include/gtest/gtest.h" 28 #include "testing/gtest/include/gtest/gtest.h"
35 29
36 using syncer::DataTypeManager; 30 using syncer::DataTypeManager;
37 using syncer::DataTypeManagerMock; 31 using syncer::DataTypeManagerMock;
38 using syncer::SyncBackendHostMock; 32 using syncer::SyncBackendHostMock;
39 using testing::_; 33 using testing::_;
40 using testing::AnyNumber; 34 using testing::AnyNumber;
41 using testing::DoAll; 35 using testing::DoAll;
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 EXPECT_CALL(observer_, OnStateChanged()).Times(AnyNumber()); 465 EXPECT_CALL(observer_, OnStateChanged()).Times(AnyNumber());
472 sync_service_->Initialize(); 466 sync_service_->Initialize();
473 467
474 auto sync_blocker = sync_service_->GetSetupInProgressHandle(); 468 auto sync_blocker = sync_service_->GetSetupInProgressHandle();
475 IssueTestTokens(account_id); 469 IssueTestTokens(account_id);
476 sync_blocker.reset(); 470 sync_blocker.reset();
477 EXPECT_FALSE(sync_service_->IsSyncActive()); 471 EXPECT_FALSE(sync_service_->IsSyncActive());
478 } 472 }
479 473
480 } // namespace browser_sync 474 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/sync_global_error_unittest.cc ('k') | components/browser_sync/profile_sync_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698