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

Unified Diff: content/test/test_web_contents.h

Issue 12602003: When a pending contents is created but deleted before it is shown, remove it from the list of pendi… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years, 9 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: content/test/test_web_contents.h
diff --git a/content/test/test_web_contents.h b/content/test/test_web_contents.h
index 4ae4434b716bf89371f80d7eda9a4b8d15b3bba6..644c45d7989c72642d022ec04cea58c9d2c99deb 100644
--- a/content/test/test_web_contents.h
+++ b/content/test/test_web_contents.h
@@ -76,6 +76,9 @@ class TestWebContents : public WebContentsImpl, public WebContentsTester {
// Allows us to simulate this tab having an opener.
void SetOpener(TestWebContents* opener);
+ // Allows us to simulate that a contents was created via CreateNewWindow.
+ void AddPendingContents(TestWebContents* contents);
+
// Establish expected arguments for |SetHistoryLengthAndPrune()|. When
// |SetHistoryLengthAndPrune()| is called, the arguments are compared
// with the expected arguments specified here.

Powered by Google App Engine
This is Rietveld 408576698