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

Unified Diff: components/drive/sync_client_unittest.cc

Issue 2317993003: //chrome/browser and //components A-E: 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/drive/service/fake_drive_service_unittest.cc ('k') | components/exo/wayland/server_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/drive/sync_client_unittest.cc
diff --git a/components/drive/sync_client_unittest.cc b/components/drive/sync_client_unittest.cc
index 0075f8d7cd5b52a4ec1913c5cdc06227b6b438f5..f62e01c82ae911849ec056789425c56d943af250 100644
--- a/components/drive/sync_client_unittest.cc
+++ b/components/drive/sync_client_unittest.cc
@@ -123,11 +123,10 @@ class SyncClientTest : public testing::Test {
base::ThreadTaskRunnerHandle::Get().get()));
metadata_storage_.reset(new ResourceMetadataStorage(
- temp_dir_.path(), base::ThreadTaskRunnerHandle::Get().get()));
+ temp_dir_.GetPath(), base::ThreadTaskRunnerHandle::Get().get()));
ASSERT_TRUE(metadata_storage_->Initialize());
- cache_.reset(new FileCache(metadata_storage_.get(),
- temp_dir_.path(),
+ cache_.reset(new FileCache(metadata_storage_.get(), temp_dir_.GetPath(),
base::ThreadTaskRunnerHandle::Get().get(),
NULL /* free_disk_space_getter */));
ASSERT_TRUE(cache_->Initialize());
@@ -148,13 +147,10 @@ class SyncClientTest : public testing::Test {
loader_controller_.get()));
ASSERT_NO_FATAL_FAILURE(SetUpTestData());
- sync_client_.reset(new SyncClient(base::ThreadTaskRunnerHandle::Get().get(),
- &delegate_,
- scheduler_.get(),
- metadata_.get(),
- cache_.get(),
- loader_controller_.get(),
- temp_dir_.path()));
+ sync_client_.reset(
+ new SyncClient(base::ThreadTaskRunnerHandle::Get().get(), &delegate_,
+ scheduler_.get(), metadata_.get(), cache_.get(),
+ loader_controller_.get(), temp_dir_.GetPath()));
// Disable delaying so that DoSyncLoop() starts immediately.
sync_client_->set_delay_for_testing(base::TimeDelta::FromSeconds(0));
@@ -181,7 +177,8 @@ class SyncClientTest : public testing::Test {
void SetUpTestData() {
// Prepare a temp file.
base::FilePath temp_file;
- EXPECT_TRUE(base::CreateTemporaryFileInDir(temp_dir_.path(), &temp_file));
+ EXPECT_TRUE(
+ base::CreateTemporaryFileInDir(temp_dir_.GetPath(), &temp_file));
ASSERT_TRUE(google_apis::test_util::WriteStringToFile(temp_file,
kLocalContent));
« no previous file with comments | « components/drive/service/fake_drive_service_unittest.cc ('k') | components/exo/wayland/server_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698