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

Unified Diff: content/browser/quota/quota_reservation_manager_unittest.cc

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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
Index: content/browser/quota/quota_reservation_manager_unittest.cc
diff --git a/content/browser/quota/quota_reservation_manager_unittest.cc b/content/browser/quota/quota_reservation_manager_unittest.cc
index 84caddcd0ed967cb1f5b582a36bf0ad56f8f2887..1b8a0fcf57544ee64708c27fd7eeb2a58b349db3 100644
--- a/content/browser/quota/quota_reservation_manager_unittest.cc
+++ b/content/browser/quota/quota_reservation_manager_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "webkit/browser/fileapi/quota/quota_reservation_manager.h"
+#include "storage/browser/fileapi/quota/quota_reservation_manager.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
@@ -12,20 +12,20 @@
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "testing/gtest/include/gtest/gtest.h"
-#include "webkit/browser/fileapi/quota/open_file_handle.h"
-#include "webkit/browser/fileapi/quota/quota_reservation.h"
+#include "storage/browser/fileapi/quota/open_file_handle.h"
+#include "storage/browser/fileapi/quota/quota_reservation.h"
-using fileapi::kFileSystemTypeTemporary;
-using fileapi::OpenFileHandle;
-using fileapi::QuotaReservation;
-using fileapi::QuotaReservationManager;
+using storage::kFileSystemTypeTemporary;
+using storage::OpenFileHandle;
+using storage::QuotaReservation;
+using storage::QuotaReservationManager;
namespace content {
namespace {
const char kOrigin[] = "http://example.com";
-const fileapi::FileSystemType kType = kFileSystemTypeTemporary;
+const storage::FileSystemType kType = kFileSystemTypeTemporary;
const int64 kInitialFileSize = 1;
typedef QuotaReservationManager::ReserveQuotaCallback ReserveQuotaCallback;
@@ -50,7 +50,7 @@ class FakeBackend : public QuotaReservationManager::QuotaBackend {
virtual ~FakeBackend() {}
virtual void ReserveQuota(const GURL& origin,
- fileapi::FileSystemType type,
+ storage::FileSystemType type,
int64 delta,
const ReserveQuotaCallback& callback) OVERRIDE {
EXPECT_EQ(GURL(kOrigin), origin);
@@ -62,7 +62,7 @@ class FakeBackend : public QuotaReservationManager::QuotaBackend {
}
virtual void ReleaseReservedQuota(const GURL& origin,
- fileapi::FileSystemType type,
+ storage::FileSystemType type,
int64 size) OVERRIDE {
EXPECT_LE(0, size);
EXPECT_EQ(GURL(kOrigin), origin);
@@ -71,7 +71,7 @@ class FakeBackend : public QuotaReservationManager::QuotaBackend {
}
virtual void CommitQuotaUsage(const GURL& origin,
- fileapi::FileSystemType type,
+ storage::FileSystemType type,
int64 delta) OVERRIDE {
EXPECT_EQ(GURL(kOrigin), origin);
EXPECT_EQ(kType, type);
@@ -80,9 +80,9 @@ class FakeBackend : public QuotaReservationManager::QuotaBackend {
}
virtual void IncrementDirtyCount(const GURL& origin,
- fileapi::FileSystemType type) OVERRIDE {}
+ storage::FileSystemType type) OVERRIDE {}
virtual void DecrementDirtyCount(const GURL& origin,
- fileapi::FileSystemType type) OVERRIDE {}
+ storage::FileSystemType type) OVERRIDE {}
int64 on_memory_usage() { return on_memory_usage_; }
int64 on_disk_usage() { return on_disk_usage_; }
« no previous file with comments | « content/browser/quota/quota_manager_unittest.cc ('k') | content/browser/quota/quota_temporary_storage_evictor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698