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

Side by Side Diff: content/browser/fileapi/file_system_operation_impl_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 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 "storage/browser/fileapi/file_system_operation_impl.h" 5 #include "storage/browser/fileapi/file_system_operation_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 FileSystemOperationImplTest() : weak_factory_(this) {} 55 FileSystemOperationImplTest() : weak_factory_(this) {}
56 56
57 protected: 57 protected:
58 void SetUp() override { 58 void SetUp() override {
59 EXPECT_TRUE(base_.CreateUniqueTempDir()); 59 EXPECT_TRUE(base_.CreateUniqueTempDir());
60 change_observers_ = 60 change_observers_ =
61 storage::MockFileChangeObserver::CreateList(&change_observer_); 61 storage::MockFileChangeObserver::CreateList(&change_observer_);
62 update_observers_ = 62 update_observers_ =
63 storage::MockFileUpdateObserver::CreateList(&update_observer_); 63 storage::MockFileUpdateObserver::CreateList(&update_observer_);
64 64
65 base::FilePath base_dir = base_.path().AppendASCII("filesystem"); 65 base::FilePath base_dir = base_.GetPath().AppendASCII("filesystem");
66 quota_manager_ = 66 quota_manager_ =
67 new MockQuotaManager(false /* is_incognito */, base_dir, 67 new MockQuotaManager(false /* is_incognito */, base_dir,
68 base::ThreadTaskRunnerHandle::Get().get(), 68 base::ThreadTaskRunnerHandle::Get().get(),
69 base::ThreadTaskRunnerHandle::Get().get(), 69 base::ThreadTaskRunnerHandle::Get().get(),
70 NULL /* special storage policy */); 70 NULL /* special storage policy */);
71 quota_manager_proxy_ = new MockQuotaManagerProxy( 71 quota_manager_proxy_ = new MockQuotaManagerProxy(
72 quota_manager(), base::ThreadTaskRunnerHandle::Get().get()); 72 quota_manager(), base::ThreadTaskRunnerHandle::Get().get());
73 sandbox_file_system_.SetUp(base_dir, quota_manager_proxy_.get()); 73 sandbox_file_system_.SetUp(base_dir, quota_manager_proxy_.get());
74 sandbox_file_system_.AddFileChangeObserver(&change_observer_); 74 sandbox_file_system_.AddFileChangeObserver(&change_observer_);
75 sandbox_file_system_.AddFileUpdateObserver(&update_observer_); 75 sandbox_file_system_.AddFileUpdateObserver(&update_observer_);
(...skipping 1227 matching lines...) Expand 10 before | Expand all | Expand 10 after
1303 FileSystemURL src_file(CreateFile("src")); 1303 FileSystemURL src_file(CreateFile("src"));
1304 FileSystemURL dest_file(CreateFile("dest")); 1304 FileSystemURL dest_file(CreateFile("dest"));
1305 1305
1306 EXPECT_EQ(base::File::FILE_OK, Truncate(dest_file, 6)); 1306 EXPECT_EQ(base::File::FILE_OK, Truncate(dest_file, 6));
1307 EXPECT_EQ(base::File::FILE_OK, 1307 EXPECT_EQ(base::File::FILE_OK,
1308 Copy(src_file, dest_file, FileSystemOperation::OPTION_NONE)); 1308 Copy(src_file, dest_file, FileSystemOperation::OPTION_NONE));
1309 EXPECT_EQ(0, GetFileSize("dest")); 1309 EXPECT_EQ(0, GetFileSize("dest"));
1310 } 1310 }
1311 1311
1312 } // namespace content 1312 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698