Searched refs:mTestStringWriter (Results 1 – 3 of 3) sorted by relevance
41 private StringWriter mTestStringWriter; field in BatteryUsageLogUtilsTest48 mTestStringWriter = new StringWriter(); in setUp()49 mTestPrintWriter = new PrintWriter(mTestStringWriter); in setUp()57 assertThat(mTestStringWriter.toString().contains(expectedInformation)).isFalse(); in printHistoricalLog_withDefaultLogs()60 assertThat(mTestStringWriter.toString()).contains(expectedInformation); in printHistoricalLog_withDefaultLogs()87 final String dumpResults = mTestStringWriter.toString(); in writeLog_overMaxEntriesLogs_withCorrectCounts()93 final String dumpResults = mTestStringWriter.toString(); in assertActionCount()
50 private StringWriter mTestStringWriter; field in LogUtilsTest60 mTestStringWriter = new StringWriter(); in setUp()61 mTestPrintWriter = new PrintWriter(mTestStringWriter); in setUp()77 assertThat(mTestStringWriter.toString()) in dumpBatteryReattributeDatabaseHist_noData_printExpectedResult()104 final String result = mTestStringWriter.toString(); in dumpBatteryReattributeDatabaseHist_printExpectedResult()118 final String result = mTestStringWriter.toString(); in dumpBatteryReattributeDatabaseHist_featureDisable_notPrintData()
38 private final StringWriter mTestStringWriter = new StringWriter(); field in BatteryOptimizeLogUtilsTest39 private final PrintWriter mTestPrintWriter = new PrintWriter(mTestStringWriter);52 assertThat(mTestStringWriter.toString()).contains("nothing to dump"); in printHistoricalLog_withDefaultLogs()60 assertThat(mTestStringWriter.toString()).contains("pkg1\taction:APPLY\tevent:logs"); in writeLog_withExpectedLogs()85 final String dumpResults = mTestStringWriter.toString(); in assertActionCount()