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

Side by Side Diff: components/autofill/core/browser/webdata/autofill_table_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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stddef.h> 5 #include <stddef.h>
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <tuple> 10 #include <tuple>
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 class AutofillTableTest : public testing::Test { 122 class AutofillTableTest : public testing::Test {
123 public: 123 public:
124 AutofillTableTest() {} 124 AutofillTableTest() {}
125 ~AutofillTableTest() override {} 125 ~AutofillTableTest() override {}
126 126
127 protected: 127 protected:
128 void SetUp() override { 128 void SetUp() override {
129 OSCryptMocker::SetUpWithSingleton(); 129 OSCryptMocker::SetUpWithSingleton();
130 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); 130 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
131 file_ = temp_dir_.path().AppendASCII("TestWebDatabase"); 131 file_ = temp_dir_.GetPath().AppendASCII("TestWebDatabase");
132 132
133 table_.reset(new AutofillTable); 133 table_.reset(new AutofillTable);
134 db_.reset(new WebDatabase); 134 db_.reset(new WebDatabase);
135 db_->AddTable(table_.get()); 135 db_->AddTable(table_.get());
136 ASSERT_EQ(sql::INIT_OK, db_->Init(file_)); 136 ASSERT_EQ(sql::INIT_OK, db_->Init(file_));
137 } 137 }
138 138
139 void TearDown() override { OSCryptMocker::TearDown(); } 139 void TearDown() override { OSCryptMocker::TearDown(); }
140 140
141 base::FilePath file_; 141 base::FilePath file_;
(...skipping 1879 matching lines...) Expand 10 before | Expand all | Expand 10 after
2021 for (size_t j = 0; j < kTestCases[i].expected_suggestion_count; ++j) { 2021 for (size_t j = 0; j < kTestCases[i].expected_suggestion_count; ++j) {
2022 EXPECT_EQ(ASCIIToUTF16(kTestCases[i].expected_suggestion[j]), v[j]); 2022 EXPECT_EQ(ASCIIToUTF16(kTestCases[i].expected_suggestion[j]), v[j]);
2023 } 2023 }
2024 2024
2025 changes.clear(); 2025 changes.clear();
2026 table_->RemoveFormElementsAddedBetween(t1, Time(), &changes); 2026 table_->RemoveFormElementsAddedBetween(t1, Time(), &changes);
2027 } 2027 }
2028 } 2028 }
2029 2029
2030 } // namespace autofill 2030 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698