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

Side by Side Diff: content/test/test_render_frame_host.cc

Issue 857213003: Refactor sudden termination (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Charlie's comments Created 5 years, 10 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 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 "content/test/test_render_frame_host.h" 5 #include "content/test/test_render_frame_host.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "content/browser/frame_host/frame_tree.h" 8 #include "content/browser/frame_host/frame_tree.h"
9 #include "content/browser/frame_host/navigation_request.h" 9 #include "content/browser/frame_host/navigation_request.h"
10 #include "content/browser/frame_host/navigator.h" 10 #include "content/browser/frame_host/navigator.h"
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 return; 232 return;
233 233
234 ASSERT_TRUE(request->state() == NavigationRequest::STARTED); 234 ASSERT_TRUE(request->state() == NavigationRequest::STARTED);
235 TestNavigationURLLoader* url_loader = 235 TestNavigationURLLoader* url_loader =
236 static_cast<TestNavigationURLLoader*>(request->loader_for_testing()); 236 static_cast<TestNavigationURLLoader*>(request->loader_for_testing());
237 ASSERT_TRUE(url_loader); 237 ASSERT_TRUE(url_loader);
238 scoped_refptr<ResourceResponse> response(new ResourceResponse); 238 scoped_refptr<ResourceResponse> response(new ResourceResponse);
239 url_loader->CallOnResponseStarted(response, MakeEmptyStream()); 239 url_loader->CallOnResponseStarted(response, MakeEmptyStream());
240 } 240 }
241 241
242 void TestRenderFrameHost::SendBeforeUnloadHandlersPresent(bool present) {
243 OnBeforeUnloadHandlersPresent(present);
244 }
245
246 void TestRenderFrameHost::SendUnloadHandlersPresent(bool present) {
247 OnUnloadHandlersPresent(present);
248 }
249
242 } // namespace content 250 } // namespace content
OLDNEW
« content/renderer/render_frame_impl.cc ('K') | « content/test/test_render_frame_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698