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

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

Issue 2737413003: [Presentation API] Remove references to presentation sessions. (Closed)
Patch Set: Update PresentationServiceDelegateImpl unittest Created 3 years, 9 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 a9b1c76bdb19d24a78e94478ff020bb16ed598a3..9bfcbad01742b19ad93892297aa0cc795a1e0deb 100644
--- a/third_party/WebKit/LayoutTests/presentation/resources/presentation-service-mock.js
+++ b/third_party/WebKit/LayoutTests/presentation/resources/presentation-service-mock.js
@@ -38,16 +38,16 @@ let presentationServiceMock = loadMojoModules(
this.onSetClient();
}
- startSession(urls) {
+ startPresentation(urls) {
return Promise.resolve({
- sessionInfo: { url: urls[0], id: 'fakesession' },
+ presentation_info: { url: urls[0], id: 'fakePresentationId' },
error: null,
});
}
- joinSession(urls) {
+ reconnectPresentation(urls) {
return Promise.resolve({
- sessionInfo: { url: urls[0], id: 'fakeSessionId' },
+ presentation_info: { url: urls[0], id: 'fakePresentationId' },
error: null,
});
}
@@ -59,11 +59,12 @@ let presentationServiceMock = loadMojoModules(
}
setPresentationConnection(
- seesionInfo, controllerConnectionPtr, receiverConnectionRequest) {
+ presentation_info, controllerConnectionPtr,
+ receiverConnectionRequest) {
this.controllerConnectionPtr_ = controllerConnectionPtr;
this.receiverConnectionRequest_ = receiverConnectionRequest;
this.client_.onConnectionStateChanged(
- seesionInfo,
+ presentation_info,
presentationService.PresentationConnectionState.CONNECTED);
}

Powered by Google App Engine
This is Rietveld 408576698