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: storage/browser/fileapi/quota/quota_reservation_manager_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/fileapi/quota/quota_backend_impl_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/fileapi/quota/quota_reservation_manager_unittest.cc
diff --git a/content/browser/quota/quota_reservation_manager_unittest.cc b/storage/browser/fileapi/quota/quota_reservation_manager_unittest.cc
similarity index 98%
rename from content/browser/quota/quota_reservation_manager_unittest.cc
rename to storage/browser/fileapi/quota/quota_reservation_manager_unittest.cc
index 951692cae05c14d54e92dd6bae87f299072326a2..a6c344ef73bad8b004eb4d5e471a503decc63beb 100644
--- a/content/browser/quota/quota_reservation_manager_unittest.cc
+++ b/storage/browser/fileapi/quota/quota_reservation_manager_unittest.cc
@@ -52,8 +52,7 @@ void SetFileSize(const base::FilePath& path, int64_t size) {
class FakeBackend : public QuotaReservationManager::QuotaBackend {
public:
FakeBackend()
- : on_memory_usage_(kInitialFileSize),
- on_disk_usage_(kInitialFileSize) {}
+ : on_memory_usage_(kInitialFileSize), on_disk_usage_(kInitialFileSize) {}
~FakeBackend() override {}
void ReserveQuota(const GURL& origin,
@@ -154,9 +153,7 @@ class FakeWriter {
dirty_ = false;
}
- void ClearWithoutUsageReport() {
- handle_.reset();
- }
+ void ClearWithoutUsageReport() { handle_.reset(); }
private:
std::unique_ptr<OpenFileHandle> handle_;
@@ -208,9 +205,7 @@ class QuotaReservationManagerTest : public testing::Test {
return reservation_manager_.get();
}
- const base::FilePath& file_path() const {
- return file_path_;
- }
+ const base::FilePath& file_path() const { return file_path_; }
private:
base::MessageLoop message_loop_;
« no previous file with comments | « storage/browser/fileapi/quota/quota_backend_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698