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

Unified Diff: content/browser/in_process_webkit/indexed_db_quota_client_unittest.cc

Issue 7533013: Quota: Add quota::StorageType to the GetOriginsCallback definition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing onto today's ToT. Created 9 years, 5 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/in_process_webkit/indexed_db_quota_client_unittest.cc
diff --git a/content/browser/in_process_webkit/indexed_db_quota_client_unittest.cc b/content/browser/in_process_webkit/indexed_db_quota_client_unittest.cc
index 22175759ea0369a9222518cdc421d7be9e9eef4f..8a1d5c820db63733d085d3358882dd41664c98d7 100644
--- a/content/browser/in_process_webkit/indexed_db_quota_client_unittest.cc
+++ b/content/browser/in_process_webkit/indexed_db_quota_client_unittest.cc
@@ -74,6 +74,7 @@ class IndexedDBQuotaClientTest : public testing::Test {
quota::QuotaClient* client,
quota::StorageType type) {
origins_.clear();
+ type_ = quota::kStorageTypeTemporary;
client->GetOriginsForType(type,
callback_factory_.NewCallback(
&IndexedDBQuotaClientTest::OnGetOriginsComplete));
@@ -86,6 +87,7 @@ class IndexedDBQuotaClientTest : public testing::Test {
quota::StorageType type,
const std::string& host) {
origins_.clear();
+ type_ = quota::kStorageTypeTemporary;
client->GetOriginsForHost(type, host,
callback_factory_.NewCallback(
&IndexedDBQuotaClientTest::OnGetOriginsComplete));
@@ -116,13 +118,16 @@ class IndexedDBQuotaClientTest : public testing::Test {
usage_ = usage;
}
- void OnGetOriginsComplete(const std::set<GURL>& origins) {
+ void OnGetOriginsComplete(const std::set<GURL>& origins,
+ quota::StorageType type) {
origins_ = origins;
+ type_ = type_;
}
ScopedTempDir temp_dir_;
int64 usage_;
std::set<GURL> origins_;
+ quota::StorageType type_;
scoped_refptr<IndexedDBContext> idb_context_;
base::ScopedCallbackFactory<IndexedDBQuotaClientTest> callback_factory_;
MessageLoop message_loop_;
« no previous file with comments | « content/browser/in_process_webkit/indexed_db_quota_client.cc ('k') | webkit/appcache/appcache_quota_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698