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

Unified Diff: webkit/fileapi/file_system_dir_url_request_job_unittest.cc

Issue 10829147: Make MediaFileUtil run on thread pool. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix for windows Created 8 years, 4 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_context.cc ('k') | webkit/fileapi/file_system_file_stream_reader.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 0c10f3721659ebadda4983acb233431e1faddcff..5529253c6e5f9908ab7a3b472111e2e2a3326ca2 100644
--- a/webkit/fileapi/file_system_dir_url_request_job_unittest.cc
+++ b/webkit/fileapi/file_system_dir_url_request_job_unittest.cc
@@ -24,6 +24,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_task_runners.h"
#include "webkit/fileapi/file_system_url.h"
#include "webkit/fileapi/mock_file_system_options.h"
#include "webkit/fileapi/sandbox_mount_point_provider.h"
@@ -48,13 +49,10 @@ class FileSystemDirURLRequestJobTest : public testing::Test {
virtual void SetUp() OVERRIDE {
ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
- file_thread_proxy_ = base::MessageLoopProxy::current();
-
special_storage_policy_ = new quota::MockSpecialStoragePolicy;
file_system_context_ =
new FileSystemContext(
- file_thread_proxy_,
- base::MessageLoopProxy::current(),
+ FileSystemTaskRunners::CreateMockTaskRunners(),
special_storage_policy_, NULL,
temp_dir_.path(),
CreateAllowFileAccessOptions());
@@ -208,10 +206,9 @@ class FileSystemDirURLRequestJobTest : public testing::Test {
}
// Put the message loop at the top, so that it's the last thing deleted.
- MessageLoop message_loop_;
// Delete all MessageLoopProxy objects before the MessageLoop, to help prevent
// leaks caused by tasks posted during shutdown.
- scoped_refptr<base::MessageLoopProxy> file_thread_proxy_;
+ MessageLoop message_loop_;
ScopedTempDir temp_dir_;
net::URLRequestContext empty_context_;
« no previous file with comments | « webkit/fileapi/file_system_context.cc ('k') | webkit/fileapi/file_system_file_stream_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698