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 BASE_PREFS_TESTING_PREF_SERVICE_H_ |
6 #define CHROME_TEST_BASE_TESTING_PREF_SERVICE_H_ | 6 #define BASE_PREFS_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" | 10 #include "base/prefs/pref_registry.h" |
11 #include "base/prefs/pref_service.h" | 11 #include "base/prefs/pref_service.h" |
12 #include "base/prefs/testing_pref_store.h" | 12 #include "base/prefs/testing_pref_store.h" |
13 | 13 |
14 class PrefNotifierImpl; | 14 class PrefNotifierImpl; |
15 class PrefRegistrySimple; | 15 class PrefRegistrySimple; |
16 class TestingPrefStore; | 16 class TestingPrefStore; |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 pref_store->SetValue(path, value); | 186 pref_store->SetValue(path, value); |
187 } | 187 } |
188 | 188 |
189 template<class SuperPrefService, class ConstructionPrefRegistry> | 189 template<class SuperPrefService, class ConstructionPrefRegistry> |
190 void TestingPrefServiceBase< | 190 void TestingPrefServiceBase< |
191 SuperPrefService, ConstructionPrefRegistry>::RemovePref( | 191 SuperPrefService, ConstructionPrefRegistry>::RemovePref( |
192 TestingPrefStore* pref_store, const char* path) { | 192 TestingPrefStore* pref_store, const char* path) { |
193 pref_store->RemoveValue(path); | 193 pref_store->RemoveValue(path); |
194 } | 194 } |
195 | 195 |
196 #endif // CHROME_TEST_BASE_TESTING_PREF_SERVICE_H_ | 196 #endif // BASE_PREFS_TESTING_PREF_SERVICE_H_ |
OLD | NEW |