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

Unified Diff: components/sync/syncable/directory_unittest.cc

Issue 2276943006: [USS] Move GetAllNodes from backend to controller (Closed)
Patch Set: update for Max Created 4 years, 4 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/driver/ui_data_type_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/syncable/directory_unittest.cc
diff --git a/components/sync/syncable/directory_unittest.cc b/components/sync/syncable/directory_unittest.cc
index dc582a65d63a6b69a7b82a889a80a8b32ea456fa..eb3806ddeee8c5627bf24d4a3080067909a602f9 100644
--- a/components/sync/syncable/directory_unittest.cc
+++ b/components/sync/syncable/directory_unittest.cc
@@ -2129,6 +2129,20 @@ TEST_F(SyncableDirectoryTest, InitialSyncEndedForType) {
EXPECT_TRUE(dir()->InitialSyncEndedForType(&trans, PREFERENCES));
}
+TEST_F(SyncableDirectoryTest, TestGetNodeDetailsForType) {
+ CreateEntry(BOOKMARKS, "rtc");
+
+ ReadTransaction trans(FROM_HERE, dir().get());
+ std::unique_ptr<base::ListValue> nodes(
+ dir()->GetNodeDetailsForType(&trans, BOOKMARKS));
+ ASSERT_EQ(1U, nodes->GetSize());
+
+ const base::DictionaryValue* first_result;
+ ASSERT_TRUE(nodes->GetDictionary(0, &first_result));
+ EXPECT_TRUE(first_result->HasKey("ID"));
+ EXPECT_TRUE(first_result->HasKey("NON_UNIQUE_NAME"));
+}
+
} // namespace syncable
} // namespace syncer
« no previous file with comments | « components/sync/driver/ui_data_type_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698