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

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

Issue 10810053: Enables internal filesystem types via Isolated filesystems (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: layout test crash fix 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 NULL, 148 NULL,
149 data_dir_.path(), 149 data_dir_.path(),
150 CreateAllowFileAccessOptions()); 150 CreateAllowFileAccessOptions());
151 } 151 }
152 152
153 SandboxMountPointProvider* sandbox_provider() { 153 SandboxMountPointProvider* sandbox_provider() {
154 return file_system_context_->sandbox_provider(); 154 return file_system_context_->sandbox_provider();
155 } 155 }
156 156
157 FileSystemFileUtil* file_util() { 157 FileSystemFileUtil* file_util() {
158 return sandbox_provider()->GetFileUtil(); 158 return sandbox_provider()->GetFileUtil(kFileSystemTypeTemporary);
159 } 159 }
160 160
161 void OnValidate(base::PlatformFileError result) { 161 void OnValidate(base::PlatformFileError result) {
162 EXPECT_NE(base::PLATFORM_FILE_OK, result); // We told it not to create. 162 EXPECT_NE(base::PLATFORM_FILE_OK, result); // We told it not to create.
163 } 163 }
164 164
165 FileSystemMountPointProvider::ValidateFileSystemCallback 165 FileSystemMountPointProvider::ValidateFileSystemCallback
166 GetValidateCallback() { 166 GetValidateCallback() {
167 return base::Bind(&SandboxMountPointProviderMigrationTest::OnValidate, 167 return base::Bind(&SandboxMountPointProviderMigrationTest::OnValidate,
168 weak_factory_.GetWeakPtr()); 168 weak_factory_.GetWeakPtr());
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 388
389 TEST_F(SandboxMountPointProviderMigrationTest, TestMigrateViaMethod8) { 389 TEST_F(SandboxMountPointProviderMigrationTest, TestMigrateViaMethod8) {
390 RunMigrationTest(8); 390 RunMigrationTest(8);
391 } 391 }
392 392
393 TEST_F(SandboxMountPointProviderMigrationTest, TestMigrateViaMethod9) { 393 TEST_F(SandboxMountPointProviderMigrationTest, TestMigrateViaMethod9) {
394 RunMigrationTest(9); 394 RunMigrationTest(9);
395 } 395 }
396 396
397 } // namespace fileapi 397 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/fileapi/sandbox_mount_point_provider.cc ('k') | webkit/fileapi/test_mount_point_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698