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

Side by Side Diff: chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc

Issue 408003002: [Sync] Fix namespace for sync_driver component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 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 | Annotate | Revision Log
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 <vector> 5 #include <vector>
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 11 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
12 #include "chrome/browser/sync/profile_sync_components_factory_impl.h" 12 #include "chrome/browser/sync/profile_sync_components_factory_impl.h"
13 #include "chrome/browser/sync/profile_sync_service.h" 13 #include "chrome/browser/sync/profile_sync_service.h"
14 #include "chrome/browser/sync/profile_sync_service_factory.h" 14 #include "chrome/browser/sync/profile_sync_service_factory.h"
15 #include "chrome/browser/sync/supervised_user_signin_manager_wrapper.h" 15 #include "chrome/browser/sync/supervised_user_signin_manager_wrapper.h"
16 #include "chrome/common/chrome_switches.h" 16 #include "chrome/common/chrome_switches.h"
17 #include "chrome/common/chrome_version_info.h" 17 #include "chrome/common/chrome_version_info.h"
18 #include "chrome/test/base/testing_profile.h" 18 #include "chrome/test/base/testing_profile.h"
19 #include "components/signin/core/browser/profile_oauth2_token_service.h" 19 #include "components/signin/core/browser/profile_oauth2_token_service.h"
20 #include "components/sync_driver/data_type_controller.h" 20 #include "components/sync_driver/data_type_controller.h"
21 #include "content/public/test/test_browser_thread_bundle.h" 21 #include "content/public/test/test_browser_thread_bundle.h"
22 #include "google_apis/gaia/gaia_constants.h" 22 #include "google_apis/gaia/gaia_constants.h"
23 #include "google_apis/gaia/oauth2_token_service.h" 23 #include "google_apis/gaia/oauth2_token_service.h"
24 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
25 #include "ui/app_list/app_list_switches.h" 25 #include "ui/app_list/app_list_switches.h"
26 26
27 using browser_sync::DataTypeController; 27 using sync_driver::DataTypeController;
28 28
29 class ProfileSyncComponentsFactoryImplTest : public testing::Test { 29 class ProfileSyncComponentsFactoryImplTest : public testing::Test {
30 protected: 30 protected:
31 ProfileSyncComponentsFactoryImplTest() 31 ProfileSyncComponentsFactoryImplTest()
32 : thread_bundle_(content::TestBrowserThreadBundle::DEFAULT) {} 32 : thread_bundle_(content::TestBrowserThreadBundle::DEFAULT) {}
33 33
34 virtual void SetUp() { 34 virtual void SetUp() {
35 profile_.reset(new TestingProfile()); 35 profile_.reset(new TestingProfile());
36 base::FilePath program_path(FILE_PATH_LITERAL("chrome.exe")); 36 base::FilePath program_path(FILE_PATH_LITERAL("chrome.exe"));
37 command_line_.reset(new CommandLine(program_path)); 37 command_line_.reset(new CommandLine(program_path));
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 } 153 }
154 154
155 TEST_F(ProfileSyncComponentsFactoryImplTest, CreatePSSDisableOne) { 155 TEST_F(ProfileSyncComponentsFactoryImplTest, CreatePSSDisableOne) {
156 TestSwitchDisablesType(syncer::ModelTypeSet(syncer::AUTOFILL)); 156 TestSwitchDisablesType(syncer::ModelTypeSet(syncer::AUTOFILL));
157 } 157 }
158 158
159 TEST_F(ProfileSyncComponentsFactoryImplTest, CreatePSSDisableMultiple) { 159 TEST_F(ProfileSyncComponentsFactoryImplTest, CreatePSSDisableMultiple) {
160 TestSwitchDisablesType( 160 TestSwitchDisablesType(
161 syncer::ModelTypeSet(syncer::AUTOFILL_PROFILE, syncer::BOOKMARKS)); 161 syncer::ModelTypeSet(syncer::AUTOFILL_PROFILE, syncer::BOOKMARKS));
162 } 162 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698