android_packages_modules_Co.../staticlibs/tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Junyu Lai 9f6a566d89 Refactor: Add RestoreEthernetRule for ethernet tests
This is a no-op, test only refactoring.
Move ethernet state management logic from EthernetManagerTest into a
dedicated JUnit test rule, RestoreEthernetRule. This new rule is
responsible for saving the initial ethernet state, allowing tests to
enable or disable it, and restoring the original state upon test
completion.  This refactoring simplifies EthernetManagerTest and
promotes code reuse.

Flag: EXEMPT EXEMPT test only refacotring
Test: atest NetworkStaticLibTests:com.android.testutils.RestoreEthernetRuleTest \
      CtsNetTestCases:android.net.cts.EthernetManagerTest --update-device
Bug: 410731080
Change-Id: If3dd869d6af4e0c659386621fb5d92012aa574d1
2025-07-10 15:25:15 +08:00
..
unit Refactor: Add RestoreEthernetRule for ethernet tests 2025-07-10 15:25:15 +08:00