Commit Graph

2 Commits

Author SHA1 Message Date
Remi NGUYEN VAN
539aece60f Add autoStart parameter to TapPacketReader rule
Setting autoStart to false allows tests to manually start the
TapPacketReader rule, either via method call (allowing callers to
specify their own Handler) or an annotation.

Bug: 168868607
Test: atest NetworkStackIntegrationTests using autoStart = false
Change-Id: Ic295d659250795c45181dc3c0ac0aaacba854f0b
2020-10-02 15:14:21 +09:00
Remi NGUYEN VAN
b904113030 Add TapPacketReaderRule
This test rule allows tests to easily create a tap interface, a
TapPacketReader on it, and tear them down after the test.

Bug: 168868607
Test: atest NetworkStackIntegrationTests
Change-Id: Ibc167f5c9a8a1b295e8f6c8384a55a1e3410fcdc
2020-09-30 17:59:41 +09:00