OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <stddef.h> | 5 #include <stddef.h> |
6 #include <utility> | 6 #include <utility> |
7 | 7 |
8 #include "base/base64.h" | 8 #include "base/base64.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
954 | 954 |
955 GURL test_url2 = embedded_test_server()->GetURL( | 955 GURL test_url2 = embedded_test_server()->GetURL( |
956 "B.com", "/devtools/navigation.html"); | 956 "B.com", "/devtools/navigation.html"); |
957 NavigateToURLBlockUntilNavigationsComplete(shell(), test_url2, 1); | 957 NavigateToURLBlockUntilNavigationsComplete(shell(), test_url2, 1); |
958 | 958 |
959 EXPECT_EQ(0u, notifications_.size()); | 959 EXPECT_EQ(0u, notifications_.size()); |
960 } | 960 } |
961 | 961 |
962 IN_PROC_BROWSER_TEST_F(DevToolsProtocolTest, CrossSiteCrash) { | 962 IN_PROC_BROWSER_TEST_F(DevToolsProtocolTest, CrossSiteCrash) { |
963 set_agent_host_can_close(); | 963 set_agent_host_can_close(); |
964 host_resolver()->AddRule("*", "127.0.0.1"); | |
965 content::SetupCrossSiteRedirector(embedded_test_server()); | 964 content::SetupCrossSiteRedirector(embedded_test_server()); |
966 ASSERT_TRUE(embedded_test_server()->Start()); | 965 ASSERT_TRUE(embedded_test_server()->Start()); |
967 | 966 |
968 GURL test_url1 = | 967 GURL test_url1 = |
969 embedded_test_server()->GetURL("A.com", "/devtools/navigation.html"); | 968 embedded_test_server()->GetURL("A.com", "/devtools/navigation.html"); |
970 NavigateToURLBlockUntilNavigationsComplete(shell(), test_url1, 1); | 969 NavigateToURLBlockUntilNavigationsComplete(shell(), test_url1, 1); |
971 Attach(); | 970 Attach(); |
972 CrashTab(shell()->web_contents()); | 971 CrashTab(shell()->web_contents()); |
973 | 972 |
974 GURL test_url2 = | 973 GURL test_url2 = |
(...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1815 EXPECT_EQ("polyglottal", value); | 1814 EXPECT_EQ("polyglottal", value); |
1816 found++; | 1815 found++; |
1817 } else { | 1816 } else { |
1818 FAIL(); | 1817 FAIL(); |
1819 } | 1818 } |
1820 } | 1819 } |
1821 EXPECT_EQ(2u, found); | 1820 EXPECT_EQ(2u, found); |
1822 } | 1821 } |
1823 | 1822 |
1824 } // namespace content | 1823 } // namespace content |
OLD | NEW |