| Index: chrome/browser/prefs/pref_observer_mock.cc
|
| diff --git a/chrome/browser/prefs/pref_observer_mock.cc b/chrome/browser/prefs/pref_observer_mock.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a41ed5c93c2dd885b865e295d86f241fb328b98e
|
| --- /dev/null
|
| +++ b/chrome/browser/prefs/pref_observer_mock.cc
|
| @@ -0,0 +1,19 @@
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "chrome/browser/prefs/pref_observer_mock.h"
|
| +
|
| +PrefObserverMock::PrefObserverMock() {}
|
| +
|
| +PrefObserverMock::~PrefObserverMock() {}
|
| +
|
| +void PrefObserverMock::Expect(const PrefService* prefs,
|
| + const std::string& pref_name,
|
| + const Value* value) {
|
| + EXPECT_CALL(*this, Observe(NotificationType(NotificationType::PREF_CHANGED),
|
| + Source<PrefService>(prefs),
|
| + Property(&Details<std::string>::ptr,
|
| + Pointee(pref_name))))
|
| + .With(PrefValueMatches(prefs, pref_name, value));
|
| +}
|
|
|