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

Unified Diff: webkit/fileapi/file_system_dir_url_request_job_unittest.cc

Issue 9004019: Cleanup: Removing FileSystemPathManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 12 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 | « webkit/fileapi/file_system_dir_url_request_job.cc ('k') | webkit/fileapi/file_system_file_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_dir_url_request_job_unittest.cc
diff --git a/webkit/fileapi/file_system_dir_url_request_job_unittest.cc b/webkit/fileapi/file_system_dir_url_request_job_unittest.cc
index e7871c83c0aa4014aa77b1ea6fce89e3b26d6897..50aa4bae1b1eceb5ba807474f86f58c2f5433de6 100644
--- a/webkit/fileapi/file_system_dir_url_request_job_unittest.cc
+++ b/webkit/fileapi/file_system_dir_url_request_job_unittest.cc
@@ -32,7 +32,7 @@
#include "webkit/fileapi/file_system_context.h"
#include "webkit/fileapi/file_system_file_util.h"
#include "webkit/fileapi/file_system_operation_context.h"
-#include "webkit/fileapi/file_system_path_manager.h"
+#include "webkit/fileapi/mock_file_system_options.h"
#include "webkit/fileapi/sandbox_mount_point_provider.h"
#include "webkit/quota/mock_special_storage_policy.h"
@@ -60,15 +60,13 @@ class FileSystemDirURLRequestJobTest : public testing::Test {
special_storage_policy_ = new quota::MockSpecialStoragePolicy;
file_system_context_ =
new FileSystemContext(
- base::MessageLoopProxy::current(),
+ file_thread_proxy_,
base::MessageLoopProxy::current(),
special_storage_policy_, NULL,
- FilePath(), false /* is_incognito */, true /* allow_file_access */,
- new FileSystemPathManager(
- file_thread_proxy_, temp_dir_.path(),
- NULL, false, false));
+ temp_dir_.path(),
+ CreateAllowFileAccessOptions());
- file_system_context_->path_manager()->ValidateFileSystemRootAndGetURL(
+ file_system_context_->sandbox_provider()->ValidateFileSystemRootAndGetURL(
GURL("http://remote/"), kFileSystemTypeTemporary, true, // create
base::Bind(&FileSystemDirURLRequestJobTest::OnGetRootPath,
weak_factory_.GetWeakPtr()));
@@ -201,8 +199,7 @@ class FileSystemDirURLRequestJobTest : public testing::Test {
}
FileSystemFileUtil* file_util() {
- return file_system_context_->path_manager()->sandbox_provider()->
- GetFileUtil();
+ return file_system_context_->sandbox_provider()->GetFileUtil();
}
// Put the message loop at the top, so that it's the last thing deleted.
« no previous file with comments | « webkit/fileapi/file_system_dir_url_request_job.cc ('k') | webkit/fileapi/file_system_file_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698