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/file_path.h" | 8 #include "base/file_path.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "chrome/browser/sync/glue/data_type_controller.h" | 11 #include "chrome/browser/sync/glue/data_type_controller.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/common/chrome_switches.h" | 14 #include "chrome/common/chrome_switches.h" |
15 #include "chrome/test/base/testing_profile.h" | 15 #include "chrome/test/base/testing_profile.h" |
16 #include "content/test/test_browser_thread.h" | 16 #include "content/public/test/test_browser_thread.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 | 18 |
19 using browser_sync::DataTypeController; | 19 using browser_sync::DataTypeController; |
20 using content::BrowserThread; | 20 using content::BrowserThread; |
21 | 21 |
22 class ProfileSyncComponentsFactoryImplTest : public testing::Test { | 22 class ProfileSyncComponentsFactoryImplTest : public testing::Test { |
23 protected: | 23 protected: |
24 ProfileSyncComponentsFactoryImplTest() | 24 ProfileSyncComponentsFactoryImplTest() |
25 : ui_thread_(BrowserThread::UI, &message_loop_) {} | 25 : ui_thread_(BrowserThread::UI, &message_loop_) {} |
26 | 26 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 | 145 |
146 TEST_F(ProfileSyncComponentsFactoryImplTest, CreatePSSDisableAutofillProfile) { | 146 TEST_F(ProfileSyncComponentsFactoryImplTest, CreatePSSDisableAutofillProfile) { |
147 TestSwitchDisablesType(switches::kDisableSyncAutofillProfile, | 147 TestSwitchDisablesType(switches::kDisableSyncAutofillProfile, |
148 syncable::AUTOFILL_PROFILE); | 148 syncable::AUTOFILL_PROFILE); |
149 } | 149 } |
150 | 150 |
151 TEST_F(ProfileSyncComponentsFactoryImplTest, CreatePSSDisablePasswords) { | 151 TEST_F(ProfileSyncComponentsFactoryImplTest, CreatePSSDisablePasswords) { |
152 TestSwitchDisablesType(switches::kDisableSyncPasswords, | 152 TestSwitchDisablesType(switches::kDisableSyncPasswords, |
153 syncable::PASSWORDS); | 153 syncable::PASSWORDS); |
154 } | 154 } |
OLD | NEW |