OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_TEST_BASE_TESTING_PREF_SERVICE_SYNCABLE_H_ |
| 6 #define CHROME_TEST_BASE_TESTING_PREF_SERVICE_SYNCABLE_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "chrome/browser/prefs/pref_service_syncable.h" |
| 10 #include "chrome/test/base/testing_pref_service.h" |
| 11 |
| 12 class PrefRegistrySyncable; |
| 13 |
| 14 // Test version of PrefServiceSyncable. |
| 15 class TestingPrefServiceSyncable |
| 16 : public TestingPrefServiceBase<PrefServiceSyncable, PrefRegistrySyncable> { |
| 17 public: |
| 18 TestingPrefServiceSyncable(); |
| 19 virtual ~TestingPrefServiceSyncable(); |
| 20 |
| 21 // This is provided as a convenience; on a production PrefService |
| 22 // you would do all registrations before constructing it, passing it |
| 23 // a PrefRegistry via its constructor (or via e.g. PrefServiceBuilder). |
| 24 PrefRegistrySyncable* registry(); |
| 25 |
| 26 private: |
| 27 DISALLOW_COPY_AND_ASSIGN(TestingPrefServiceSyncable); |
| 28 }; |
| 29 |
| 30 template<> |
| 31 TestingPrefServiceBase<PrefServiceSyncable, PrefRegistrySyncable>:: |
| 32 TestingPrefServiceBase( |
| 33 TestingPrefStore* managed_prefs, |
| 34 TestingPrefStore* user_prefs, |
| 35 TestingPrefStore* recommended_prefs, |
| 36 PrefRegistrySyncable* pref_registry, |
| 37 PrefNotifierImpl* pref_notifier); |
| 38 |
| 39 #endif // CHROME_TEST_BASE_TESTING_PREF_SERVICE_SYNCABLE_H_ |
| 40 |
OLD | NEW |