diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-08 04:59:51 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-08 04:59:51 +0000 |
commit | ceee8cdcbdaf67d6f9c0e6ee3e7d889726b69c69 (patch) | |
tree | 51aaa1db442afae39d2ee066f2980ba103d9779d /content/test/test_web_contents.h | |
parent | 50749e0c43215b26cd0986a24753477ae48a83ef (diff) | |
download | chromium_src-ceee8cdcbdaf67d6f9c0e6ee3e7d889726b69c69.zip chromium_src-ceee8cdcbdaf67d6f9c0e6ee3e7d889726b69c69.tar.gz chromium_src-ceee8cdcbdaf67d6f9c0e6ee3e7d889726b69c69.tar.bz2 |
When a pending contents is created but deleted before it is shown, remove it from the list of pending contents
This happens during running layout tests when all newly opened windows are
closed, however, an IPC message to show one of the new windows is already in
flight
The other direction, when the opener is deleted, is already covered by existing
code.
BUG=180969
R=creis@chromium.org
TEST=content_unittests:WebContentsImplTest.PendingContents
Review URL: https://chromiumcodereview.appspot.com/12602003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186893 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/test/test_web_contents.h')
-rw-r--r-- | content/test/test_web_contents.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/content/test/test_web_contents.h b/content/test/test_web_contents.h index 4ae4434..644c45d 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. |