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

Unified Diff: webkit/appcache/mock_appcache_storage_unittest.cc

Issue 6727006: Select a more appropiate appcache based on the opener or the parent of the new document. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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/appcache/mock_appcache_storage_unittest.cc
===================================================================
--- webkit/appcache/mock_appcache_storage_unittest.cc (revision 81647)
+++ webkit/appcache/mock_appcache_storage_unittest.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -394,7 +394,7 @@
MockStorageDelegate delegate;
GURL url("http://blah/some_url");
EXPECT_NE(url, delegate.found_url_);
- storage->FindResponseForMainRequest(url, &delegate);
+ storage->FindResponseForMainRequest(url, GURL(), &delegate);
EXPECT_NE(url, delegate.found_url_);
MessageLoop::current()->RunAllPending(); // Do async task execution.
EXPECT_EQ(url, delegate.found_url_);
@@ -431,7 +431,7 @@
// Conduct the test.
MockStorageDelegate delegate;
EXPECT_NE(kEntryUrl, delegate.found_url_);
- storage->FindResponseForMainRequest(kEntryUrl, &delegate);
+ storage->FindResponseForMainRequest(kEntryUrl, GURL(), &delegate);
EXPECT_NE(kEntryUrl, delegate.found_url_);
MessageLoop::current()->RunAllPending(); // Do async task execution.
EXPECT_EQ(kEntryUrl, delegate.found_url_);
@@ -486,7 +486,7 @@
// Conduct the test.
MockStorageDelegate delegate;
EXPECT_NE(kTestUrl, delegate.found_url_);
- storage->FindResponseForMainRequest(kTestUrl, &delegate);
+ storage->FindResponseForMainRequest(kTestUrl, GURL(), &delegate);
EXPECT_NE(kTestUrl, delegate.found_url_);
MessageLoop::current()->RunAllPending(); // Do async task execution.
EXPECT_EQ(kTestUrl, delegate.found_url_);
@@ -543,7 +543,7 @@
// since it's "in use".
MockStorageDelegate delegate;
EXPECT_NE(kEntryUrl, delegate.found_url_);
- storage->FindResponseForMainRequest(kEntryUrl, &delegate);
+ storage->FindResponseForMainRequest(kEntryUrl, GURL(), &delegate);
EXPECT_NE(kEntryUrl, delegate.found_url_);
MessageLoop::current()->RunAllPending(); // Do async task execution.
EXPECT_EQ(kEntryUrl, delegate.found_url_);
@@ -589,7 +589,7 @@
// We should not find anything for the foreign entry.
EXPECT_NE(kEntryUrl, delegate.found_url_);
- storage->FindResponseForMainRequest(kEntryUrl, &delegate);
+ storage->FindResponseForMainRequest(kEntryUrl, GURL(), &delegate);
EXPECT_NE(kEntryUrl, delegate.found_url_);
MessageLoop::current()->RunAllPending(); // Do async task execution.
EXPECT_EQ(kEntryUrl, delegate.found_url_);
@@ -603,7 +603,7 @@
// We should not find anything for the online namespace.
EXPECT_NE(kOnlineNamespaceUrl, delegate.found_url_);
- storage->FindResponseForMainRequest(kOnlineNamespaceUrl, &delegate);
+ storage->FindResponseForMainRequest(kOnlineNamespaceUrl, GURL(), &delegate);
EXPECT_NE(kOnlineNamespaceUrl, delegate.found_url_);
MessageLoop::current()->RunAllPending(); // Do async task execution.
EXPECT_EQ(kOnlineNamespaceUrl, delegate.found_url_);

Powered by Google App Engine
This is Rietveld 408576698