android_packages_modules_Co.../staticlibs/testutils/hostdevice/com/android/testutils
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Chalard Jean c96d1ae0e6 Move failWithErrorReason to a common place
This is a shared public utility. Its main utility is for methods
that can fail, have an error message of their own, and also want
to take an error message from a caller and want to combine them.
Example useĀ :
fun <T> assertEquals(expected: T, actual: T, msg: String? = null) {
  if (expected != null) {
    failWithErrorReason(msg, "Expected $expected, got $actual")
  }
}
...which allows someone to say
assertEquals(a, b, "Checking a vs b")

Test: TH
Flag: EXEMPT test-only change
Change-Id: Id3eaa8384b4177f38f13576d9b4d742c52027ae4
2025-04-27 15:54:35 +09:00
..
Cleanup.kt Only report tryTest errors when not caught 2024-12-02 09:26:53 +09:00
ConcurrentUtils.kt Quit NetworkMonitor threads in integration tests 2024-03-14 13:18:44 +09:00
ConnectivityModuleTest.kt Add the ConnectivityModuleTest annotation 2021-08-16 18:09:41 +09:00
DnsResolverModuleTest.kt Add DnsResolverModuleTest annotation 2023-06-26 07:40:18 +00:00
FileUtils.kt Move net-test-utils to its own directory 2021-03-30 16:52:09 +09:00
FunctionalUtils.java Add Function3 2022-08-16 18:53:17 +09:00
MiscAsserts.kt Move failWithErrorReason to a common place 2025-04-27 15:54:35 +09:00
NetworkStackModuleTest.kt Add NetworkStackModuleTest annotation. 2023-06-01 13:34:01 +09:00
PacketFilter.kt Fix replying to queries via unicast 2024-01-15 20:26:28 +09:00
SkipMainlinePresubmit.kt Add an annotation for @SkipMainlinePresubmit 2023-07-26 13:37:47 +09:00
SkipPresubmit.kt Move net-test-utils to its own directory 2021-03-30 16:52:09 +09:00