Closed Bug 1088465 Opened 10 years ago Closed 10 years ago

Cleanup how mocks are set in MozLoopService

Categories

(Hello (Loop) :: Client, defect)

defect
Not set
normal
Points:
2

Tracking

(firefox35 fixed, firefox36 fixed)

RESOLVED FIXED
mozilla36
Iteration:
36.1
Tracking Status
firefox35 --- fixed
firefox36 --- fixed

People

(Reporter: MattN, Assigned: MattN)

References

Details

Attachments

(1 file)

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.
Attachment #8510767 - Flags: review?(jaws)
Flags: qe-verify-
Flags: firefox-backlog+
Attachment #8510767 - Flags: review?(standard8)
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+
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
Yes, and thanks for landing.
Flags: needinfo?(MattN+bmo)
Keywords: leave-open
Whiteboard: [fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → mozilla36
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?
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.

Attachment

General

Created:
Updated:
Size: