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

Side by Side Diff: chrome/test/base/testing_pref_service_syncable.h

Issue 12223091: Split testing_pref_service.h/.cc into two parts, generic vs. Chrome-specific. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments. Created 7 years, 10 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
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698