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

Unified Diff: content/renderer/presentation/presentation_dispatcher_unittest.cc

Issue 2484273003: [Presentation API] (1-UA) fire PresentationConnection onterminate event if receiver page gets destr… (Closed)
Patch Set: rebase Created 3 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/presentation/presentation_dispatcher_unittest.cc
diff --git a/content/renderer/presentation/presentation_dispatcher_unittest.cc b/content/renderer/presentation/presentation_dispatcher_unittest.cc
index 0310bd8adc02d282e2e2608ad95f3c19e3660c44..732b161a06a8e6df3e8d38929f9a38fbd9233b0c 100644
--- a/content/renderer/presentation/presentation_dispatcher_unittest.cc
+++ b/content/renderer/presentation/presentation_dispatcher_unittest.cc
@@ -120,6 +120,10 @@ class TestPresentationReceiver : public blink::WebPresentationReceiver {
return &connection_;
}
+ MOCK_METHOD1(didChangeSessionState,
+ void(blink::WebPresentationConnectionState));
+ MOCK_METHOD0(terminateConnection, void());
+
TestPresentationConnection connection_;
};
@@ -506,7 +510,7 @@ TEST_F(PresentationDispatcherTest, TestTerminateSession) {
base::RunLoop run_loop;
EXPECT_CALL(presentation_service_,
Terminate(gurl1_, presentation_id_.utf8()));
- dispatcher_.terminateSession(url1_, presentation_id_);
+ dispatcher_.terminateConnection(url1_, presentation_id_);
run_loop.RunUntilIdle();
}

Powered by Google App Engine
This is Rietveld 408576698