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

Unified Diff: chrome/browser/in_process_webkit/webkit_context_unittest.cc

Issue 5359005: Moved deleting the indexed db context to the WebKitContext destructor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Niptucked. Created 10 years, 1 month 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 | « chrome/browser/in_process_webkit/webkit_context.cc ('k') | chrome/browser/profile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/in_process_webkit/webkit_context_unittest.cc
diff --git a/chrome/browser/in_process_webkit/webkit_context_unittest.cc b/chrome/browser/in_process_webkit/webkit_context_unittest.cc
index 92334d663ac880f5ca08b549deb37c65df4ab248..c8870aaba51147878d05d04b2574de5a88b48118 100644
--- a/chrome/browser/in_process_webkit/webkit_context_unittest.cc
+++ b/chrome/browser/in_process_webkit/webkit_context_unittest.cc
@@ -30,11 +30,11 @@ class MockDOMStorageContext : public DOMStorageContext {
TEST(WebKitContextTest, Basic) {
TestingProfile profile;
- scoped_refptr<WebKitContext> context1(new WebKitContext(&profile));
+ scoped_refptr<WebKitContext> context1(new WebKitContext(&profile, false));
EXPECT_TRUE(profile.GetPath() == context1->data_path());
EXPECT_TRUE(profile.IsOffTheRecord() == context1->is_incognito());
- scoped_refptr<WebKitContext> context2(new WebKitContext(&profile));
+ scoped_refptr<WebKitContext> context2(new WebKitContext(&profile, false));
EXPECT_TRUE(context1->data_path() == context2->data_path());
EXPECT_TRUE(context1->is_incognito() == context2->is_incognito());
}
@@ -47,7 +47,7 @@ TEST(WebKitContextTest, PurgeMemory) {
// Create the contexts.
TestingProfile profile;
- scoped_refptr<WebKitContext> context(new WebKitContext(&profile));
+ scoped_refptr<WebKitContext> context(new WebKitContext(&profile, false));
MockDOMStorageContext* mock_context =
new MockDOMStorageContext(context.get());
context->set_dom_storage_context(mock_context); // Takes ownership.
« no previous file with comments | « chrome/browser/in_process_webkit/webkit_context.cc ('k') | chrome/browser/profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698