Closed
Bug 1005886
Opened 11 years ago
Closed 11 years ago
[NFC] encodeHandoverSelect() fixes and tests
Categories
(Firefox OS Graveyard :: NFC, defect)
Firefox OS Graveyard
NFC
Tracking
(b2g-v2.0 fixed)
RESOLVED
FIXED
2.0 S1 (9may)
Tracking | Status | |
---|---|---|
b2g-v2.0 | --- | fixed |
People
(Reporter: kamituel, Assigned: kamituel)
References
Details
(Whiteboard: [p=2])
Attachments
(1 file)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.131 Safari/537.36
Expected results:
As of current implementation, encodeHandoverSelect() accepts any CPS value and attempts to include it into handover select message. But according to [CH] spec (v. 1.3), it's only valid values are: 0, 1, 2, 3 ("inactive", "active", "activating" and "unknown" respectively).
Also, encodeHandoverSelect() could be used in NfcHandoverManager/NFC Pairing UI unit tests, but it'd need to accept an optional, third parameter "btName" (user-friendly name of the device) and encode it appropriately. It's described in "Bluetooth Secure Simple Pairing Using NFC" spec (example message in table 5).
This would be the first unit test for any methods in nfc_manager_utils.js. More should follow, and I'd be happy to work on those as well.
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #8417463 -
Flags: review?(alive)
Assignee | ||
Comment 3•11 years ago
|
||
I meant "fixes and unit tests for encodeHandoverSelect()" of course.
Updated•11 years ago
|
Assignee: nobody → kamituel
Updated•11 years ago
|
Attachment #8417463 -
Flags: review?(alive) → review+
Assignee | ||
Updated•11 years ago
|
Whiteboard: checkin-needed
Comment 4•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
status-b2g-v2.0:
--- → fixed
Resolution: --- → FIXED
Whiteboard: checkin-needed
Target Milestone: --- → 2.0 S1 (9may)
Assignee | ||
Comment 5•11 years ago
|
||
Thank you @Alive for prompt review and @Ryan for even prompter merge :)
Assignee | ||
Updated•11 years ago
|
Whiteboard: [p=2]
You need to log in
before you can comment on or make changes to this bug.
Description
•