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

Unified Diff: webkit/fileapi/quota_file_util_unittest.cc

Issue 9564047: Add FileUtileHelper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/DeletePath/Delete/g Created 8 years, 10 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/obfuscated_file_util_unittest.cc ('k') | webkit/fileapi/webkit_fileapi.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/quota_file_util_unittest.cc
diff --git a/webkit/fileapi/quota_file_util_unittest.cc b/webkit/fileapi/quota_file_util_unittest.cc
index 675b25b1c81f7fcbe942fca259e9f3d2cb706d0c..eec737a26ecaf05cdd92b45d27fd0f7a86fffdf3 100644
--- a/webkit/fileapi/quota_file_util_unittest.cc
+++ b/webkit/fileapi/quota_file_util_unittest.cc
@@ -14,6 +14,7 @@
#include "webkit/fileapi/file_system_test_helper.h"
#include "webkit/fileapi/file_system_types.h"
#include "webkit/fileapi/file_system_usage_cache.h"
+#include "webkit/fileapi/file_util_helper.h"
#include "webkit/fileapi/quota_file_util.h"
namespace fileapi {
@@ -510,9 +511,8 @@ TEST_F(QuotaFileUtilTest, Remove) {
context.reset(NewContext());
context->set_allowed_bytes_growth(QuotaFileUtil::kNoLimit);
ASSERT_EQ(base::PLATFORM_FILE_OK,
- quota_file_util()->Delete(context.get(),
- Path(file),
- false));
+ FileUtilHelper::Delete(context.get(), quota_file_util(),
+ Path(file), false));
ASSERT_EQ(1140, quota_test_helper().GetCachedOriginUsage());
ASSERT_EQ(quota_test_helper().ComputeCurrentOriginUsage(),
quota_test_helper().GetCachedOriginUsage());
@@ -520,9 +520,8 @@ TEST_F(QuotaFileUtilTest, Remove) {
context.reset(NewContext());
context->set_allowed_bytes_growth(QuotaFileUtil::kNoLimit);
ASSERT_EQ(base::PLATFORM_FILE_OK,
- quota_file_util()->Delete(context.get(),
- Path(dir),
- true));
+ FileUtilHelper::Delete(context.get(), quota_file_util(),
+ Path(dir), true));
ASSERT_EQ(0, quota_test_helper().GetCachedOriginUsage());
ASSERT_EQ(quota_test_helper().ComputeCurrentOriginUsage(),
quota_test_helper().GetCachedOriginUsage());
« no previous file with comments | « webkit/fileapi/obfuscated_file_util_unittest.cc ('k') | webkit/fileapi/webkit_fileapi.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698