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

Unified Diff: components/sync/engine/model_safe_worker_unittest.cc

Issue 2834453006: [Sync] Update Type Info section of sync-internals. (Closed)
Patch Set: Reworked some of the variables in GetTypeStatusMap(). Created 3 years, 8 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 | « components/sync/engine/model_safe_worker.cc ('k') | components/sync/engine_impl/model_type_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/engine/model_safe_worker_unittest.cc
diff --git a/components/sync/engine/model_safe_worker_unittest.cc b/components/sync/engine/model_safe_worker_unittest.cc
index cb6ceddb970c444f3050db890198830459bb28bb..b9e635836b2983feb768cbafaf4a453c0400b2b7 100644
--- a/components/sync/engine/model_safe_worker_unittest.cc
+++ b/components/sync/engine/model_safe_worker_unittest.cc
@@ -90,10 +90,10 @@ TEST_F(ModelSafeWorkerTest, ModelSafeRoutingInfoToValue) {
routing_info[PREFERENCES] = GROUP_DB;
routing_info[APPS] = GROUP_NON_BLOCKING;
base::DictionaryValue expected_value;
- expected_value.SetString("Apps", "GROUP_NON_BLOCKING");
- expected_value.SetString("Bookmarks", "GROUP_PASSIVE");
- expected_value.SetString("Encryption Keys", "GROUP_UI");
- expected_value.SetString("Preferences", "GROUP_DB");
+ expected_value.SetString("Apps", "Group Non Blocking");
+ expected_value.SetString("Bookmarks", "Group Passive");
+ expected_value.SetString("Encryption Keys", "Group UI");
+ expected_value.SetString("Preferences", "Group DB");
std::unique_ptr<base::DictionaryValue> value(
ModelSafeRoutingInfoToValue(routing_info));
EXPECT_TRUE(value->Equals(&expected_value));
@@ -106,8 +106,8 @@ TEST_F(ModelSafeWorkerTest, ModelSafeRoutingInfoToString) {
routing_info[NIGORI] = GROUP_UI;
routing_info[PREFERENCES] = GROUP_DB;
EXPECT_EQ(
- "{\"Apps\":\"GROUP_NON_BLOCKING\",\"Bookmarks\":\"GROUP_PASSIVE\","
- "\"Encryption Keys\":\"GROUP_UI\",\"Preferences\":\"GROUP_DB\"}",
+ "{\"Apps\":\"Group Non Blocking\",\"Bookmarks\":\"Group Passive\","
+ "\"Encryption Keys\":\"Group UI\",\"Preferences\":\"Group DB\"}",
ModelSafeRoutingInfoToString(routing_info));
}
« no previous file with comments | « components/sync/engine/model_safe_worker.cc ('k') | components/sync/engine_impl/model_type_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698