Skip to content
Commit 315ae1eb authored by David Su's avatar David Su
Browse files

SdkLevelUtil: remove isAtLeastSMockable()

The mockable version can only be used where object construction
is controlled e.g. in Wifi service. For existing public APIs,
SdkLevelUtil cannot be injected because the constructor can't
be changed.

Thus, the strategy for testing this is:
1. Gate the unit tests with the same SDK level requirements,
  and test on a real device with that SDK version, or
2. Use static mocking.

In either case, the mockable version is not useful.

Bug: 169443762
Test: atest FrameworksWifiApiTests
Change-Id: Icf2f32b3a40512f87bf32d1d80622c22e4454406
parent 59fb99b1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment