Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Unified Diff: webkit/fileapi/local_file_system_file_util_unittest.cc

Issue 7174002: Change {Obfuscated|Local}FileSystemFileUtil non-Singleton to take an underlying *FileUtil. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Rebased. Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/fileapi/local_file_system_file_util.cc ('k') | webkit/fileapi/obfuscated_file_system_file_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/local_file_system_file_util_unittest.cc
diff --git a/webkit/fileapi/local_file_system_file_util_unittest.cc b/webkit/fileapi/local_file_system_file_util_unittest.cc
index a446c8744cf140f25f22b38945f914e71cdf4cd5..1e8109d928091a450cbd8425010e18cb229baee8 100644
--- a/webkit/fileapi/local_file_system_file_util_unittest.cc
+++ b/webkit/fileapi/local_file_system_file_util_unittest.cc
@@ -19,8 +19,6 @@
#include "webkit/fileapi/file_system_test_helper.h"
#include "webkit/fileapi/file_system_types.h"
#include "webkit/fileapi/local_file_system_file_util.h"
-#include "webkit/fileapi/quota_file_util.h"
-#include "webkit/quota/quota_manager.h"
namespace fileapi {
@@ -28,7 +26,9 @@ namespace fileapi {
class LocalFileSystemFileUtilTest : public testing::Test {
public:
LocalFileSystemFileUtilTest()
- : callback_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) {
+ : local_file_util_(
+ new LocalFileSystemFileUtil(FileSystemFileUtil::GetInstance())),
+ callback_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) {
}
void SetUp() {
@@ -43,12 +43,11 @@ class LocalFileSystemFileUtilTest : public testing::Test {
protected:
FileSystemOperationContext* NewContext() {
FileSystemOperationContext* context = test_helper_.NewOperationContext();
- context->set_allowed_bytes_growth(QuotaFileUtil::kNoLimit);
return context;
}
LocalFileSystemFileUtil* FileUtil() {
- return LocalFileSystemFileUtil::GetInstance();
+ return local_file_util_.get();
}
static FilePath Path(const std::string& file_name) {
@@ -95,6 +94,7 @@ class LocalFileSystemFileUtilTest : public testing::Test {
}
private:
+ scoped_ptr<LocalFileSystemFileUtil> local_file_util_;
ScopedTempDir data_dir_;
FileSystemTestOriginHelper test_helper_;
« no previous file with comments | « webkit/fileapi/local_file_system_file_util.cc ('k') | webkit/fileapi/obfuscated_file_system_file_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698