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 #ifndef CHROME_TEST_BASE_TESTING_PREF_SERVICE_H_ | 5 #ifndef CHROME_TEST_BASE_TESTING_PREF_SERVICE_H_ |
6 #define CHROME_TEST_BASE_TESTING_PREF_SERVICE_H_ | 6 #define CHROME_TEST_BASE_TESTING_PREF_SERVICE_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/prefs/pref_registry.h" |
| 11 #include "base/prefs/pref_service.h" |
10 #include "base/prefs/testing_pref_store.h" | 12 #include "base/prefs/testing_pref_store.h" |
11 #include "chrome/browser/prefs/pref_registry.h" | |
12 #include "chrome/browser/prefs/pref_service.h" | |
13 #include "chrome/browser/prefs/pref_service_syncable.h" | 13 #include "chrome/browser/prefs/pref_service_syncable.h" |
14 | 14 |
15 class PrefModelAssociator; | 15 class PrefModelAssociator; |
16 class PrefNotifierImpl; | 16 class PrefNotifierImpl; |
17 class PrefRegistrySimple; | 17 class PrefRegistrySimple; |
18 class PrefRegistrySyncable; | 18 class PrefRegistrySyncable; |
19 class TestingBrowserProcess; | 19 class TestingBrowserProcess; |
20 class TestingPrefStore; | 20 class TestingPrefStore; |
21 | 21 |
22 // A PrefService subclass for testing. It operates totally in memory and | 22 // A PrefService subclass for testing. It operates totally in memory and |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 pref_store->SetValue(path, value); | 219 pref_store->SetValue(path, value); |
220 } | 220 } |
221 | 221 |
222 template<class SuperPrefService> | 222 template<class SuperPrefService> |
223 void TestingPrefServiceBase<SuperPrefService>::RemovePref( | 223 void TestingPrefServiceBase<SuperPrefService>::RemovePref( |
224 TestingPrefStore* pref_store, const char* path) { | 224 TestingPrefStore* pref_store, const char* path) { |
225 pref_store->RemoveValue(path); | 225 pref_store->RemoveValue(path); |
226 } | 226 } |
227 | 227 |
228 #endif // CHROME_TEST_BASE_TESTING_PREF_SERVICE_H_ | 228 #endif // CHROME_TEST_BASE_TESTING_PREF_SERVICE_H_ |
OLD | NEW |