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

Unified Diff: components/leveldb_proto/proto_database_impl_unittest.cc

Issue 2317003002: //chrome/browser and //components F-L: Change ScopedTempDir::path() to GetPath() (Closed)
Patch Set: Just rebased 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
« no previous file with comments | « components/history/core/test/history_backend_db_base_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/leveldb_proto/proto_database_impl_unittest.cc
diff --git a/components/leveldb_proto/proto_database_impl_unittest.cc b/components/leveldb_proto/proto_database_impl_unittest.cc
index c3dc76b4ce9ef6d245ee62841f81f68ca6fcab16..648b2e20509719c609ce6e2d792d3ddf6c6cd952 100644
--- a/components/leveldb_proto/proto_database_impl_unittest.cc
+++ b/components/leveldb_proto/proto_database_impl_unittest.cc
@@ -440,7 +440,7 @@ TEST(ProtoDatabaseImplThreadingTest, TestDBDestruction) {
MockDatabaseCaller caller;
EXPECT_CALL(caller, InitCallback(_));
db->Init(
- kTestLevelDBClientName, temp_dir.path(),
+ kTestLevelDBClientName, temp_dir.GetPath(),
base::Bind(&MockDatabaseCaller::InitCallback, base::Unretained(&caller)));
db.reset();
@@ -468,7 +468,7 @@ TEST(ProtoDatabaseImplThreadingTest, TestDBDestroy) {
MockDatabaseCaller caller;
EXPECT_CALL(caller, InitCallback(_));
db->Init(
- kTestLevelDBClientName, temp_dir.path(),
+ kTestLevelDBClientName, temp_dir.GetPath(),
base::Bind(&MockDatabaseCaller::InitCallback, base::Unretained(&caller)));
EXPECT_CALL(caller, DestroyCallback(_));
@@ -502,12 +502,12 @@ void TestLevelDBSaveAndLoad(bool close_after_save) {
}
std::unique_ptr<LevelDB> db(new LevelDB(kTestLevelDBClientName));
- EXPECT_TRUE(db->Init(temp_dir.path()));
+ EXPECT_TRUE(db->Init(temp_dir.GetPath()));
EXPECT_TRUE(db->Save(save_entries, remove_keys));
if (close_after_save) {
db.reset(new LevelDB(kTestLevelDBClientName));
- EXPECT_TRUE(db->Init(temp_dir.path()));
+ EXPECT_TRUE(db->Init(temp_dir.GetPath()));
}
EXPECT_TRUE(db->Load(&load_entries));
@@ -543,7 +543,7 @@ TEST(ProtoDatabaseImplLevelDBTest, TestDBInitFail) {
std::vector<std::string> load_entries;
KeyVector remove_keys;
- EXPECT_FALSE(db->InitWithOptions(temp_dir.path(), options));
+ EXPECT_FALSE(db->InitWithOptions(temp_dir.GetPath(), options));
EXPECT_FALSE(db->Load(&load_entries));
EXPECT_FALSE(db->Save(save_entries, remove_keys));
}
« no previous file with comments | « components/history/core/test/history_backend_db_base_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698