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

Unified Diff: content/browser/appcache/appcache_storage_impl_unittest.cc

Issue 492873002: Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single sto… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build 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/appcache/appcache_storage_impl_unittest.cc
diff --git a/content/browser/appcache/appcache_storage_impl_unittest.cc b/content/browser/appcache/appcache_storage_impl_unittest.cc
index ad3807d16399e7be87fc9593bfa9e6f23876391c..29d4a2799d755de946e72e147251ed401c7c249d 100644
--- a/content/browser/appcache/appcache_storage_impl_unittest.cc
+++ b/content/browser/appcache/appcache_storage_impl_unittest.cc
@@ -251,7 +251,7 @@ class AppCacheStorageImplTest : public testing::Test {
AppCacheStorageImplTest* test_;
};
- class MockQuotaManager : public quota::QuotaManager {
+ class MockQuotaManager : public storage::QuotaManager {
public:
MockQuotaManager()
: QuotaManager(true /* is_incognito */,
@@ -263,9 +263,9 @@ class AppCacheStorageImplTest : public testing::Test {
virtual void GetUsageAndQuota(
const GURL& origin,
- quota::StorageType type,
+ storage::StorageType type,
const GetUsageAndQuotaCallback& callback) OVERRIDE {
- EXPECT_EQ(quota::kStorageTypeTemporary, type);
+ EXPECT_EQ(storage::kStorageTypeTemporary, type);
if (async_) {
base::MessageLoop::current()->PostTask(
FROM_HERE,
@@ -278,7 +278,7 @@ class AppCacheStorageImplTest : public testing::Test {
}
void CallCallback(const GetUsageAndQuotaCallback& callback) {
- callback.Run(quota::kQuotaStatusOk, 0, kMockQuota);
+ callback.Run(storage::kQuotaStatusOk, 0, kMockQuota);
}
bool async_;
@@ -287,7 +287,7 @@ class AppCacheStorageImplTest : public testing::Test {
virtual ~MockQuotaManager() {}
};
- class MockQuotaManagerProxy : public quota::QuotaManagerProxy {
+ class MockQuotaManagerProxy : public storage::QuotaManagerProxy {
public:
MockQuotaManagerProxy()
: QuotaManagerProxy(NULL, NULL),
@@ -298,38 +298,38 @@ class AppCacheStorageImplTest : public testing::Test {
manager_ = mock_manager_.get();
}
- virtual void NotifyStorageAccessed(quota::QuotaClient::ID client_id,
+ virtual void NotifyStorageAccessed(storage::QuotaClient::ID client_id,
const GURL& origin,
- quota::StorageType type) OVERRIDE {
- EXPECT_EQ(quota::QuotaClient::kAppcache, client_id);
- EXPECT_EQ(quota::kStorageTypeTemporary, type);
+ storage::StorageType type) OVERRIDE {
+ EXPECT_EQ(storage::QuotaClient::kAppcache, client_id);
+ EXPECT_EQ(storage::kStorageTypeTemporary, type);
++notify_storage_accessed_count_;
last_origin_ = origin;
}
- virtual void NotifyStorageModified(quota::QuotaClient::ID client_id,
+ virtual void NotifyStorageModified(storage::QuotaClient::ID client_id,
const GURL& origin,
- quota::StorageType type,
+ storage::StorageType type,
int64 delta) OVERRIDE {
- EXPECT_EQ(quota::QuotaClient::kAppcache, client_id);
- EXPECT_EQ(quota::kStorageTypeTemporary, type);
+ EXPECT_EQ(storage::QuotaClient::kAppcache, client_id);
+ EXPECT_EQ(storage::kStorageTypeTemporary, type);
++notify_storage_modified_count_;
last_origin_ = origin;
last_delta_ = delta;
}
// Not needed for our tests.
- virtual void RegisterClient(quota::QuotaClient* client) OVERRIDE {}
+ virtual void RegisterClient(storage::QuotaClient* client) OVERRIDE {}
virtual void NotifyOriginInUse(const GURL& origin) OVERRIDE {}
virtual void NotifyOriginNoLongerInUse(const GURL& origin) OVERRIDE {}
- virtual void SetUsageCacheEnabled(quota::QuotaClient::ID client_id,
+ virtual void SetUsageCacheEnabled(storage::QuotaClient::ID client_id,
const GURL& origin,
- quota::StorageType type,
+ storage::StorageType type,
bool enabled) OVERRIDE {}
virtual void GetUsageAndQuota(
base::SequencedTaskRunner* original_task_runner,
const GURL& origin,
- quota::StorageType type,
+ storage::StorageType type,
const GetUsageAndQuotaCallback& callback) OVERRIDE {}
int notify_storage_accessed_count_;
« no previous file with comments | « content/browser/appcache/appcache_storage_impl.cc ('k') | content/browser/appcache/appcache_storage_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698