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

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

Issue 10500016: Move test_browser_thread.h from content\test to content\public\test. This way we can enforce that i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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/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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/ui_model_worker_unittest.cc ('k') | chrome/browser/sync/profile_sync_service_autofill_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698