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

Unified Diff: third_party/WebKit/LayoutTests/presentation/resources/presentation-service-mock.js

Issue 2602523002: [Presentation API] Resolve PresentationRequest::reconnect() with existing presentation connection i… (Closed)
Patch Set: remove getExecutionContext() null check in PresentationRequest::reconnect() Created 3 years, 11 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: third_party/WebKit/LayoutTests/presentation/resources/presentation-service-mock.js
diff --git a/third_party/WebKit/LayoutTests/presentation/resources/presentation-service-mock.js b/third_party/WebKit/LayoutTests/presentation/resources/presentation-service-mock.js
index 6df94aa574e1037beb3a420494d3cac2b6b65a48..790bba54640068ec5d79729cf1d15bbfcbd931b9 100644
--- a/third_party/WebKit/LayoutTests/presentation/resources/presentation-service-mock.js
+++ b/third_party/WebKit/LayoutTests/presentation/resources/presentation-service-mock.js
@@ -29,6 +29,13 @@ let presentationServiceMock = loadMojoModules(
error: null,
});
}
+
+ joinSession(urls) {
+ return Promise.resolve({
+ sessionInfo: { url: urls[0], id: 'fakeSessionId' },
+ error: null,
+ });
+ }
}
return new PresentationServiceMock(mojo.frameInterfaces);

Powered by Google App Engine
This is Rietveld 408576698