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

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

Issue 2863903002: [Presentation API] Change controller connection to 'terminated' when receiver connection terminates (Closed)
Patch Set: fix layout test failures Created 3 years, 7 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_connection_proxy_unittest.cc
diff --git a/content/renderer/presentation/presentation_connection_proxy_unittest.cc b/content/renderer/presentation/presentation_connection_proxy_unittest.cc
index 189beb4931ccdf1fea7977e13d864c3179a8f12a..14b2467a4cbdec1784e64ca8db53241099f0779d 100644
--- a/content/renderer/presentation/presentation_connection_proxy_unittest.cc
+++ b/content/renderer/presentation/presentation_connection_proxy_unittest.cc
@@ -118,4 +118,14 @@ TEST_F(PresentationConnectionProxyTest, TestReceiverConnectionCallsClose) {
run_loop.RunUntilIdle();
}
+TEST_F(PresentationConnectionProxyTest, TestReceiverNotifyTargetConnection) {
+ base::RunLoop run_loop;
+ EXPECT_CALL(
+ *controller_connection_,
+ DidChangeState(blink::WebPresentationConnectionState::kTerminated));
+ receiver_connection_proxy_->NotifyTargetConnection(
+ blink::WebPresentationConnectionState::kTerminated);
+ run_loop.RunUntilIdle();
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698