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

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

Issue 8851006: [Sync] Replace all instances of ModelTypeSet with ModelEnumSet (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup pass #2 Created 9 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/sync/engine/syncer_proto_util_unittest.cc ('k') | chrome/browser/sync/engine/syncer_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/engine/syncer_unittest.cc
diff --git a/chrome/browser/sync/engine/syncer_unittest.cc b/chrome/browser/sync/engine/syncer_unittest.cc
index d511beb8ac699c057560ea92186ad96ce54595d0..eabe323aca4995ed05506330f46a366cff5b85d2 100644
--- a/chrome/browser/sync/engine/syncer_unittest.cc
+++ b/chrome/browser/sync/engine/syncer_unittest.cc
@@ -370,7 +370,7 @@ class SyncerTest : public testing::Test,
GetCommitIdsCommand command(limit);
command.BuildCommitIds(
session_->status_controller().unsynced_handles(),
- session_->write_transaction(), routes, syncable::ModelTypeSet());
+ session_->write_transaction(), routes, syncable::ModelEnumSet());
vector<syncable::Id> output =
command.ordered_commit_set_->GetAllCommitIds();
size_t truncated_size = std::min(limit, expected_id_order.size());
@@ -558,8 +558,7 @@ TEST_F(SyncerTest, GetCommitIdsCommandTruncates) {
TEST_F(SyncerTest, GetCommitIdsFiltersThrottledEntries) {
ScopedDirLookup dir(syncdb_.manager(), syncdb_.name());
ASSERT_TRUE(dir.good());
- syncable::ModelTypeSet throttled_types;
- throttled_types.insert(syncable::BOOKMARKS);
+ const syncable::ModelEnumSet throttled_types(syncable::BOOKMARKS);
KeyParams key_params = {"localhost", "dummy", "foobar"};
sync_pb::EntitySpecifics bookmark_data;
AddDefaultExtensionValue(syncable::BOOKMARKS, &bookmark_data);
« no previous file with comments | « chrome/browser/sync/engine/syncer_proto_util_unittest.cc ('k') | chrome/browser/sync/engine/syncer_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698