Closed Bug 1005886 Opened 11 years ago Closed 11 years ago

[NFC] encodeHandoverSelect() fixes and tests

Categories

(Firefox OS Graveyard :: NFC, defect)

defect
Not set
normal

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.
Anyone, please assign this to me.
Blocks: 1002643
Blocks: 1005896
I meant "fixes and unit tests for encodeHandoverSelect()" of course.
Assignee: nobody → kamituel
Blocks: NFC-Gaia
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #8417463 - Flags: review?(alive) → review+
Whiteboard: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: checkin-needed
Target Milestone: --- → 2.0 S1 (9may)
Thank you @Alive for prompt review and @Ryan for even prompter merge :)
Whiteboard: [p=2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: