Closed
Bug 1088465
Opened 10 years ago
Closed 10 years ago
Cleanup how mocks are set in MozLoopService
Categories
(Hello (Loop) :: Client, defect)
Hello (Loop)
Client
Tracking
(firefox35 fixed, firefox36 fixed)
People
(Reporter: MattN, Assigned: MattN)
References
Details
Attachments
(1 file)
37.82 KB,
patch
|
mikedeboer
:
review+
lsblakk
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
Having the arguments everywhere for mock push handlers and websockets make it hard to implement the action button to retry an action in bug 1074670 since I'd have to pass those arguments along when we retry. It seems quite busy regardless to pass the arguments a ~4 calls deep.
Assignee | ||
Updated•10 years ago
|
Attachment #8510767 -
Flags: review?(standard8)
Comment 1•10 years ago
|
||
Comment on attachment 8510767 [details] [diff] [review]
v.1 Use a |mocks| property
Review of attachment 8510767 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks for this! Looks mighty good. I'll see if I can land this today, after a try run.
::: browser/components/loop/LoopCalls.jsm
@@ +312,5 @@
> let callProgress = new CallProgressSocket(
> callData.progressURL,
> callData.callId,
> callData.websocketToken);
> + callProgress._websocket = this.mocks.webSocket;
As you're here, could you add a conditional to this line? At first it scared me quite a bit. But it appears to not have any side effects before `connect()` is called.
A comment would suffice too.
Attachment #8510767 -
Flags: review?(standard8)
Attachment #8510767 -
Flags: review?(jaws)
Attachment #8510767 -
Flags: review+
Comment 2•10 years ago
|
||
Comment 3•10 years ago
|
||
Pushed to fx-team as https://hg.mozilla.org/integration/fx-team/rev/0eb3fe5855a0
Matt, is this all the work you meant to do in this bug?
Flags: needinfo?(MattN+bmo)
Keywords: leave-open
Assignee | ||
Comment 4•10 years ago
|
||
Yes, and thanks for landing.
Flags: needinfo?(MattN+bmo)
Keywords: leave-open
Assignee | ||
Updated•10 years ago
|
Whiteboard: [fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → mozilla36
Comment 6•10 years ago
|
||
status-firefox35:
--- → fixed
status-firefox36:
--- → fixed
Comment 7•10 years ago
|
||
Comment on attachment 8510767 [details] [diff] [review]
v.1 Use a |mocks| property
Approval Request Comment
Landed on aurora per IRC with lsblakk with a=loop-only
Attachment #8510767 -
Flags: approval-mozilla-aurora?
Updated•10 years ago
|
Attachment #8510767 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
You need to log in
before you can comment on or make changes to this bug.
Description
•