Closed Bug 1215004 Opened 9 years ago Closed 9 years ago

[Stingray][fling-player][TV][2.5] (TV side) Should update to the latest Presentation API

Categories

(Firefox OS Graveyard :: Gaia::TV::Fling, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Fischer, Assigned: Fischer)

References

Details

(Whiteboard: [ft:conndevices][partner-cherry-picked<2015/11/10>])

Attachments

(2 files)

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()".
Assignee: nobody → fliu
Depends on: 1212702
No longer blocks: 1210702
Blocks: 1216058
No longer blocks: 1216058
Attached file PR #32554
Attachment #8675635 - Flags: review?(rexboy)
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.
Attachment #8675635 - Flags: review?(rexboy)
Attachment #8675635 - Flags: review?(rexboy)
Separate the unit test. Will open another bug for the unit test, thank you.
Depends on: 1217287
Depends on: 1217288
Comment on attachment 8675635 [details] [review]
PR #32554

Looks good to me!
Attachment #8675635 - Flags: review?(rexboy) → review+
Land to master: https://github.com/mozilla-b2g/gaia/commit/c2a42fc2d8b77086075b06f76c2074c0242dc814
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Depends on: 1219542
Depends on: 1220058
Depends on: 1222364
Whiteboard: [ft:conndevices][partner-cherry-pick] → [ft:conndevices][partner-cherry-picked<2015/11/10>]
Depends on: 1237532
No longer depends on: 1237532
Depends on: 1240493
No longer depends on: 1240493
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: