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

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

Issue 2292393004: Remove stl_util from sync. (Closed)
Patch Set: rebase Created 4 years, 3 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: components/sync/syncable/directory_backing_store_unittest.cc
diff --git a/components/sync/syncable/directory_backing_store_unittest.cc b/components/sync/syncable/directory_backing_store_unittest.cc
index d4f05872717d12ec460b99b6f68aa3f77bbb1ec8..15781dc3e6c2594cc3d9cd3932336bbf5f6ae58e 100644
--- a/components/sync/syncable/directory_backing_store_unittest.cc
+++ b/components/sync/syncable/directory_backing_store_unittest.cc
@@ -24,7 +24,6 @@
#include "components/sync/protocol/sync.pb.h"
#include "components/sync/syncable/directory.h"
#include "components/sync/syncable/on_disk_directory_backing_store.h"
-#include "components/sync/syncable/syncable-inl.h"
#include "components/sync/test/directory_backing_store_corruption_testing.h"
#include "components/sync/test/test_directory_backing_store.h"
#include "sql/connection.h"
@@ -4192,7 +4191,7 @@ TEST_F(DirectoryBackingStoreTest,
ASSERT_TRUE(LoadAndIgnoreReturnedData(dbs.get()));
ASSERT_FALSE(dbs->DidFailFirstOpenAttempt());
Directory::SaveChangesSnapshot snapshot;
- snapshot.dirty_metas.insert(CreateEntry(2, "").release());
+ snapshot.dirty_metas.insert(CreateEntry(2, ""));
ASSERT_TRUE(dbs->SaveChanges(snapshot));
}
@@ -4241,8 +4240,7 @@ TEST_F(DirectoryBackingStoreTest,
const std::string suffix(400, 'o');
for (int i = 0; i < corruption_testing::kNumEntriesRequiredForCorruption;
++i) {
- std::unique_ptr<EntryKernel> large_entry = CreateEntry(i, suffix);
- snapshot.dirty_metas.insert(large_entry.release());
+ snapshot.dirty_metas.insert(CreateEntry(i, suffix));
}
ASSERT_TRUE(dbs->SaveChanges(snapshot));
// Corrupt it.

Powered by Google App Engine
This is Rietveld 408576698