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

Unified Diff: content/browser/fileapi/copy_or_move_operation_delegate_unittest.cc

Issue 2316043002: //content: 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: content/browser/fileapi/copy_or_move_operation_delegate_unittest.cc
diff --git a/content/browser/fileapi/copy_or_move_operation_delegate_unittest.cc b/content/browser/fileapi/copy_or_move_operation_delegate_unittest.cc
index 25d65de25a92bd883930e1c2be97f50623e3b780..77e708957089b2a79ce558f489102c963a76d9e4 100644
--- a/content/browser/fileapi/copy_or_move_operation_delegate_unittest.cc
+++ b/content/browser/fileapi/copy_or_move_operation_delegate_unittest.cc
@@ -194,7 +194,7 @@ class CopyOrMoveOperationTestHelper {
void SetUp(bool require_copy_or_move_validator,
bool init_copy_or_move_validator) {
ASSERT_TRUE(base_.CreateUniqueTempDir());
- base::FilePath base_dir = base_.path();
+ base::FilePath base_dir = base_.GetPath();
quota_manager_ =
new MockQuotaManager(false /* is_incognito */, base_dir,
base::ThreadTaskRunnerHandle::Get().get(),
@@ -723,8 +723,8 @@ TEST(LocalFileSystemCopyOrMoveOperationTest, ProgressCallback) {
TEST(LocalFileSystemCopyOrMoveOperationTest, StreamCopyHelper) {
base::ScopedTempDir temp_dir;
ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
- base::FilePath source_path = temp_dir.path().AppendASCII("source");
- base::FilePath dest_path = temp_dir.path().AppendASCII("dest");
+ base::FilePath source_path = temp_dir.GetPath().AppendASCII("source");
+ base::FilePath dest_path = temp_dir.GetPath().AppendASCII("dest");
const char kTestData[] = "abcdefghijklmnopqrstuvwxyz0123456789";
base::WriteFile(source_path, kTestData,
arraysize(kTestData) - 1); // Exclude trailing '\0'.
@@ -778,8 +778,8 @@ TEST(LocalFileSystemCopyOrMoveOperationTest, StreamCopyHelperWithFlush) {
// written with or without the flag.
base::ScopedTempDir temp_dir;
ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
- base::FilePath source_path = temp_dir.path().AppendASCII("source");
- base::FilePath dest_path = temp_dir.path().AppendASCII("dest");
+ base::FilePath source_path = temp_dir.GetPath().AppendASCII("source");
+ base::FilePath dest_path = temp_dir.GetPath().AppendASCII("dest");
const char kTestData[] = "abcdefghijklmnopqrstuvwxyz0123456789";
base::WriteFile(source_path, kTestData,
arraysize(kTestData) - 1); // Exclude trailing '\0'.
@@ -830,8 +830,8 @@ TEST(LocalFileSystemCopyOrMoveOperationTest, StreamCopyHelperWithFlush) {
TEST(LocalFileSystemCopyOrMoveOperationTest, StreamCopyHelper_Cancel) {
base::ScopedTempDir temp_dir;
ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
- base::FilePath source_path = temp_dir.path().AppendASCII("source");
- base::FilePath dest_path = temp_dir.path().AppendASCII("dest");
+ base::FilePath source_path = temp_dir.GetPath().AppendASCII("source");
+ base::FilePath dest_path = temp_dir.GetPath().AppendASCII("dest");
const char kTestData[] = "abcdefghijklmnopqrstuvwxyz0123456789";
base::WriteFile(source_path, kTestData,
arraysize(kTestData) - 1); // Exclude trailing '\0'.
« no previous file with comments | « content/browser/fileapi/copy_or_move_file_validator_unittest.cc ('k') | content/browser/fileapi/dragged_file_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698