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

Unified Diff: webkit/fileapi/file_writer_delegate_unittest.cc

Issue 7312023: Refactoring: Change all -FileUtils non-Singleton and to own underlying FileUtils. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Reflected the comments. 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/file_system_quota_unittest.cc ('k') | webkit/fileapi/local_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/file_writer_delegate_unittest.cc
diff --git a/webkit/fileapi/file_writer_delegate_unittest.cc b/webkit/fileapi/file_writer_delegate_unittest.cc
index 4281beee0d2659b6c2ba2c36394c6cb5f91362e3..5af69c1c3e1324de2cf764fd718c1d50a8ad155b 100644
--- a/webkit/fileapi/file_writer_delegate_unittest.cc
+++ b/webkit/fileapi/file_writer_delegate_unittest.cc
@@ -82,7 +82,8 @@ class FileWriterDelegateTest : public PlatformTest {
virtual void TearDown();
virtual void SetUpTestHelper(const FilePath& base_dir) {
- test_helper_.SetUp(base_dir, QuotaFileUtil::GetInstance());
+ quota_file_util_.reset(QuotaFileUtil::CreateDefault());
+ test_helper_.SetUp(base_dir, quota_file_util_.get());
}
int64 ComputeCurrentOriginUsage() {
@@ -115,6 +116,7 @@ class FileWriterDelegateTest : public PlatformTest {
static net::URLRequest::ProtocolFactory Factory;
+ scoped_ptr<QuotaFileUtil> quota_file_util_;
scoped_ptr<FileWriterDelegate> file_writer_delegate_;
scoped_ptr<net::URLRequest> request_;
scoped_ptr<Result> result_;
@@ -480,12 +482,13 @@ class FileWriterDelegateUnlimitedTest : public FileWriterDelegateTest {
};
void FileWriterDelegateUnlimitedTest::SetUpTestHelper(const FilePath& path) {
+ quota_file_util_.reset(QuotaFileUtil::CreateDefault());
test_helper_.SetUp(
path,
false /* incognito */,
true /* unlimited */,
NULL /* quota manager proxy */,
- QuotaFileUtil::GetInstance());
+ quota_file_util_.get());
}
TEST_F(FileWriterDelegateUnlimitedTest, WriteWithQuota) {
« no previous file with comments | « webkit/fileapi/file_system_quota_unittest.cc ('k') | webkit/fileapi/local_file_system_file_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698