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

Unified Diff: third_party/WebKit/Source/modules/presentation/PresentationReceiverTest.cpp

Issue 2706453002: [Presentation API] return valid WebPresentationConnection object in PresentationReceiver (Closed)
Patch Set: resolve code review comments from Derek 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
« no previous file with comments | « third_party/WebKit/Source/modules/presentation/PresentationReceiver.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/presentation/PresentationReceiverTest.cpp
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationReceiverTest.cpp b/third_party/WebKit/Source/modules/presentation/PresentationReceiverTest.cpp
index a57a899b59ae8851939c6c12f425d23c0d432ba1..94ef57915c870fe8601f034e7c329c961b272729 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationReceiverTest.cpp
+++ b/third_party/WebKit/Source/modules/presentation/PresentationReceiverTest.cpp
@@ -202,9 +202,12 @@ TEST_F(PresentationReceiverTest, TwoConnectionsNoEvent) {
WebPresentationSessionInfo sessionInfo(KURL(KURL(), "http://example.com"),
"id");
// Receive first connection.
- receiver->onReceiverConnectionAvailable(sessionInfo);
+ auto* connection1 = receiver->onReceiverConnectionAvailable(sessionInfo);
+ EXPECT_TRUE(connection1);
+
// Receive second connection.
- receiver->onReceiverConnectionAvailable(sessionInfo);
+ auto* connection2 = receiver->onReceiverConnectionAvailable(sessionInfo);
+ EXPECT_TRUE(connection2);
receiver->connectionList(scope.getScriptState());
verifyConnectionListPropertyState(ScriptPromisePropertyBase::Resolved,
« no previous file with comments | « third_party/WebKit/Source/modules/presentation/PresentationReceiver.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698