Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1514)

Side by Side Diff: content/renderer/render_view_browsertest.cc

Issue 2120233003: [OBSOLETE] Remove WebURLResponse::initialize() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix formatting issues and one last compile error Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1905 matching lines...) Expand 10 before | Expand all | Expand 10 after
1916 1916
1917 #if defined(OS_ANDROID) 1917 #if defined(OS_ANDROID)
1918 // Crashing on Android: http://crbug.com/311341 1918 // Crashing on Android: http://crbug.com/311341
1919 #define MAYBE_HttpStatusCodeErrorWithEmptyBody \ 1919 #define MAYBE_HttpStatusCodeErrorWithEmptyBody \
1920 DISABLED_HttpStatusCodeErrorWithEmptyBody 1920 DISABLED_HttpStatusCodeErrorWithEmptyBody
1921 #else 1921 #else
1922 #define MAYBE_HttpStatusCodeErrorWithEmptyBody HttpStatusCodeErrorWithEmptyBody 1922 #define MAYBE_HttpStatusCodeErrorWithEmptyBody HttpStatusCodeErrorWithEmptyBody
1923 #endif 1923 #endif
1924 TEST_F(RendererErrorPageTest, MAYBE_HttpStatusCodeErrorWithEmptyBody) { 1924 TEST_F(RendererErrorPageTest, MAYBE_HttpStatusCodeErrorWithEmptyBody) {
1925 blink::WebURLResponse response; 1925 blink::WebURLResponse response;
1926 response.initialize();
1927 response.setHTTPStatusCode(503); 1926 response.setHTTPStatusCode(503);
1928 WebLocalFrame* web_frame = GetMainFrame(); 1927 WebLocalFrame* web_frame = GetMainFrame();
1929 1928
1930 // Start a load that will reach provisional state synchronously, 1929 // Start a load that will reach provisional state synchronously,
1931 // but won't complete synchronously. 1930 // but won't complete synchronously.
1932 CommonNavigationParams common_params; 1931 CommonNavigationParams common_params;
1933 common_params.navigation_type = FrameMsg_Navigate_Type::NORMAL; 1932 common_params.navigation_type = FrameMsg_Navigate_Type::NORMAL;
1934 common_params.url = GURL("data:text/html,test data"); 1933 common_params.url = GURL("data:text/html,test data");
1935 TestRenderFrame* main_frame = static_cast<TestRenderFrame*>(frame()); 1934 TestRenderFrame* main_frame = static_cast<TestRenderFrame*>(frame());
1936 main_frame->Navigate(common_params, StartNavigationParams(), 1935 main_frame->Navigate(common_params, StartNavigationParams(),
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
2502 "," 2501 ","
2503 "\"functionDeclaration\":\"function foo(){ " 2502 "\"functionDeclaration\":\"function foo(){ "
2504 "Promise.resolve().then(() => " 2503 "Promise.resolve().then(() => "
2505 "console.log(239))}\"" 2504 "console.log(239))}\""
2506 "}" 2505 "}"
2507 "}"); 2506 "}");
2508 EXPECT_EQ(1, CountNotifications("Console.messageAdded")); 2507 EXPECT_EQ(1, CountNotifications("Console.messageAdded"));
2509 } 2508 }
2510 2509
2511 } // namespace content 2510 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698