| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |