| OLD | NEW |
| 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 Loading... |
| 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 }); |
| OLD | NEW |