OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/macros.h" |
6 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
7 #include "content/public/browser/web_contents.h" | 8 #include "content/public/browser/web_contents.h" |
8 #include "content/public/browser/web_contents_delegate.h" | 9 #include "content/public/browser/web_contents_delegate.h" |
9 #include "content/public/test/browser_test_utils.h" | 10 #include "content/public/test/browser_test_utils.h" |
10 #include "content/public/test/content_browser_test.h" | 11 #include "content/public/test/content_browser_test.h" |
11 #include "content/public/test/content_browser_test_utils.h" | 12 #include "content/public/test/content_browser_test_utils.h" |
12 #include "content/public/test/test_navigation_observer.h" | 13 #include "content/public/test/test_navigation_observer.h" |
13 #include "content/shell/browser/shell.h" | 14 #include "content/shell/browser/shell.h" |
14 #include "net/dns/mock_host_resolver.h" | 15 #include "net/dns/mock_host_resolver.h" |
15 #include "url/gurl.h" | 16 #include "url/gurl.h" |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 url3 = url3.ReplaceComponents(replace_host); | 129 url3 = url3.ReplaceComponents(replace_host); |
129 | 130 |
130 NavigateToURL(shell(), url1); | 131 NavigateToURL(shell(), url1); |
131 | 132 |
132 Shell* popup = OpenWindowFromJavaScript(shell(), url2); | 133 Shell* popup = OpenWindowFromJavaScript(shell(), url2); |
133 NavigateToURL(popup, url3); | 134 NavigateToURL(popup, url3); |
134 EXPECT_TRUE(AttemptCloseFromJavaScript(popup->web_contents())); | 135 EXPECT_TRUE(AttemptCloseFromJavaScript(popup->web_contents())); |
135 } | 136 } |
136 | 137 |
137 } // namespace content | 138 } // namespace content |
OLD | NEW |