summaryrefslogtreecommitdiffstats
path: root/webkit/fileapi/file_system_mount_point_provider_unittest.cc
diff options
context:
space:
mode:
authortbarzic@chromium.org <tbarzic@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-29 21:36:58 +0000
committertbarzic@chromium.org <tbarzic@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-29 21:36:58 +0000
commit243caf6856e5b1529ecded599b03dafaaaa4170f (patch)
treea4d40b3151c1b289de2c26b6c2893ef4bb2eb732 /webkit/fileapi/file_system_mount_point_provider_unittest.cc
parent69c984c0ecd3fe2068240679641350abf39350bc (diff)
downloadchromium_src-243caf6856e5b1529ecded599b03dafaaaa4170f.zip
chromium_src-243caf6856e5b1529ecded599b03dafaaaa4170f.tar.gz
chromium_src-243caf6856e5b1529ecded599b03dafaaaa4170f.tar.bz2
Remove unused methods from ExternalMountPointProvider
CrosMountPointProvider::(Add|Remove|Has)MountPoint methods are not used anymore They have been replaced by ExternalMountPoints methods. TEST=none (trybots pass) BUG=none Review URL: https://chromiumcodereview.appspot.com/12089036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179420 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi/file_system_mount_point_provider_unittest.cc')
-rw-r--r--webkit/fileapi/file_system_mount_point_provider_unittest.cc26
1 files changed, 8 insertions, 18 deletions
diff --git a/webkit/fileapi/file_system_mount_point_provider_unittest.cc b/webkit/fileapi/file_system_mount_point_provider_unittest.cc
index 4c7fa52..c36aa9b 100644
--- a/webkit/fileapi/file_system_mount_point_provider_unittest.cc
+++ b/webkit/fileapi/file_system_mount_point_provider_unittest.cc
@@ -212,17 +212,21 @@ class FileSystemMountPointProviderTest : public testing::Test {
protected:
void SetupNewContext(const FileSystemOptions& options) {
+ scoped_refptr<ExternalMountPoints> external_mount_points(
+ ExternalMountPoints::CreateRefCounted());
file_system_context_ = new FileSystemContext(
FileSystemTaskRunners::CreateMockTaskRunners(),
- ExternalMountPoints::CreateRefCounted().get(),
+ external_mount_points.get(),
special_storage_policy_,
NULL,
data_dir_.path(),
options);
#if defined(OS_CHROMEOS)
- ExternalFileSystemMountPointProvider* external_provider =
- file_system_context_->external_provider();
- external_provider->AddLocalMountPoint(FilePath(kMountPoint));
+ FilePath mount_point_path = FilePath(kMountPoint);
+ external_mount_points->RegisterFileSystem(
+ mount_point_path.BaseName().AsUTF8Unsafe(),
+ kFileSystemTypeNativeLocal,
+ mount_point_path);
#endif
}
@@ -401,18 +405,4 @@ TEST_F(FileSystemMountPointProviderTest, IsRestrictedName) {
}
}
-#if defined(OS_CHROMEOS)
-TEST_F(FileSystemMountPointProviderTest, ExternalMountPoints) {
- SetupNewContext(CreateDisallowFileAccessOptions());
- ExternalFileSystemMountPointProvider* external_provider =
- file_system_context()->external_provider();
- FilePath virtual_unused;
- EXPECT_TRUE(external_provider->GetVirtualPath(FilePath(kMountPoint),
- &virtual_unused));
- external_provider->RemoveMountPoint(FilePath(kMountPoint));
- EXPECT_FALSE(external_provider->GetVirtualPath(FilePath(kMountPoint),
- &virtual_unused));
-}
-#endif
-
} // namespace fileapi