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)

All
Android
task

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.

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
Blocks: 1962975
Status: ASSIGNED → RESOLVED
Closed: 19 days ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: