summaryrefslogtreecommitdiffstats
path: root/webkit/fileapi/file_system_path_manager_unittest.cc
diff options
context:
space:
mode:
authormarja@chromium.org <marja@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-17 09:23:00 +0000
committermarja@chromium.org <marja@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-17 09:23:00 +0000
commitd024044a7b26967f7db9d9b228224a98cb7c159d (patch)
treeb34e31150a8628e252e1c9f4cbcdd88197e752ca /webkit/fileapi/file_system_path_manager_unittest.cc
parent4ace61778d6bfa9eb8a61f5a1879ba1bb278a561 (diff)
downloadchromium_src-d024044a7b26967f7db9d9b228224a98cb7c159d.zip
chromium_src-d024044a7b26967f7db9d9b228224a98cb7c159d.tar.gz
chromium_src-d024044a7b26967f7db9d9b228224a98cb7c159d.tar.bz2
Test cleanup: Using MockSpecialStoragePolicy instead of local subclasses of SpecialStoragePolicy.
BUG=NONE TEST=Existing tests pass: FileSystemDirURLRequestJobTest.*, FileSystemURLRequestJobTest.*, FileSystemContextTest.*, DatabaseTrackerTest.*, QuotaFileUtilTest.*, FileSystemPathManagerTest.*, SandboxMountPointProviderMigrationTest.* Review URL: http://codereview.chromium.org/7633016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97119 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi/file_system_path_manager_unittest.cc')
-rw-r--r--webkit/fileapi/file_system_path_manager_unittest.cc19
1 files changed, 2 insertions, 17 deletions
diff --git a/webkit/fileapi/file_system_path_manager_unittest.cc b/webkit/fileapi/file_system_path_manager_unittest.cc
index 008c077..afa157b 100644
--- a/webkit/fileapi/file_system_path_manager_unittest.cc
+++ b/webkit/fileapi/file_system_path_manager_unittest.cc
@@ -21,7 +21,7 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "webkit/fileapi/file_system_util.h"
#include "webkit/fileapi/sandbox_mount_point_provider.h"
-#include "webkit/quota/special_storage_policy.h"
+#include "webkit/quota/mock_special_storage_policy.h"
namespace fileapi {
namespace {
@@ -205,21 +205,6 @@ FilePath UTF8ToFilePath(const std::string& str) {
return FilePath(result);
}
-class TestSpecialStoragePolicy : public quota::SpecialStoragePolicy {
- public:
- virtual bool IsStorageProtected(const GURL& origin) {
- return false;
- }
-
- virtual bool IsStorageUnlimited(const GURL& origin) {
- return true;
- }
-
- virtual bool IsFileHandler(const std::string& extension_id) {
- return true;
- }
-};
-
} // namespace
class FileSystemPathManagerTest : public testing::Test {
@@ -243,7 +228,7 @@ class FileSystemPathManagerTest : public testing::Test {
base::MessageLoopProxy::current(),
data_dir_.path(),
scoped_refptr<quota::SpecialStoragePolicy>(
- new TestSpecialStoragePolicy()),
+ new quota::MockSpecialStoragePolicy),
incognito,
allow_file_access);
#if defined(OS_CHROMEOS)