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

Unified Diff: webkit/quota/usage_tracker_unittest.cc

Issue 15695003: [Quota][Clean up] Drop StorageType in GlobalUsageCallback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: testfix Created 7 years, 7 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 | « webkit/quota/usage_tracker.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/quota/usage_tracker_unittest.cc
diff --git a/webkit/quota/usage_tracker_unittest.cc b/webkit/quota/usage_tracker_unittest.cc
index 3a236bc2fb47ac16e76484ea930edeb3d96e3aa7..bfd423cc3be5ac3bcba09c63d9bdcb6c0a99825c 100644
--- a/webkit/quota/usage_tracker_unittest.cc
+++ b/webkit/quota/usage_tracker_unittest.cc
@@ -14,15 +14,12 @@ namespace quota {
namespace {
void DidGetGlobalUsage(bool* done,
- StorageType* type_out,
int64* usage_out,
int64* unlimited_usage_out,
- StorageType type,
int64 usage,
int64 unlimited_usage) {
EXPECT_FALSE(*done);
*done = true;
- *type_out = type;
*usage_out = usage;
*unlimited_usage_out = unlimited_usage;
}
@@ -141,14 +138,12 @@ class UsageTrackerTest : public testing::Test {
void GetGlobalUsage(int64* usage, int64* unlimited_usage) {
bool done = false;
- StorageType type = kStorageTypeUnknown;
usage_tracker_.GetGlobalUsage(base::Bind(
&DidGetGlobalUsage,
- &done, &type, usage, unlimited_usage));
+ &done, usage, unlimited_usage));
message_loop_.RunUntilIdle();
EXPECT_TRUE(done);
- EXPECT_EQ(kStorageTypeTemporary, type);
}
void GetHostUsage(const std::string& host, int64* usage) {
« no previous file with comments | « webkit/quota/usage_tracker.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698