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

Unified Diff: webkit/dom_storage/dom_storage_context_unittest.cc

Issue 10413072: Teaching BrowsingDataRemover how to delete application data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: How's this direction? Created 8 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
Index: webkit/dom_storage/dom_storage_context_unittest.cc
diff --git a/webkit/dom_storage/dom_storage_context_unittest.cc b/webkit/dom_storage/dom_storage_context_unittest.cc
index da6a2ad970d0aa14608be1cd5cd54cf03ec6c38c..9fbf460300aed717f2452e1986ca39850f524b44 100644
--- a/webkit/dom_storage/dom_storage_context_unittest.cc
+++ b/webkit/dom_storage/dom_storage_context_unittest.cc
@@ -58,7 +58,8 @@ class DomStorageContextTest : public testing::Test {
std::vector<DomStorageContext::UsageInfo> infos;
context->GetUsageInfo(&infos, kDontIncludeFileInfo);
EXPECT_EQ(1u, infos.size());
- EXPECT_EQ(origin, infos[0].origin);
+ if (infos.size() > 0)
Bernhard Bauer 2012/05/31 15:57:31 You could ASSERT instead.
Mike West 2012/06/01 13:35:17 Done.
+ EXPECT_EQ(origin, infos[0].origin);
}
protected:
@@ -78,7 +79,6 @@ TEST_F(DomStorageContextTest, Basics) {
EXPECT_EQ(storage_policy_.get(), context_->special_storage_policy_.get());
context_->PurgeMemory();
context_->DeleteOrigin(GURL("http://chromium.org/"));
- context_->DeleteDataModifiedSince(base::Time::Now());
const int kFirstSessionStorageNamespaceId = 1;
EXPECT_TRUE(context_->GetStorageNamespace(kLocalStorageNamespaceId));
EXPECT_FALSE(context_->GetStorageNamespace(kFirstSessionStorageNamespaceId));
« content/public/browser/dom_storage_context.h ('K') | « webkit/dom_storage/dom_storage_context.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698