Closed
Bug 1962445
Opened 24 days ago
Closed 19 days ago
Remove static mocking of org.mozilla.fenix.ext.ActivityKt used for openSetDefaultBrowserOption extension method.
Categories
(Firefox for Android :: General, task, P1)
Tracking
()
RESOLVED
FIXED
140 Branch
Tracking | Status | |
---|---|---|
firefox140 | --- | fixed |
People
(Reporter: mcarare, Assigned: mcarare)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [fxdroid][group6] )
Attachments
(1 file)
There are 2 tests that use static mocking in order to mock the openSetDefaultBrowserOption
extension method ( HomeActivityTest
and DefaultSessionControlControllerTest
) .
Since the behavior is difficult to test ( among others is requires accessing system services) we should use an instance method in HomeActivity
to indirectly access the extension method and verify that method is called instead of the extension method.
Updated•24 days ago
|
Assignee | ||
Comment 1•23 days ago
|
||
Pushed by mcarare@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4dffe5727c97
Refactor access to openSetDefaultBrowserOption and remove static mocking of Activity class. r=android-reviewers,jonalmeida
Comment 3•19 days ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 19 days ago
status-firefox140:
--- → fixed
Resolution: --- → FIXED
Updated•18 days ago
|
Target Milestone: --- → 140 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•