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

Unified Diff: chrome/browser/prefs/pref_value_store_unittest.cc

Issue 11636018: Remove PrefValueStore's dependency on PrefModelAssociator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix DEPS Created 8 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/prefs/pref_value_store.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefs/pref_value_store_unittest.cc
diff --git a/chrome/browser/prefs/pref_value_store_unittest.cc b/chrome/browser/prefs/pref_value_store_unittest.cc
index aa874b3147362a5935f02341649a643db96a64e8..2a84bc7fd4fd9242600fc836348d59bf0b3cc3fc 100644
--- a/chrome/browser/prefs/pref_value_store_unittest.cc
+++ b/chrome/browser/prefs/pref_value_store_unittest.cc
@@ -4,12 +4,12 @@
#include <string>
+#include "base/bind.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/prefs/pref_notifier.h"
#include "base/prefs/testing_pref_store.h"
#include "base/values.h"
-#include "chrome/browser/prefs/pref_model_associator.h"
#include "chrome/browser/prefs/pref_value_store.h"
#include "chrome/common/pref_names.h"
#include "testing/gmock/include/gmock/gmock.h"
@@ -28,7 +28,7 @@ class MockPrefNotifier : public PrefNotifier {
};
// Allows to capture sync model associator interaction.
-class MockPrefModelAssociator : public PrefModelAssociator {
+class MockPrefModelAssociator {
public:
MOCK_METHOD1(ProcessPrefChange, void(const std::string&));
};
@@ -108,7 +108,9 @@ class PrefValueStoreTest : public testing::Test {
default_pref_store_,
&pref_notifier_));
- pref_value_store_->set_sync_associator(sync_associator_.get());
+ pref_value_store_->set_callback(
+ base::Bind(&MockPrefModelAssociator::ProcessPrefChange,
+ base::Unretained(sync_associator_.get())));
}
void CreateManagedPrefs() {
« no previous file with comments | « chrome/browser/prefs/pref_value_store.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698