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

Unified Diff: chrome/browser/sync/engine/apply_updates_command_unittest.cc

Issue 553015: Support for multiple sync ModelSafeWorkers.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/sync/engine/model_changing_syncer_command.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/engine/apply_updates_command_unittest.cc
===================================================================
--- chrome/browser/sync/engine/apply_updates_command_unittest.cc (revision 36603)
+++ chrome/browser/sync/engine/apply_updates_command_unittest.cc (working copy)
@@ -25,7 +25,8 @@
// A test fixture for tests exercising ApplyUpdatesCommand.
class ApplyUpdatesCommandTest : public testing::Test,
- public SyncSession::Delegate {
+ public SyncSession::Delegate,
+ public ModelSafeWorkerRegistrar {
public:
// SyncSession::Delegate implementation.
virtual void OnSilencedUntil(const base::TimeTicks& silenced_until) {
@@ -44,12 +45,16 @@
FAIL() << "Should not get poll interval update.";
}
+ // ModelSafeWorkerRegistrar implementation.
+ virtual void GetWorkers(std::vector<ModelSafeWorker*>* out) {}
+ virtual void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) {}
+
protected:
ApplyUpdatesCommandTest() : next_revision_(1) {}
virtual ~ApplyUpdatesCommandTest() {}
virtual void SetUp() {
syncdb_.SetUp();
- context_.reset(new SyncSessionContext(NULL, syncdb_.manager(), NULL));
+ context_.reset(new SyncSessionContext(NULL, syncdb_.manager(), this));
context_->set_account_name(syncdb_.name());
}
virtual void TearDown() {
« no previous file with comments | « no previous file | chrome/browser/sync/engine/model_changing_syncer_command.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698