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

Unified Diff: sync/syncable/directory_backing_store_unittest.cc

Issue 11958029: [Sync] Add support for proxy types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Switch to ProxyTypes Created 7 years, 10 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 | « sync/syncable/directory_backing_store.cc ('k') | sync/syncable/model_type.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/directory_backing_store_unittest.cc
diff --git a/sync/syncable/directory_backing_store_unittest.cc b/sync/syncable/directory_backing_store_unittest.cc
index 917e874e16cd1f195b2156245c48d31e67467f01..96911978e932a8b75722e6a7107c98f6c4fba62d 100644
--- a/sync/syncable/directory_backing_store_unittest.cc
+++ b/sync/syncable/directory_backing_store_unittest.cc
@@ -3172,10 +3172,12 @@ INSTANTIATE_TEST_CASE_P(DirectoryBackingStore, MigrationTest,
testing::Range(67, kCurrentDBVersion));
TEST_F(DirectoryBackingStoreTest, ModelTypeIds) {
- for (int i = FIRST_REAL_MODEL_TYPE; i < MODEL_TYPE_COUNT; ++i) {
+ ModelTypeSet protocol_types = ProtocolTypes();
+ for (ModelTypeSet::Iterator iter = protocol_types.First(); iter.Good();
+ iter.Inc()) {
std::string model_id =
- TestDirectoryBackingStore::ModelTypeEnumToModelId(ModelTypeFromInt(i));
- EXPECT_EQ(i,
+ TestDirectoryBackingStore::ModelTypeEnumToModelId(iter.Get());
+ EXPECT_EQ(iter.Get(),
TestDirectoryBackingStore::ModelIdToModelTypeEnum(model_id.data(),
model_id.size()));
}
« no previous file with comments | « sync/syncable/directory_backing_store.cc ('k') | sync/syncable/model_type.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698