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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 } | 173 } |
174 | 174 |
175 FileSystemPathManager* path_manager() { | 175 FileSystemPathManager* path_manager() { |
176 return path_manager_; | 176 return path_manager_; |
177 } | 177 } |
178 | 178 |
179 SandboxMountPointProvider* sandbox_provider() { | 179 SandboxMountPointProvider* sandbox_provider() { |
180 return path_manager()->sandbox_provider(); | 180 return path_manager()->sandbox_provider(); |
181 } | 181 } |
182 | 182 |
183 FileSystemFileUtil* file_util() { | 183 FileApiFileUtil* file_util() { |
184 return sandbox_provider()->GetFileSystemFileUtil(); | 184 return sandbox_provider()->GetFileUtil(); |
185 } | 185 } |
186 | 186 |
187 void OnGetRootPath(bool success, const FilePath& unused, | 187 void OnGetRootPath(bool success, const FilePath& unused, |
188 const std::string& unused_also) { | 188 const std::string& unused_also) { |
189 EXPECT_FALSE(success); // We told it not to create. | 189 EXPECT_FALSE(success); // We told it not to create. |
190 } | 190 } |
191 | 191 |
192 FileSystemPathManager::GetRootPathCallback* GetRootPathCallback() { | 192 FileSystemPathManager::GetRootPathCallback* GetRootPathCallback() { |
193 return callback_factory_.NewCallback( | 193 return callback_factory_.NewCallback( |
194 &SandboxMountPointProviderMigrationTest::OnGetRootPath); | 194 &SandboxMountPointProviderMigrationTest::OnGetRootPath); |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 | 416 |
417 TEST_F(SandboxMountPointProviderMigrationTest, TestMigrateViaMethod8) { | 417 TEST_F(SandboxMountPointProviderMigrationTest, TestMigrateViaMethod8) { |
418 RunMigrationTest(8); | 418 RunMigrationTest(8); |
419 } | 419 } |
420 | 420 |
421 TEST_F(SandboxMountPointProviderMigrationTest, TestMigrateViaMethod9) { | 421 TEST_F(SandboxMountPointProviderMigrationTest, TestMigrateViaMethod9) { |
422 RunMigrationTest(9); | 422 RunMigrationTest(9); |
423 } | 423 } |
424 | 424 |
425 } // namespace fileapi | 425 } // namespace fileapi |
OLD | NEW |