Chromium Code Reviews

Side by Side Diff: chrome/common/pref_store_observer_mock.h

Issue 5441002: Clean up pref change notification handling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix extension prefs breakage Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « chrome/common/pref_store_base.cc ('k') | chrome/test/testing_pref_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 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_COMMON_PREF_STORE_OBSERVER_MOCK_H_
6 #define CHROME_COMMON_PREF_STORE_OBSERVER_MOCK_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "chrome/common/pref_store.h"
11 #include "testing/gmock/include/gmock/gmock.h"
12
13 // A gmock-ified implementation of PrefStore::ObserverInterface.
14 class PrefStoreObserverMock : public PrefStore::ObserverInterface {
15 public:
16 PrefStoreObserverMock() {}
17 virtual ~PrefStoreObserverMock() {}
18
19 MOCK_METHOD1(OnPrefValueChanged, void(const std::string&));
20 MOCK_METHOD0(OnInitializationCompleted, void());
21
22 private:
23 DISALLOW_COPY_AND_ASSIGN(PrefStoreObserverMock);
24 };
25
26 #endif // CHROME_COMMON_PREF_STORE_OBSERVER_MOCK_H_
OLDNEW
« no previous file with comments | « chrome/common/pref_store_base.cc ('k') | chrome/test/testing_pref_service.h » ('j') | no next file with comments »

Powered by Google App Engine