| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/site_per_process_browsertest.h" | 5 #include "content/browser/site_per_process_browsertest.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 #include "content/public/browser/navigation_handle.h" | 44 #include "content/public/browser/navigation_handle.h" |
| 45 #include "content/public/browser/notification_observer.h" | 45 #include "content/public/browser/notification_observer.h" |
| 46 #include "content/public/browser/notification_service.h" | 46 #include "content/public/browser/notification_service.h" |
| 47 #include "content/public/browser/notification_types.h" | 47 #include "content/public/browser/notification_types.h" |
| 48 #include "content/public/browser/resource_dispatcher_host.h" | 48 #include "content/public/browser/resource_dispatcher_host.h" |
| 49 #include "content/public/common/browser_side_navigation_policy.h" | 49 #include "content/public/common/browser_side_navigation_policy.h" |
| 50 #include "content/public/common/content_switches.h" | 50 #include "content/public/common/content_switches.h" |
| 51 #include "content/public/common/url_constants.h" | 51 #include "content/public/common/url_constants.h" |
| 52 #include "content/public/test/browser_test_utils.h" | 52 #include "content/public/test/browser_test_utils.h" |
| 53 #include "content/public/test/content_browser_test_utils.h" | 53 #include "content/public/test/content_browser_test_utils.h" |
| 54 #include "content/public/test/test_frame_navigation_observer.h" |
| 54 #include "content/public/test/test_navigation_observer.h" | 55 #include "content/public/test/test_navigation_observer.h" |
| 55 #include "content/public/test/test_utils.h" | 56 #include "content/public/test/test_utils.h" |
| 56 #include "content/test/content_browser_test_utils_internal.h" | 57 #include "content/test/content_browser_test_utils_internal.h" |
| 57 #include "content/test/test_frame_navigation_observer.h" | |
| 58 #include "ipc/ipc.mojom.h" | 58 #include "ipc/ipc.mojom.h" |
| 59 #include "ipc/ipc_security_test_util.h" | 59 #include "ipc/ipc_security_test_util.h" |
| 60 #include "net/dns/mock_host_resolver.h" | 60 #include "net/dns/mock_host_resolver.h" |
| 61 #include "net/test/embedded_test_server/embedded_test_server.h" | 61 #include "net/test/embedded_test_server/embedded_test_server.h" |
| 62 #include "testing/gtest/include/gtest/gtest.h" | 62 #include "testing/gtest/include/gtest/gtest.h" |
| 63 #include "third_party/WebKit/public/platform/WebInputEvent.h" | 63 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
| 64 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" | 64 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" |
| 65 #include "third_party/WebKit/public/web/WebSandboxFlags.h" | 65 #include "third_party/WebKit/public/web/WebSandboxFlags.h" |
| 66 #include "ui/display/display_switches.h" | 66 #include "ui/display/display_switches.h" |
| 67 #include "ui/display/screen.h" | 67 #include "ui/display/screen.h" |
| (...skipping 8488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8556 EXPECT_TRUE(NavigateToURL(shell(), b_url)); | 8556 EXPECT_TRUE(NavigateToURL(shell(), b_url)); |
| 8557 | 8557 |
| 8558 base::string16 expected_title(base::UTF8ToUTF16("foo")); | 8558 base::string16 expected_title(base::UTF8ToUTF16("foo")); |
| 8559 TitleWatcher title_watcher(popup2->web_contents(), expected_title); | 8559 TitleWatcher title_watcher(popup2->web_contents(), expected_title); |
| 8560 EXPECT_TRUE(ExecuteScript( | 8560 EXPECT_TRUE(ExecuteScript( |
| 8561 shell(), "window.open('','popup2').postMessage('foo', '*');")); | 8561 shell(), "window.open('','popup2').postMessage('foo', '*');")); |
| 8562 EXPECT_EQ(expected_title, title_watcher.WaitAndGetTitle()); | 8562 EXPECT_EQ(expected_title, title_watcher.WaitAndGetTitle()); |
| 8563 } | 8563 } |
| 8564 | 8564 |
| 8565 } // namespace content | 8565 } // namespace content |
| OLD | NEW |