Closed Bug 1052842 Opened 10 years ago Closed 10 years ago

Use enums for NetworkSelectionMode in nsIMobileConnectionProvider.idl

Categories

(Firefox OS Graveyard :: RIL, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.1 S7 (24Oct)

People

(Reporter: anshulj, Assigned: jessica)

References

Details

Attachments

(5 files, 4 obsolete files)

The bug 898445 introduced the  MobileNetworkSelectionMode enum in the MozMobileConnection.webidl but no corresponding constants were added in nsIMobileConnectionProvider.idl. 

Please consider adding enums for network selection mode for getNetworkSelectionMode API in nsIMobileConnectionProvider.idl to strictly define the IPDL interface.
QA Contact: jjong
Jessica, I guess you wanna take this bug instead of being a QA Contact for this ;)
Assignee: nobody → jjong
QA Contact: jjong
(In reply to Hsin-Yi Tsai [:hsinyi] from comment #1)
> Jessica, I guess you wanna take this bug instead of being a QA Contact for
> this ;)

Yes! thank you Hsinyi :)
Attached patch Part 1: idl changes, v1. (obsolete) — Splinter Review
Attached patch Part 2: dom/ipc changes, v1. (obsolete) — Splinter Review
Attached patch Part 3: gonk changes, v1. (obsolete) — Splinter Review
Attached patch Part 4: bt changes, v1. (obsolete) — Splinter Review
Attachment #8505369 - Flags: review?(htsai)
Attachment #8505370 - Flags: feedback?(echen)
Attachment #8505372 - Flags: review?(echen)
Comment on attachment 8505369 [details] [diff] [review]
Part 1: idl changes, v1.

Review of attachment 8505369 [details] [diff] [review]:
-----------------------------------------------------------------

Thank you, Jessica!
Attachment #8505369 - Flags: review?(htsai) → review+
Comment on attachment 8505370 [details] [diff] [review]
Part 2: dom/ipc changes, v1.

Review of attachment 8505370 [details] [diff] [review]:
-----------------------------------------------------------------

r=me given that the change here is trivial. Thank you.

::: dom/mobileconnection/Assertions.cpp
@@ +11,5 @@
> +#define ASSERT_NETWORK_SELECTION_MODE_EQUALITY(webidlState, xpidlState) \
> +  static_assert(static_cast<int32_t>(MobileNetworkSelectionMode::webidlState) == nsIMobileConnection::xpidlState, \
> +                "MobileNetworkSelectionMode::" #webidlState " should equal to nsIMobileConnection::" #xpidlState)
> +
> +

nit: one blank should be enough.

@@ +15,5 @@
> +
> + ASSERT_NETWORK_SELECTION_MODE_EQUALITY(Automatic, NETWORK_SELECTION_MODE_AUTOMATIC);
> + ASSERT_NETWORK_SELECTION_MODE_EQUALITY(Manual, NETWORK_SELECTION_MODE_MANUAL);
> +
> +

Ditto.
Attachment #8505370 - Flags: feedback?(echen) → review+
Comment on attachment 8505372 [details] [diff] [review]
Part 3: gonk changes, v1.

Review of attachment 8505372 [details] [diff] [review]:
-----------------------------------------------------------------

Thank you.
Attachment #8505372 - Flags: review?(echen) → review+
Comment on attachment 8505963 [details] [diff] [review]
Part 4: bt changes, v1.

Ben, we are using integer values instead of strings for selection mode to match MobileNetworkSelectionMode enum in webidl. May I have your review? Thanks.
Attachment #8505963 - Flags: review?(btian)
Comment on attachment 8505963 [details] [diff] [review]
Part 4: bt changes, v1.

Review of attachment 8505963 [details] [diff] [review]:
-----------------------------------------------------------------

LGTM.
Attachment #8505963 - Flags: review?(btian) → review+
Rebase and add r=hsinyi
Attachment #8505369 - Attachment is obsolete: true
Attachment #8508480 - Flags: review+
Rebase, address nits in comment 8 and add r=echen
Attachment #8505370 - Attachment is obsolete: true
Attachment #8508481 - Flags: review+
Rebase and add r=echen
Attachment #8505372 - Attachment is obsolete: true
Attachment #8508483 - Flags: review+
Rebase and add r=btian

Thanks for the review!
Attachment #8505963 - Attachment is obsolete: true
Attachment #8508486 - Flags: review+
OS: Windows 7 → Gonk (Firefox OS)
Hardware: x86_64 → ARM
Target Milestone: --- → 2.1 S7 (24Oct)
Attachment #8510955 - Flags: review?(htsai)
Comment on attachment 8510955 [details] [diff] [review]
(follow-up): nsIGonkMobileConnectionService.idl changes.

Review of attachment 8510955 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks!
Attachment #8510955 - Flags: review?(htsai) → review+
Reopened for the follow-up part.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
https://hg.mozilla.org/mozilla-central/rev/129bd767cbfa
Status: REOPENED → RESOLVED
Closed: 10 years ago10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: