OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |