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_; |