summaryrefslogtreecommitdiffstats
path: root/chrome/browser/prefs/mock_pref_change_callback.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/prefs/mock_pref_change_callback.cc')
-rw-r--r--chrome/browser/prefs/mock_pref_change_callback.cc25
1 files changed, 0 insertions, 25 deletions
diff --git a/chrome/browser/prefs/mock_pref_change_callback.cc b/chrome/browser/prefs/mock_pref_change_callback.cc
deleted file mode 100644
index 3dbd2a0..0000000
--- a/chrome/browser/prefs/mock_pref_change_callback.cc
+++ /dev/null
@@ -1,25 +0,0 @@
-// 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/mock_pref_change_callback.h"
-
-#include "base/bind.h"
-#include "chrome/common/chrome_notification_types.h"
-
-MockPrefChangeCallback::MockPrefChangeCallback(PrefServiceBase* prefs)
- : prefs_(prefs) {
-}
-
-MockPrefChangeCallback::~MockPrefChangeCallback() {}
-
-PrefChangeRegistrar::NamedChangeCallback MockPrefChangeCallback::GetCallback() {
- return base::Bind(&MockPrefChangeCallback::OnPreferenceChanged,
- base::Unretained(this));
-}
-
-void MockPrefChangeCallback::Expect(const std::string& pref_name,
- const Value* value) {
- EXPECT_CALL(*this, OnPreferenceChanged(pref_name))
- .With(PrefValueMatches(prefs_, pref_name, value));
-}