Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b6b20fb0 authored by andrewxu's avatar andrewxu Committed by Andrew Xu
Browse files

[Flexiglass] Fix PhoneStatusBarViewControllerTest broken with Flexiglass

This CL fixes two issues in the broken tests:

1. windowRootView is null in the original test code. To fix this issue,
   mock WindowRootView class instead of the provider.

2. As PhoneStatusBarViewController indicates, with Flexiglass on,
   windowRootView.dispatchTouchEvent() is called instead of
   shadeViewController.handleExternalTouch. This CL changes the test
   expectations when the flag is on.

Given that PhoneStatusBarViewControllerTest has many test cases failing
with Flexiglass on, this CL turns original tests into parameterized
tests to verify with the feature flag on/off.

Bug: 416716452
Flag: EXEMPT bugfix
Change-Id: I24ab1a83e3b9f0c5419a9f882ae642551ff2d041
parent c0b13b32
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment