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

Unified Diff: components/omnibox/browser/in_memory_url_index_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/in_memory_url_index_unittest.cc
diff --git a/components/omnibox/browser/in_memory_url_index_unittest.cc b/components/omnibox/browser/in_memory_url_index_unittest.cc
index 643965ce64fb6b31f99a0e914e436fa5455b56ec..2f92eda6970cad756ac349bc818a571881ed4e48 100644
--- a/components/omnibox/browser/in_memory_url_index_unittest.cc
+++ b/components/omnibox/browser/in_memory_url_index_unittest.cc
@@ -218,7 +218,8 @@ bool InMemoryURLIndexTest::DeleteURL(const GURL& url) {
void InMemoryURLIndexTest::SetUp() {
// We cannot access the database until the backend has been loaded.
if (history_dir_.CreateUniqueTempDir())
- history_service_ = history::CreateHistoryService(history_dir_.path(), true);
+ history_service_ =
+ history::CreateHistoryService(history_dir_.GetPath(), true);
ASSERT_TRUE(history_service_);
BlockUntilInMemoryURLIndexIsRefreshed(url_index_.get());
@@ -1035,7 +1036,7 @@ TEST_F(InMemoryURLIndexTest, ReadVisitsFromHistory) {
TEST_F(InMemoryURLIndexTest, CacheSaveRestore) {
base::ScopedTempDir temp_directory;
ASSERT_TRUE(temp_directory.CreateUniqueTempDir());
- set_history_dir(temp_directory.path());
+ set_history_dir(temp_directory.GetPath());
URLIndexPrivateData& private_data(*GetPrivateData());
@@ -1104,7 +1105,7 @@ TEST_F(InMemoryURLIndexTest, CacheSaveRestore) {
TEST_F(InMemoryURLIndexTest, RebuildFromHistoryIfCacheOld) {
base::ScopedTempDir temp_directory;
ASSERT_TRUE(temp_directory.CreateUniqueTempDir());
- set_history_dir(temp_directory.path());
+ set_history_dir(temp_directory.GetPath());
URLIndexPrivateData& private_data(*GetPrivateData());
@@ -1279,7 +1280,7 @@ InMemoryURLIndexCacheTest::InMemoryURLIndexCacheTest()
void InMemoryURLIndexCacheTest::SetUp() {
ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
- base::FilePath path(temp_dir_.path());
+ base::FilePath path(temp_dir_.GetPath());
url_index_.reset(new InMemoryURLIndex(nullptr, nullptr, nullptr,
pool_owner_.pool().get(), path,
SchemeSet()));
@@ -1303,7 +1304,7 @@ bool InMemoryURLIndexCacheTest::GetCacheFilePath(
TEST_F(InMemoryURLIndexCacheTest, CacheFilePath) {
base::FilePath expectedPath =
- temp_dir_.path().Append(FILE_PATH_LITERAL("History Provider Cache"));
+ temp_dir_.GetPath().Append(FILE_PATH_LITERAL("History Provider Cache"));
std::vector<base::FilePath::StringType> expected_parts;
expectedPath.GetComponents(&expected_parts);
base::FilePath full_file_path;
« no previous file with comments | « components/omnibox/browser/history_url_provider_unittest.cc ('k') | components/omnibox/browser/shortcuts_backend_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698