The Presentation API had been updated on 2015-10-12 (Bug 1212702): 1. Interface PresentationSession is renamed to PresentationConnection. 2. Enumeration PresentationSessionState is renamed to PresentationConnectionState. 3. PresentationRequest's event handler "onsessionconnect" is renamed to "onconnectionavailable" and fires a renamed event "PresentationConnectionAvailableEvent". 4. PresentationReceiver's method "getSession()" is renamed to "getConnection()".
Created attachment 8675619 [details] [review] [gaia] Fischer-L:ft-presentation-cast-video > mozilla-b2g:master
Created attachment 8675635 [details] [review] PR #32554
Comment on attachment 8675635 [details] [review] PR #32554 The patch for updating presentation API is good. But for the unit test part, there are some improvement needed. The presentation API mock is not easy to complete, thank you so much! I think there are some conventions we need to be aware. We can discuss it tomorrow. Since the unit tests are not strongly related to this bug, let's check-in the update to presentation API first and leave the unit tests in another bug so that QA can start their works earlier.
Separate the unit test. Will open another bug for the unit test, thank you.
Comment on attachment 8675635 [details] [review] PR #32554 Looks good to me!