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

Unified Diff: storage/browser/fileapi/quota/quota_backend_impl_unittest.cc

Issue 2776273002: Move some quota tests next to the files they cover. (Closed)
Patch Set: Created 3 years, 9 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 | « storage/browser/BUILD.gn ('k') | storage/browser/fileapi/quota/quota_reservation_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/fileapi/quota/quota_backend_impl_unittest.cc
diff --git a/content/browser/quota/quota_backend_impl_unittest.cc b/storage/browser/fileapi/quota/quota_backend_impl_unittest.cc
similarity index 97%
rename from content/browser/quota/quota_backend_impl_unittest.cc
rename to storage/browser/fileapi/quota/quota_backend_impl_unittest.cc
index 6054e32353c689065d014aaf508f4e8470063e93..ea45863b3912ef09c14c063da6eb1c03f111aa03 100644
--- a/content/browser/quota/quota_backend_impl_unittest.cc
+++ b/storage/browser/fileapi/quota/quota_backend_impl_unittest.cc
@@ -48,7 +48,8 @@ class MockQuotaManagerProxy : public storage::QuotaManagerProxy {
MockQuotaManagerProxy()
: QuotaManagerProxy(NULL, NULL),
storage_modified_count_(0),
- usage_(0), quota_(0) {}
+ usage_(0),
+ quota_(0) {}
// We don't mock them.
void NotifyOriginInUse(const GURL& origin) override {}
@@ -103,8 +104,7 @@ class QuotaBackendImplTest : public testing::Test {
in_memory_env_.reset(leveldb::NewMemEnv(leveldb::Env::Default()));
file_util_.reset(ObfuscatedFileUtil::CreateForTesting(
NULL, data_dir_.GetPath(), in_memory_env_.get(), file_task_runner()));
- backend_.reset(new QuotaBackendImpl(file_task_runner(),
- file_util_.get(),
+ backend_.reset(new QuotaBackendImpl(file_task_runner(), file_util_.get(),
&file_system_usage_cache_,
quota_manager_proxy_.get()));
}
@@ -140,8 +140,7 @@ class QuotaBackendImplTest : public testing::Test {
base::FilePath GetUsageCachePath(const GURL& origin,
storage::FileSystemType type) {
base::FilePath path;
- base::File::Error error =
- backend_->GetUsageCachePath(origin, type, &path);
+ base::File::Error error = backend_->GetUsageCachePath(origin, type, &path);
EXPECT_EQ(base::File::FILE_OK, error);
EXPECT_FALSE(path.empty());
return path;
« no previous file with comments | « storage/browser/BUILD.gn ('k') | storage/browser/fileapi/quota/quota_reservation_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698