| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 #include <stdint.h> | 6 #include <stdint.h> |
| 7 #include <tuple> | 7 #include <tuple> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 1882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1893 | 1893 |
| 1894 #if defined(OS_ANDROID) | 1894 #if defined(OS_ANDROID) |
| 1895 // Crashing on Android: http://crbug.com/311341 | 1895 // Crashing on Android: http://crbug.com/311341 |
| 1896 #define MAYBE_HttpStatusCodeErrorWithEmptyBody \ | 1896 #define MAYBE_HttpStatusCodeErrorWithEmptyBody \ |
| 1897 DISABLED_HttpStatusCodeErrorWithEmptyBody | 1897 DISABLED_HttpStatusCodeErrorWithEmptyBody |
| 1898 #else | 1898 #else |
| 1899 #define MAYBE_HttpStatusCodeErrorWithEmptyBody HttpStatusCodeErrorWithEmptyBody | 1899 #define MAYBE_HttpStatusCodeErrorWithEmptyBody HttpStatusCodeErrorWithEmptyBody |
| 1900 #endif | 1900 #endif |
| 1901 TEST_F(RendererErrorPageTest, MAYBE_HttpStatusCodeErrorWithEmptyBody) { | 1901 TEST_F(RendererErrorPageTest, MAYBE_HttpStatusCodeErrorWithEmptyBody) { |
| 1902 blink::WebURLResponse response; | 1902 blink::WebURLResponse response; |
| 1903 response.initialize(); | |
| 1904 response.setHTTPStatusCode(503); | 1903 response.setHTTPStatusCode(503); |
| 1905 WebLocalFrame* web_frame = GetMainFrame(); | 1904 WebLocalFrame* web_frame = GetMainFrame(); |
| 1906 | 1905 |
| 1907 // Start a load that will reach provisional state synchronously, | 1906 // Start a load that will reach provisional state synchronously, |
| 1908 // but won't complete synchronously. | 1907 // but won't complete synchronously. |
| 1909 CommonNavigationParams common_params; | 1908 CommonNavigationParams common_params; |
| 1910 common_params.navigation_type = FrameMsg_Navigate_Type::NORMAL; | 1909 common_params.navigation_type = FrameMsg_Navigate_Type::NORMAL; |
| 1911 common_params.url = GURL("data:text/html,test data"); | 1910 common_params.url = GURL("data:text/html,test data"); |
| 1912 TestRenderFrame* main_frame = static_cast<TestRenderFrame*>(frame()); | 1911 TestRenderFrame* main_frame = static_cast<TestRenderFrame*>(frame()); |
| 1913 main_frame->Navigate(common_params, StartNavigationParams(), | 1912 main_frame->Navigate(common_params, StartNavigationParams(), |
| (...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2496 ExpectPauseAndResume(3); | 2495 ExpectPauseAndResume(3); |
| 2497 blink::WebScriptSource source2( | 2496 blink::WebScriptSource source2( |
| 2498 WebString::fromUTF8("function func2() { func1(); }; func2();")); | 2497 WebString::fromUTF8("function func2() { func1(); }; func2();")); |
| 2499 frame()->GetWebFrame()->executeScriptInIsolatedWorld(17, &source2, 1, 1); | 2498 frame()->GetWebFrame()->executeScriptInIsolatedWorld(17, &source2, 1, 1); |
| 2500 | 2499 |
| 2501 EXPECT_FALSE(IsPaused()); | 2500 EXPECT_FALSE(IsPaused()); |
| 2502 Detach(); | 2501 Detach(); |
| 2503 } | 2502 } |
| 2504 | 2503 |
| 2505 } // namespace content | 2504 } // namespace content |
| OLD | NEW |