android_packages_modules_Co.../staticlibs/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
..
app/connectivitychecker Wait for default route for wifi check 2025-01-15 16:12:04 +09:00
devicetests Move failWithErrorReason to a common place 2025-04-27 15:54:35 +09:00
host Remove non-functional IGMPv3 test and flaky APF checks 2025-04-22 18:02:55 +09:00
hostdevice/com/android Move failWithErrorReason to a common place 2025-04-27 15:54:35 +09:00
Android.bp Build net-tests-utils-host-device-common with module_current 2025-04-16 08:58:33 +09:00