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

Unified Diff: components/drive/local_file_reader_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/job_scheduler_unittest.cc ('k') | components/drive/remove_stale_cache_files_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/drive/local_file_reader_unittest.cc
diff --git a/components/drive/local_file_reader_unittest.cc b/components/drive/local_file_reader_unittest.cc
index 7fcd785d0cc8d07be3c7aa8fb036c88956db10f3..b54f811e0035bf2dd1bcd3709c5eab5dc137e837 100644
--- a/components/drive/local_file_reader_unittest.cc
+++ b/components/drive/local_file_reader_unittest.cc
@@ -63,7 +63,7 @@ class LocalFileReaderTest : public ::testing::Test {
TEST_F(LocalFileReaderTest, NonExistingFile) {
const base::FilePath kTestFile =
- temp_dir_.path().AppendASCII("non-existing");
+ temp_dir_.GetPath().AppendASCII("non-existing");
net::TestCompletionCallback callback;
file_reader_->Open(kTestFile, 0, callback.callback());
@@ -74,7 +74,7 @@ TEST_F(LocalFileReaderTest, FullRead) {
base::FilePath test_file;
std::string expected_content;
ASSERT_TRUE(google_apis::test_util::CreateFileOfSpecifiedSize(
- temp_dir_.path(), 1024, &test_file, &expected_content));
+ temp_dir_.GetPath(), 1024, &test_file, &expected_content));
net::TestCompletionCallback callback;
file_reader_->Open(test_file, 0, callback.callback());
@@ -90,7 +90,7 @@ TEST_F(LocalFileReaderTest, OpenWithOffset) {
base::FilePath test_file;
std::string expected_content;
ASSERT_TRUE(google_apis::test_util::CreateFileOfSpecifiedSize(
- temp_dir_.path(), 1024, &test_file, &expected_content));
+ temp_dir_.GetPath(), 1024, &test_file, &expected_content));
size_t offset = expected_content.size() / 2;
expected_content.erase(0, offset);
« no previous file with comments | « components/drive/job_scheduler_unittest.cc ('k') | components/drive/remove_stale_cache_files_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698