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

Side by Side Diff: content/public/test/test_file_system_context.cc

Issue 195923002: Add mechanism to auto mount file systems in response to a URL request. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update test code Created 6 years, 9 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 | Annotate | Revision Log
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 "content/public/test/test_file_system_context.h" 5 #include "content/public/test/test_file_system_context.h"
6 6
7 #include "base/memory/scoped_vector.h" 7 #include "base/memory/scoped_vector.h"
8 #include "content/public/test/test_file_system_backend.h" 8 #include "content/public/test/test_file_system_backend.h"
9 #include "content/public/test/test_file_system_options.h" 9 #include "content/public/test/test_file_system_options.h"
10 #include "webkit/browser/fileapi/external_mount_points.h" 10 #include "webkit/browser/fileapi/external_mount_points.h"
(...skipping 18 matching lines...) Expand all
29 quota::QuotaManagerProxy* quota_manager_proxy, 29 quota::QuotaManagerProxy* quota_manager_proxy,
30 ScopedVector<fileapi::FileSystemBackend> additional_providers, 30 ScopedVector<fileapi::FileSystemBackend> additional_providers,
31 const base::FilePath& base_path) { 31 const base::FilePath& base_path) {
32 return new fileapi::FileSystemContext( 32 return new fileapi::FileSystemContext(
33 base::MessageLoopProxy::current().get(), 33 base::MessageLoopProxy::current().get(),
34 base::MessageLoopProxy::current().get(), 34 base::MessageLoopProxy::current().get(),
35 fileapi::ExternalMountPoints::CreateRefCounted().get(), 35 fileapi::ExternalMountPoints::CreateRefCounted().get(),
36 make_scoped_refptr(new quota::MockSpecialStoragePolicy()).get(), 36 make_scoped_refptr(new quota::MockSpecialStoragePolicy()).get(),
37 quota_manager_proxy, 37 quota_manager_proxy,
38 additional_providers.Pass(), 38 additional_providers.Pass(),
39 std::vector<fileapi::URLRequestAutoMountHandler>(),
39 base_path, 40 base_path,
40 CreateAllowFileAccessOptions()); 41 CreateAllowFileAccessOptions());
41 } 42 }
42 43
43 fileapi::FileSystemContext* CreateIncognitoFileSystemContextForTesting( 44 fileapi::FileSystemContext* CreateIncognitoFileSystemContextForTesting(
44 quota::QuotaManagerProxy* quota_manager_proxy, 45 quota::QuotaManagerProxy* quota_manager_proxy,
45 const base::FilePath& base_path) { 46 const base::FilePath& base_path) {
46 ScopedVector<fileapi::FileSystemBackend> additional_providers; 47 ScopedVector<fileapi::FileSystemBackend> additional_providers;
47 return new fileapi::FileSystemContext( 48 return new fileapi::FileSystemContext(
48 base::MessageLoopProxy::current().get(), 49 base::MessageLoopProxy::current().get(),
49 base::MessageLoopProxy::current().get(), 50 base::MessageLoopProxy::current().get(),
50 fileapi::ExternalMountPoints::CreateRefCounted().get(), 51 fileapi::ExternalMountPoints::CreateRefCounted().get(),
51 make_scoped_refptr(new quota::MockSpecialStoragePolicy()).get(), 52 make_scoped_refptr(new quota::MockSpecialStoragePolicy()).get(),
52 quota_manager_proxy, 53 quota_manager_proxy,
53 additional_providers.Pass(), 54 additional_providers.Pass(),
55 std::vector<fileapi::URLRequestAutoMountHandler>(),
54 base_path, 56 base_path,
55 CreateIncognitoFileSystemOptions()); 57 CreateIncognitoFileSystemOptions());
56 } 58 }
57 59
58 } // namespace content 60 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698