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

Unified Diff: components/omnibox/browser/shortcuts_database_unittest.cc

Issue 2317123002: c/browser, c/common, components O-P: 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
Index: components/omnibox/browser/shortcuts_database_unittest.cc
diff --git a/components/omnibox/browser/shortcuts_database_unittest.cc b/components/omnibox/browser/shortcuts_database_unittest.cc
index 2f151b116296a0f7abd66835cc0993710f200442..8e22715bac304b578b4099e576abd747731400dd 100644
--- a/components/omnibox/browser/shortcuts_database_unittest.cc
+++ b/components/omnibox/browser/shortcuts_database_unittest.cc
@@ -102,7 +102,7 @@ class ShortcutsDatabaseTest : public testing::Test {
void ShortcutsDatabaseTest::SetUp() {
ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
- base::FilePath db_path(temp_dir_.path().Append(kShortcutsDatabaseName));
+ base::FilePath db_path(temp_dir_.GetPath().Append(kShortcutsDatabaseName));
db_ = new ShortcutsDatabase(db_path);
ASSERT_TRUE(db_->Init());
ClearDB();
@@ -234,7 +234,7 @@ TEST(ShortcutsDatabaseMigrationTest, MigrateTableAddFillIntoEdit) {
#endif
base::ScopedTempDir temp_dir;
ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
- base::FilePath db_path(temp_dir.path().AppendASCII("TestShortcuts.db"));
+ base::FilePath db_path(temp_dir.GetPath().AppendASCII("TestShortcuts.db"));
ASSERT_TRUE(sql::test::CreateDatabaseFromSQL(db_path, sql_path));
CheckV2ColumnExistence(db_path, false);
@@ -278,7 +278,7 @@ TEST(ShortcutsDatabaseMigrationTest, MigrateV0ToV1) {
base::FilePath sql_path = GetTestDataDir().AppendASCII("Shortcuts.v0.sql");
base::ScopedTempDir temp_dir;
ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
- base::FilePath db_path(temp_dir.path().AppendASCII("TestShortcuts.db"));
+ base::FilePath db_path(temp_dir.GetPath().AppendASCII("TestShortcuts.db"));
ASSERT_TRUE(sql::test::CreateDatabaseFromSQL(db_path, sql_path));
// Create a ShortcutsDatabase from the test database, which will migrate the
@@ -312,7 +312,7 @@ TEST(ShortcutsDatabaseMigrationTest, Recovery1) {
base::FilePath sql_path = GetTestDataDir().AppendASCII(kBasename);
base::ScopedTempDir temp_dir;
ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
- base::FilePath db_path(temp_dir.path().AppendASCII("TestShortcuts.db"));
+ base::FilePath db_path(temp_dir.GetPath().AppendASCII("TestShortcuts.db"));
ASSERT_TRUE(sql::test::CreateDatabaseFromSQL(db_path, sql_path));
// Capture the row count from the golden file before corrupting the database.
« no previous file with comments | « components/omnibox/browser/shortcuts_backend_unittest.cc ('k') | components/omnibox/browser/shortcuts_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698