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

Side by Side Diff: webkit/fileapi/sandbox_mount_point_provider_unittest.cc

Issue 10829147: Make MediaFileUtil run on thread pool. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update comment 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "webkit/fileapi/sandbox_mount_point_provider.h" 5 #include "webkit/fileapi/sandbox_mount_point_provider.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 } 137 }
138 138
139 void SetUp() { 139 void SetUp() {
140 ASSERT_TRUE(data_dir_.CreateUniqueTempDir()); 140 ASSERT_TRUE(data_dir_.CreateUniqueTempDir());
141 scoped_refptr<quota::MockSpecialStoragePolicy> special_storage_policy = 141 scoped_refptr<quota::MockSpecialStoragePolicy> special_storage_policy =
142 new quota::MockSpecialStoragePolicy; 142 new quota::MockSpecialStoragePolicy;
143 special_storage_policy->SetAllUnlimited(true); 143 special_storage_policy->SetAllUnlimited(true);
144 file_system_context_ = new FileSystemContext( 144 file_system_context_ = new FileSystemContext(
145 base::MessageLoopProxy::current(), 145 base::MessageLoopProxy::current(),
146 base::MessageLoopProxy::current(), 146 base::MessageLoopProxy::current(),
147 base::MessageLoopProxy::current(),
147 special_storage_policy, 148 special_storage_policy,
148 NULL, 149 NULL,
149 data_dir_.path(), 150 data_dir_.path(),
150 CreateAllowFileAccessOptions()); 151 CreateAllowFileAccessOptions());
151 } 152 }
152 153
153 SandboxMountPointProvider* sandbox_provider() { 154 SandboxMountPointProvider* sandbox_provider() {
154 return file_system_context_->sandbox_provider(); 155 return file_system_context_->sandbox_provider();
155 } 156 }
156 157
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 389
389 TEST_F(SandboxMountPointProviderMigrationTest, TestMigrateViaMethod8) { 390 TEST_F(SandboxMountPointProviderMigrationTest, TestMigrateViaMethod8) {
390 RunMigrationTest(8); 391 RunMigrationTest(8);
391 } 392 }
392 393
393 TEST_F(SandboxMountPointProviderMigrationTest, TestMigrateViaMethod9) { 394 TEST_F(SandboxMountPointProviderMigrationTest, TestMigrateViaMethod9) {
394 RunMigrationTest(9); 395 RunMigrationTest(9);
395 } 396 }
396 397
397 } // namespace fileapi 398 } // namespace fileapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698