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

Unified Diff: webkit/fileapi/file_system_mount_point_provider_unittest.cc

Issue 14096022: Make MountPointProvider pluggable from outside webkit/fileapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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: webkit/fileapi/file_system_mount_point_provider_unittest.cc
diff --git a/webkit/fileapi/file_system_mount_point_provider_unittest.cc b/webkit/fileapi/file_system_mount_point_provider_unittest.cc
index 6e4a8e8f62a7f96424dfef10d5026bf882e1bdef..8ded6374b2453ce1ad63d68488cc66d8c52ccb3c 100644
--- a/webkit/fileapi/file_system_mount_point_provider_unittest.cc
+++ b/webkit/fileapi/file_system_mount_point_provider_unittest.cc
@@ -116,18 +116,19 @@ class FileSystemMountPointProviderTest : public testing::Test {
virtual void SetUp() {
ASSERT_TRUE(data_dir_.CreateUniqueTempDir());
- special_storage_policy_ = new quota::MockSpecialStoragePolicy;
}
protected:
void SetupNewContext(const FileSystemOptions& options) {
scoped_refptr<ExternalMountPoints> external_mount_points(
ExternalMountPoints::CreateRefCounted());
+ std::vector<MountPoints*> additional_mount_points;
+ additional_mount_points.push_back(external_mount_points);
file_system_context_ = new FileSystemContext(
FileSystemTaskRunners::CreateMockTaskRunners(),
- external_mount_points.get(),
- special_storage_policy_,
NULL,
+ ScopedVector<FileSystemMountPointProvider>(),
+ additional_mount_points,
data_dir_.path(),
options);
#if defined(OS_CHROMEOS)
@@ -174,7 +175,6 @@ class FileSystemMountPointProviderTest : public testing::Test {
MessageLoop message_loop_;
base::WeakPtrFactory<FileSystemMountPointProviderTest> weak_factory_;
- scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_;
scoped_refptr<FileSystemContext> file_system_context_;
DISALLOW_COPY_AND_ASSIGN(FileSystemMountPointProviderTest);

Powered by Google App Engine
This is Rietveld 408576698