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

Unified Diff: sync/syncable/directory_unittest.cc

Issue 805633004: Enable Null Syncable ID which is different than Root ID. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed CR feedback Created 6 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 | « sync/syncable/directory_backing_store.cc ('k') | sync/syncable/entry_kernel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/directory_unittest.cc
diff --git a/sync/syncable/directory_unittest.cc b/sync/syncable/directory_unittest.cc
index 6aaf054f4a567085a71299d6b2db49e819fa3e95..b891dd77ebfec388813909b4e7c438bdbcd16e5f 100644
--- a/sync/syncable/directory_unittest.cc
+++ b/sync/syncable/directory_unittest.cc
@@ -1349,7 +1349,7 @@ TEST_F(SyncableDirectoryTest, ChildrenOps) {
Entry root(&rtrans, GET_BY_ID, rtrans.root_id());
ASSERT_TRUE(root.good());
EXPECT_FALSE(dir()->HasChildren(&rtrans, rtrans.root_id()));
- EXPECT_TRUE(root.GetFirstChildId().IsRoot());
+ EXPECT_TRUE(root.GetFirstChildId().IsNull());
}
{
@@ -1392,7 +1392,7 @@ TEST_F(SyncableDirectoryTest, ChildrenOps) {
Entry root(&rtrans, GET_BY_ID, rtrans.root_id());
ASSERT_TRUE(root.good());
EXPECT_FALSE(dir()->HasChildren(&rtrans, rtrans.root_id()));
- EXPECT_TRUE(root.GetFirstChildId().IsRoot());
+ EXPECT_TRUE(root.GetFirstChildId().IsNull());
}
dir()->SaveChanges();
« no previous file with comments | « sync/syncable/directory_backing_store.cc ('k') | sync/syncable/entry_kernel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698