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

Unified Diff: chrome/browser/sync/invalidations/invalidator_storage_unittest.cc

Issue 10696087: [Sync] Move ModelType and related classes to 'syncer' namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort headers, update copyrights Created 8 years, 6 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
Index: chrome/browser/sync/invalidations/invalidator_storage_unittest.cc
diff --git a/chrome/browser/sync/invalidations/invalidator_storage_unittest.cc b/chrome/browser/sync/invalidations/invalidator_storage_unittest.cc
index d71930bc496d3cb09b3f95a1e0b9f43c72fe8826..0c8202f724e7aaad934af3ab990ac09148a623eb 100644
--- a/chrome/browser/sync/invalidations/invalidator_storage_unittest.cc
+++ b/chrome/browser/sync/invalidations/invalidator_storage_unittest.cc
@@ -237,9 +237,9 @@ TEST_F(InvalidatorStorageTest, DeserializeMapOutOfRange) {
base::DictionaryValue dict_with_out_of_range_type;
dict_with_out_of_range_type.SetString(
- base::IntToString(syncable::TOP_LEVEL_FOLDER), "100");
+ base::IntToString(syncer::TOP_LEVEL_FOLDER), "100");
dict_with_out_of_range_type.SetString(
- base::IntToString(syncable::BOOKMARKS), "5");
+ base::IntToString(syncer::BOOKMARKS), "5");
InvalidatorStorage::DeserializeMap(&dict_with_out_of_range_type, &map);
@@ -254,9 +254,9 @@ TEST_F(InvalidatorStorageTest, DeserializeMapInvalidFormat) {
dict_with_invalid_format.SetString("whoops", "5");
dict_with_invalid_format.SetString("ohnoes", "whoops");
dict_with_invalid_format.SetString(
- base::IntToString(syncable::BOOKMARKS), "ohnoes");
+ base::IntToString(syncer::BOOKMARKS), "ohnoes");
dict_with_invalid_format.SetString(
- base::IntToString(syncable::AUTOFILL), "10");
+ base::IntToString(syncer::AUTOFILL), "10");
InvalidatorStorage::DeserializeMap(&dict_with_invalid_format, &map);
@@ -275,8 +275,8 @@ TEST_F(InvalidatorStorageTest, DeserializeMapBasic) {
InvalidationVersionMap map;
base::DictionaryValue dict;
- dict.SetString(base::IntToString(syncable::AUTOFILL), "10");
- dict.SetString(base::IntToString(syncable::BOOKMARKS), "15");
+ dict.SetString(base::IntToString(syncer::AUTOFILL), "10");
+ dict.SetString(base::IntToString(syncer::BOOKMARKS), "15");
InvalidatorStorage::DeserializeMap(&dict, &map);
EXPECT_EQ(2U, map.size());
@@ -288,9 +288,9 @@ TEST_F(InvalidatorStorageTest, DeserializeMapBasic) {
// Migration should happen on construction of InvalidatorStorage.
TEST_F(InvalidatorStorageTest, MigrateLegacyPreferences) {
base::DictionaryValue* legacy_dict = new DictionaryValue;
- legacy_dict->SetString(base::IntToString(syncable::AUTOFILL), "10");
- legacy_dict->SetString(base::IntToString(syncable::BOOKMARKS), "32");
- legacy_dict->SetString(base::IntToString(syncable::PREFERENCES), "54");
+ legacy_dict->SetString(base::IntToString(syncer::AUTOFILL), "10");
+ legacy_dict->SetString(base::IntToString(syncer::BOOKMARKS), "32");
+ legacy_dict->SetString(base::IntToString(syncer::PREFERENCES), "54");
pref_service_.SetUserPref(prefs::kSyncMaxInvalidationVersions, legacy_dict);
InvalidatorStorage storage(&pref_service_);
« no previous file with comments | « chrome/browser/sync/invalidations/invalidator_storage.cc ('k') | chrome/browser/sync/profile_sync_components_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698