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

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

Issue 7624009: Original patch by rlarocque@chromium.org at http://codereview.chromium.org/7633077/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows build pt5 Created 9 years, 4 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
« no previous file with comments | « chrome/browser/sync/notifier/DEPS ('k') | chrome/browser/sync/profile_sync_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "testing/gtest/include/gtest/gtest.h"
8 #include "base/command_line.h" 7 #include "base/command_line.h"
9 #include "base/file_path.h" 8 #include "base/file_path.h"
10 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
11 #include "base/message_loop.h" 10 #include "base/message_loop.h"
12 #include "chrome/browser/sync/engine/syncapi.h"
13 #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_factory_impl.h"
14 #include "chrome/browser/sync/profile_sync_service.h" 13 #include "chrome/browser/sync/profile_sync_service.h"
15 #include "chrome/browser/sync/profile_sync_factory_impl.h"
16 #include "chrome/common/chrome_switches.h" 14 #include "chrome/common/chrome_switches.h"
17 #include "chrome/test/base/testing_browser_process_test.h" 15 #include "chrome/test/base/testing_browser_process_test.h"
18 #include "chrome/test/base/testing_profile.h" 16 #include "chrome/test/base/testing_profile.h"
19 #include "content/browser/browser_thread.h" 17 #include "content/browser/browser_thread.h"
18 #include "testing/gtest/include/gtest/gtest.h"
20 19
21 using browser_sync::DataTypeController; 20 using browser_sync::DataTypeController;
22 21
23 class ProfileSyncFactoryImplTest : public TestingBrowserProcessTest { 22 class ProfileSyncFactoryImplTest : public TestingBrowserProcessTest {
24 protected: 23 protected:
25 ProfileSyncFactoryImplTest() 24 ProfileSyncFactoryImplTest()
26 : ui_thread_(BrowserThread::UI, &message_loop_) {} 25 : ui_thread_(BrowserThread::UI, &message_loop_) {}
27 26
28 virtual void SetUp() { 27 virtual void SetUp() {
29 profile_.reset(new TestingProfile()); 28 profile_.reset(new TestingProfile());
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 132
134 TEST_F(ProfileSyncFactoryImplTest, CreatePSSDisableAutofillProfile) { 133 TEST_F(ProfileSyncFactoryImplTest, CreatePSSDisableAutofillProfile) {
135 TestSwitchDisablesType(switches::kDisableSyncAutofillProfile, 134 TestSwitchDisablesType(switches::kDisableSyncAutofillProfile,
136 syncable::AUTOFILL_PROFILE); 135 syncable::AUTOFILL_PROFILE);
137 } 136 }
138 137
139 TEST_F(ProfileSyncFactoryImplTest, CreatePSSDisablePasswords) { 138 TEST_F(ProfileSyncFactoryImplTest, CreatePSSDisablePasswords) {
140 TestSwitchDisablesType(switches::kDisableSyncPasswords, 139 TestSwitchDisablesType(switches::kDisableSyncPasswords,
141 syncable::PASSWORDS); 140 syncable::PASSWORDS);
142 } 141 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/notifier/DEPS ('k') | chrome/browser/sync/profile_sync_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698