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 #ifndef CHROME_BROWSER_PREFS_PREF_SERVICE_MOCK_BUILDER_H_ | 5 #ifndef CHROME_BROWSER_PREFS_PREF_SERVICE_MOCK_BUILDER_H_ |
6 #define CHROME_BROWSER_PREFS_PREF_SERVICE_MOCK_BUILDER_H_ | 6 #define CHROME_BROWSER_PREFS_PREF_SERVICE_MOCK_BUILDER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "chrome/common/persistent_pref_store.h" | 11 #include "chrome/common/persistent_pref_store.h" |
12 #include "chrome/common/pref_store.h" | 12 #include "chrome/common/pref_store.h" |
13 | 13 |
14 class CommandLine; | 14 class CommandLine; |
15 class FilePath; | 15 class FilePath; |
16 class PrefService; | 16 class PrefService; |
17 class Profile; | |
18 | 17 |
19 namespace policy { | 18 namespace policy { |
20 class ConfigurationPolicyProvider; | 19 class ConfigurationPolicyProvider; |
21 } | 20 } |
22 | 21 |
23 // A helper that allows convenient building of custom PrefServices in tests. | 22 // A helper that allows convenient building of custom PrefServices in tests. |
24 class PrefServiceMockBuilder { | 23 class PrefServiceMockBuilder { |
25 public: | 24 public: |
26 PrefServiceMockBuilder(); | 25 PrefServiceMockBuilder(); |
27 ~PrefServiceMockBuilder(); | 26 ~PrefServiceMockBuilder(); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 scoped_refptr<PrefStore> extension_prefs_; | 62 scoped_refptr<PrefStore> extension_prefs_; |
64 scoped_refptr<PrefStore> command_line_prefs_; | 63 scoped_refptr<PrefStore> command_line_prefs_; |
65 scoped_refptr<PersistentPrefStore> user_prefs_; | 64 scoped_refptr<PersistentPrefStore> user_prefs_; |
66 scoped_refptr<PrefStore> recommended_platform_prefs_; | 65 scoped_refptr<PrefStore> recommended_platform_prefs_; |
67 scoped_refptr<PrefStore> recommended_cloud_prefs_; | 66 scoped_refptr<PrefStore> recommended_cloud_prefs_; |
68 | 67 |
69 DISALLOW_COPY_AND_ASSIGN(PrefServiceMockBuilder); | 68 DISALLOW_COPY_AND_ASSIGN(PrefServiceMockBuilder); |
70 }; | 69 }; |
71 | 70 |
72 #endif // CHROME_BROWSER_PREFS_PREF_SERVICE_MOCK_BUILDER_H_ | 71 #endif // CHROME_BROWSER_PREFS_PREF_SERVICE_MOCK_BUILDER_H_ |
OLD | NEW |