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

Side by Side Diff: base/prefs/pref_store_observer_mock.h

Issue 11243002: Move the bits of Prefs where production code has only trivially easy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, fix gypi problem Created 8 years, 2 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
« no previous file with comments | « base/prefs/pref_store.cc ('k') | base/prefs/pref_store_observer_mock.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_COMMON_PREF_STORE_OBSERVER_MOCK_H_ 5 #ifndef BASE_PREFS_PREF_STORE_OBSERVER_MOCK_H_
6 #define CHROME_COMMON_PREF_STORE_OBSERVER_MOCK_H_ 6 #define BASE_PREFS_PREF_STORE_OBSERVER_MOCK_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "chrome/common/pref_store.h" 9 #include "base/prefs/pref_store.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
11 11
12 // A gmock-ified implementation of PrefStore::Observer. 12 // A gmock-ified implementation of PrefStore::Observer.
13 class PrefStoreObserverMock : public PrefStore::Observer { 13 class PrefStoreObserverMock : public PrefStore::Observer {
14 public: 14 public:
15 PrefStoreObserverMock(); 15 PrefStoreObserverMock();
16 virtual ~PrefStoreObserverMock(); 16 virtual ~PrefStoreObserverMock();
17 17
18 MOCK_METHOD1(OnPrefValueChanged, void(const std::string&)); 18 MOCK_METHOD1(OnPrefValueChanged, void(const std::string&));
19 MOCK_METHOD1(OnInitializationCompleted, void(bool)); 19 MOCK_METHOD1(OnInitializationCompleted, void(bool));
20 20
21 private: 21 private:
22 DISALLOW_COPY_AND_ASSIGN(PrefStoreObserverMock); 22 DISALLOW_COPY_AND_ASSIGN(PrefStoreObserverMock);
23 }; 23 };
24 24
25 #endif // CHROME_COMMON_PREF_STORE_OBSERVER_MOCK_H_ 25 #endif // BASE_PREFS_PREF_STORE_OBSERVER_MOCK_H_
OLDNEW
« no previous file with comments | « base/prefs/pref_store.cc ('k') | base/prefs/pref_store_observer_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698