OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 | 157 |
158 FileSystemPathManager* path_manager() { | 158 FileSystemPathManager* path_manager() { |
159 return path_manager_; | 159 return path_manager_; |
160 } | 160 } |
161 | 161 |
162 SandboxMountPointProvider* sandbox_provider() { | 162 SandboxMountPointProvider* sandbox_provider() { |
163 return path_manager()->sandbox_provider(); | 163 return path_manager()->sandbox_provider(); |
164 } | 164 } |
165 | 165 |
166 FileSystemFileUtil* file_util() { | 166 FileSystemFileUtil* file_util() { |
167 return sandbox_provider()->GetFileSystemFileUtil(); | 167 return sandbox_provider()->GetFileUtil(); |
168 } | 168 } |
169 | 169 |
170 void OnGetRootPath(bool success, const FilePath& unused, | 170 void OnGetRootPath(bool success, const FilePath& unused, |
171 const std::string& unused_also) { | 171 const std::string& unused_also) { |
172 EXPECT_FALSE(success); // We told it not to create. | 172 EXPECT_FALSE(success); // We told it not to create. |
173 } | 173 } |
174 | 174 |
175 FileSystemPathManager::GetRootPathCallback* GetRootPathCallback() { | 175 FileSystemPathManager::GetRootPathCallback* GetRootPathCallback() { |
176 return callback_factory_.NewCallback( | 176 return callback_factory_.NewCallback( |
177 &SandboxMountPointProviderMigrationTest::OnGetRootPath); | 177 &SandboxMountPointProviderMigrationTest::OnGetRootPath); |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 | 399 |
400 TEST_F(SandboxMountPointProviderMigrationTest, TestMigrateViaMethod8) { | 400 TEST_F(SandboxMountPointProviderMigrationTest, TestMigrateViaMethod8) { |
401 RunMigrationTest(8); | 401 RunMigrationTest(8); |
402 } | 402 } |
403 | 403 |
404 TEST_F(SandboxMountPointProviderMigrationTest, TestMigrateViaMethod9) { | 404 TEST_F(SandboxMountPointProviderMigrationTest, TestMigrateViaMethod9) { |
405 RunMigrationTest(9); | 405 RunMigrationTest(9); |
406 } | 406 } |
407 | 407 |
408 } // namespace fileapi | 408 } // namespace fileapi |
OLD | NEW |