diff options
author | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-23 04:24:36 +0000 |
---|---|---|
committer | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-23 04:24:36 +0000 |
commit | 4f056a870937b82f28bbde8ff4172940a3ea87a4 (patch) | |
tree | bb92dabc90be973de5353352949d6ac8de94b730 /webkit/fileapi/file_system_file_util_unittest.cc | |
parent | dbeac5a7395be2df51590b4d8f538759bef857f7 (diff) | |
download | chromium_src-4f056a870937b82f28bbde8ff4172940a3ea87a4.zip chromium_src-4f056a870937b82f28bbde8ff4172940a3ea87a4.tar.gz chromium_src-4f056a870937b82f28bbde8ff4172940a3ea87a4.tar.bz2 |
Cleanup: Remove FileUtil overriding hack for testing in LocalFileSystemOperation
We needed the hack back then but it looks we no longer need it. (Now we can always get an appropriate FileUtil for a given filesystem type by calling MountPointProvider::GetFileUtil)
BUG=none
TEST=existing tests (content_unittests:*File*)
Review URL: https://codereview.chromium.org/11953023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178244 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi/file_system_file_util_unittest.cc')
-rw-r--r-- | webkit/fileapi/file_system_file_util_unittest.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/webkit/fileapi/file_system_file_util_unittest.cc b/webkit/fileapi/file_system_file_util_unittest.cc index 7e45cef..b33b32a 100644 --- a/webkit/fileapi/file_system_file_util_unittest.cc +++ b/webkit/fileapi/file_system_file_util_unittest.cc @@ -51,16 +51,16 @@ class FileSystemFileUtilTest : public testing::Test { bool copy) { base::ScopedTempDir base_dir; ASSERT_TRUE(base_dir.CreateUniqueTempDir()); - scoped_ptr<ObfuscatedFileUtil> file_util( - new ObfuscatedFileUtil(base_dir.path())); LocalFileSystemTestOriginHelper src_helper(src_origin, src_type); src_helper.SetUp(base_dir.path(), false, // unlimited quota - NULL, // quota::QuotaManagerProxy - file_util.get()); + NULL); // quota::QuotaManagerProxy LocalFileSystemTestOriginHelper dest_helper(dest_origin, dest_type); - dest_helper.SetUp(src_helper.file_system_context(), file_util.get()); + dest_helper.SetUp(src_helper.file_system_context()); + + ObfuscatedFileUtil* file_util = static_cast<ObfuscatedFileUtil*>( + src_helper.file_util()); // Set up all the source data. scoped_ptr<FileSystemOperationContext> context; |