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

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

Issue 8625005: [Sync] Make ModelSafeWorker a true interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head Created 9 years, 1 month 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
Index: chrome/browser/sync/engine/process_commit_response_command_unittest.cc
diff --git a/chrome/browser/sync/engine/process_commit_response_command_unittest.cc b/chrome/browser/sync/engine/process_commit_response_command_unittest.cc
index 023a49f44cd8645327cfa10c3cc9d2f5f10c4a91..44d2a8a2e0601e136e10cf9c13a27a3da2286a87 100644
--- a/chrome/browser/sync/engine/process_commit_response_command_unittest.cc
+++ b/chrome/browser/sync/engine/process_commit_response_command_unittest.cc
@@ -6,7 +6,6 @@
#include "base/location.h"
#include "base/stringprintf.h"
-#include "chrome/browser/sync/engine/mock_model_safe_workers.h"
#include "chrome/browser/sync/engine/process_commit_response_command.h"
#include "chrome/browser/sync/protocol/bookmark_specifics.pb.h"
#include "chrome/browser/sync/protocol/sync.pb.h"
@@ -14,6 +13,7 @@
#include "chrome/browser/sync/syncable/directory_manager.h"
#include "chrome/browser/sync/syncable/syncable.h"
#include "chrome/browser/sync/syncable/syncable_id.h"
+#include "chrome/browser/sync/test/engine/fake_model_worker.h"
#include "chrome/browser/sync/test/engine/syncer_command_test.h"
#include "chrome/browser/sync/test/engine/test_id_factory.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -43,13 +43,13 @@ class ProcessCommitResponseCommandTestWithParam
workers()->clear();
mutable_routing_info()->clear();
- // GROUP_PASSIVE worker.
- workers()->push_back(make_scoped_refptr(new ModelSafeWorker()));
- // GROUP_UI worker.
- workers()->push_back(make_scoped_refptr(new MockUIModelWorker()));
+ workers()->push_back(
+ make_scoped_refptr(new FakeModelWorker(GROUP_DB)));
+ workers()->push_back(
+ make_scoped_refptr(new FakeModelWorker(GROUP_UI)));
(*mutable_routing_info())[syncable::BOOKMARKS] = GROUP_UI;
(*mutable_routing_info())[syncable::PREFERENCES] = GROUP_UI;
- (*mutable_routing_info())[syncable::AUTOFILL] = GROUP_PASSIVE;
+ (*mutable_routing_info())[syncable::AUTOFILL] = GROUP_DB;
commit_set_.reset(new sessions::OrderedCommitSet(routing_info()));
SyncerCommandTestWithParam<T>::SetUp();
« no previous file with comments | « chrome/browser/sync/engine/passive_model_worker.cc ('k') | chrome/browser/sync/engine/sync_scheduler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698