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

Unified Diff: components/password_manager/core/browser/login_database_unittest.cc

Issue 2320653002: Autofill and password_manager: 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/password_manager/core/browser/login_database_unittest.cc
diff --git a/components/password_manager/core/browser/login_database_unittest.cc b/components/password_manager/core/browser/login_database_unittest.cc
index bd4e1416d6e90ca03bad5ba22f20c533cabc9e9a..757e82e1b90ec493887861ed27c5915bdb4bdd89 100644
--- a/components/password_manager/core/browser/login_database_unittest.cc
+++ b/components/password_manager/core/browser/login_database_unittest.cc
@@ -138,7 +138,7 @@ class LoginDatabaseTest : public testing::Test {
protected:
void SetUp() override {
ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
- file_ = temp_dir_.path().AppendASCII("TestMetadataStoreMacDatabase");
+ file_ = temp_dir_.GetPath().AppendASCII("TestMetadataStoreMacDatabase");
OSCryptMocker::SetUpWithSingleton();
db_.reset(new LoginDatabase(file_));
@@ -1501,7 +1501,7 @@ TEST_F(LoginDatabaseTest, FilePermissions) {
TEST(LoginDatabaseFailureTest, Init_NoCrashOnFailedRollback) {
base::ScopedTempDir temp_dir;
ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
- base::FilePath database_path = temp_dir.path().AppendASCII("test.db");
+ base::FilePath database_path = temp_dir.GetPath().AppendASCII("test.db");
// To cause an init failure, set the compatible version to be higher than the
// current version (in reality, this could happen if, e.g., someone opened a
@@ -1529,7 +1529,7 @@ class LoginDatabaseMigrationTest : public testing::TestWithParam<int> {
.AppendASCII("test")
.AppendASCII("data")
.AppendASCII("password_manager");
- database_path_ = temp_dir_.path().AppendASCII("test.db");
+ database_path_ = temp_dir_.GetPath().AppendASCII("test.db");
OSCryptMocker::SetUpWithSingleton();
}

Powered by Google App Engine
This is Rietveld 408576698