Searched refs:printStreamToString (Results 1 – 3 of 3) sorted by relevance
18 import static com.android.adservices.shared.testing.util.IoHelper.printStreamToString;45 assertThrows(NullPointerException.class, () -> printStreamToString(null)); in testPrintStreamToString_null()50 String string = printStreamToString(ps -> ps.print("I stream(), therefore I am()")); in testPrintStreamToString()
21 import static com.android.adservices.shared.testing.util.IoHelper.printStreamToString;104 String psStackTrace = printStreamToString((os) -> e.printStackTrace(os)); in assertStackTrace()
49 public static String printStreamToString(ThrowingConsumer<PrintStream, IOException> consumer) in printStreamToString() method in IoHelper