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 <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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 } | 151 } |
152 | 152 |
153 TEST_F(ProfileSyncComponentsFactoryImplTest, CreatePSSDisableOne) { | 153 TEST_F(ProfileSyncComponentsFactoryImplTest, CreatePSSDisableOne) { |
154 TestSwitchDisablesType(syncer::ModelTypeSet(syncer::AUTOFILL)); | 154 TestSwitchDisablesType(syncer::ModelTypeSet(syncer::AUTOFILL)); |
155 } | 155 } |
156 | 156 |
157 TEST_F(ProfileSyncComponentsFactoryImplTest, CreatePSSDisableMultiple) { | 157 TEST_F(ProfileSyncComponentsFactoryImplTest, CreatePSSDisableMultiple) { |
158 TestSwitchDisablesType( | 158 TestSwitchDisablesType( |
159 syncer::ModelTypeSet(syncer::AUTOFILL_PROFILE, syncer::BOOKMARKS)); | 159 syncer::ModelTypeSet(syncer::AUTOFILL_PROFILE, syncer::BOOKMARKS)); |
160 } | 160 } |
OLD | NEW |