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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Mock implementation of mojo PresentationService. 2 * Mock implementation of mojo PresentationService.
3 */ 3 */
4 4
5 "use strict"; 5 "use strict";
6 6
7 let presentationServiceMock = loadMojoModules( 7 let presentationServiceMock = loadMojoModules(
8 'presentationServiceMock', 8 'presentationServiceMock',
9 [ 9 [
10 'third_party/WebKit/public/platform/modules/presentation/presentation.mojo m', 10 'third_party/WebKit/public/platform/modules/presentation/presentation.mojo m',
(...skipping 11 matching lines...) Expand all
22 this.bindingSet_ = new bindings.BindingSet( 22 this.bindingSet_ = new bindings.BindingSet(
23 presentationService.PresentationService); 23 presentationService.PresentationService);
24 } 24 }
25 25
26 startSession(urls) { 26 startSession(urls) {
27 return Promise.resolve({ 27 return Promise.resolve({
28 sessionInfo: { url: urls[0], id: 'fakesession' }, 28 sessionInfo: { url: urls[0], id: 'fakesession' },
29 error: null, 29 error: null,
30 }); 30 });
31 } 31 }
32
33 joinSession(urls) {
34 return Promise.resolve({
35 sessionInfo: { url: urls[0], id: 'fakeSessionId' },
36 error: null,
37 });
38 }
32 } 39 }
33 40
34 return new PresentationServiceMock(mojo.frameInterfaces); 41 return new PresentationServiceMock(mojo.frameInterfaces);
35 }); 42 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698