summaryrefslogtreecommitdiffstats
path: root/sync/syncable/syncable_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sync/syncable/syncable_unittest.cc')
-rw-r--r--sync/syncable/syncable_unittest.cc19
1 files changed, 0 insertions, 19 deletions
diff --git a/sync/syncable/syncable_unittest.cc b/sync/syncable/syncable_unittest.cc
index cfcc2db..8f261c7 100644
--- a/sync/syncable/syncable_unittest.cc
+++ b/sync/syncable/syncable_unittest.cc
@@ -117,14 +117,6 @@ TEST_F(SyncableGeneralTest, General) {
ASSERT_EQ(OPENED, dir.Open(
"SimpleTest", &delegate_, NullTransactionObserver()));
- int64 root_metahandle;
- {
- ReadTransaction rtrans(FROM_HERE, &dir);
- Entry e(&rtrans, GET_BY_ID, rtrans.root_id());
- ASSERT_TRUE(e.good());
- root_metahandle = e.GetMetahandle();
- }
-
int64 written_metahandle;
const Id id = TestIdFactory::FromNumber(99);
std::string name = "Jeff";
@@ -137,9 +129,6 @@ TEST_F(SyncableGeneralTest, General) {
Directory::Metahandles child_handles;
dir.GetChildHandlesById(&rtrans, rtrans.root_id(), &child_handles);
EXPECT_TRUE(child_handles.empty());
-
- dir.GetChildHandlesByHandle(&rtrans, root_metahandle, &child_handles);
- EXPECT_TRUE(child_handles.empty());
}
// Test creating a new meta entry.
@@ -167,14 +156,6 @@ TEST_F(SyncableGeneralTest, General) {
i != child_handles.end(); ++i) {
EXPECT_EQ(*i, written_metahandle);
}
-
- dir.GetChildHandlesByHandle(&rtrans, root_metahandle, &child_handles);
- EXPECT_EQ(1u, child_handles.size());
-
- for (Directory::Metahandles::iterator i = child_handles.begin();
- i != child_handles.end(); ++i) {
- EXPECT_EQ(*i, written_metahandle);
- }
}
// Test writing data to an entity. Also check that GET_BY_HANDLE works.