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_TEST_TESTING_PREF_SERVICE_H_ | 5 #ifndef CHROME_TEST_BASE_TESTING_PREF_SERVICE_H_ |
6 #define CHROME_TEST_TESTING_PREF_SERVICE_H_ | 6 #define CHROME_TEST_BASE_TESTING_PREF_SERVICE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "chrome/browser/prefs/pref_service.h" | 10 #include "chrome/browser/prefs/pref_service.h" |
11 | 11 |
12 class TestingBrowserProcess; | 12 class TestingBrowserProcess; |
13 class TestingPrefStore; | 13 class TestingPrefStore; |
14 | 14 |
15 // A PrefService subclass for testing. It operates totally in memory and | 15 // A PrefService subclass for testing. It operates totally in memory and |
16 // provides additional API for manipulating preferences at the different levels | 16 // provides additional API for manipulating preferences at the different levels |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 return &local_state_; | 87 return &local_state_; |
88 } | 88 } |
89 | 89 |
90 private: | 90 private: |
91 TestingBrowserProcess* browser_process_; | 91 TestingBrowserProcess* browser_process_; |
92 TestingPrefService local_state_; | 92 TestingPrefService local_state_; |
93 | 93 |
94 DISALLOW_COPY_AND_ASSIGN(ScopedTestingLocalState); | 94 DISALLOW_COPY_AND_ASSIGN(ScopedTestingLocalState); |
95 }; | 95 }; |
96 | 96 |
97 #endif // CHROME_TEST_TESTING_PREF_SERVICE_H_ | 97 #endif // CHROME_TEST_BASE_TESTING_PREF_SERVICE_H_ |
OLD | NEW |