diff options
| author | Hungming Chen <nuccachen@google.com> | 2021-06-11 18:44:30 +0800 |
|---|---|---|
| committer | Hungming Chen <nuccachen@google.com> | 2022-02-22 21:32:38 +0800 |
| commit | 154b1e467df6d38513704a4c3ed1e6eea11d2bca (patch) | |
| tree | 25743961554c0235f6d4b5a0451fb1dd069c87c5 /tests/common/java/android/net/LinkPropertiesTest.java | |
| parent | 61ef984d52ac45c3381fe32dc391537816c1f32c (diff) | |
BpfCoordinatorTest: refactor upstream and downstream setup functions
This is preparation for tetherOffloadRule4Clear test.
- Upstream interface can be set {null, cellular (rawip), wifi (ether)}
- Allow that add up to two downstream interfaces which has one client
on each of them.
- Change mBpfDownstream4Map and mBpfUpstream4Map from mocked instance
to TestBpfMap for further rule check.
- Remove startPolling() from initBpfCoordinatorForRule4() because
upstream information is updated by updateUpstreamNetworkState now.
Test: atest TetheringCoverageTests
Change-Id: Ibc1f68131410b7cec379ab4e310b90ad85f25d31
Diffstat (limited to 'tests/common/java/android/net/LinkPropertiesTest.java')
0 files changed, 0 insertions, 0 deletions
