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

Unified Diff: content/browser/renderer_host/render_widget_host_view_mac_unittest.mm

Issue 1453803002: Separate RenderViewHost from RenderWidgetHost, part 10: shutdown. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nick's nits Created 5 years 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_widget_host_view_mac_unittest.mm
diff --git a/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm b/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm
index c3575b9ff14ee7e7fc55ab0c048bc8f3a5f3363a..fabae00266bcfc367d5ef0016299e17a3263e3af 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm
+++ b/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm
@@ -723,7 +723,7 @@ TEST_F(RenderWidgetHostViewMacTest, BlurAndFocusOnSetActive) {
testing::Mock::VerifyAndClearExpectations(rwh);
// Clean up.
- rwh->Shutdown();
+ rwh->ShutdownAndDestroyWidget(true);
}
TEST_F(RenderWidgetHostViewMacTest, ScrollWheelEndEventDelivery) {
@@ -764,7 +764,7 @@ TEST_F(RenderWidgetHostViewMacTest, ScrollWheelEndEventDelivery) {
ASSERT_EQ(2U, process_host->sink().message_count());
// Clean up.
- host->Shutdown();
+ host->ShutdownAndDestroyWidget(true);
}
TEST_F(RenderWidgetHostViewMacTest, IgnoreEmptyUnhandledWheelEvent) {
@@ -821,7 +821,7 @@ TEST_F(RenderWidgetHostViewMacTest, IgnoreEmptyUnhandledWheelEvent) {
ASSERT_EQ(NO, view_delegate.get().unhandledWheelEventReceived);
// Clean up.
- host->Shutdown();
+ host->ShutdownAndDestroyWidget(true);
}
// Tests that when view initiated shutdown happens (i.e. RWHView is deleted
@@ -855,7 +855,7 @@ TEST_F(RenderWidgetHostViewMacTest, GuestViewDoesNotLeak) {
RecycleAndWait();
// Clean up.
- rwh->Shutdown();
+ rwh->ShutdownAndDestroyWidget(true);
// Let |guest_rwhv_weak| have a chance to delete itself.
base::RunLoop run_loop;
@@ -905,7 +905,7 @@ TEST_F(RenderWidgetHostViewMacTest, Background) {
ViewMsg_SetBackgroundOpaque::Read(set_background, &sent_background);
EXPECT_TRUE(base::get<0>(sent_background));
- host->Shutdown();
+ host->ShutdownAndDestroyWidget(true);
}
class RenderWidgetHostViewMacPinchTest : public RenderWidgetHostViewMacTest {
@@ -1057,7 +1057,7 @@ TEST_F(RenderWidgetHostViewMacPinchTest, PinchThresholding) {
}
// Clean up.
- host->Shutdown();
+ host->ShutdownAndDestroyWidget(true);
}
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mac.mm ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698