Home
last modified time | relevance | path

Searched refs:mFakeListener (Results 1 – 4 of 4) sorted by relevance

/tools/tradefederation/core/javatests/com/android/tradefed/device/metric/
DGcovKernelCodeCoverageCollectorTest.java88 LogFileReader mFakeListener = new LogFileReader(); field in GcovKernelCodeCoverageCollectorTest
206 mKernelCodeCoverageListener.init(mMockContext, mFakeListener); in configuredRun()
236 assertThat(mFakeListener.getLogs()).hasSize(1); in singleModuleSingleTestRun_returnTestRunNamedTar()
237 assertThat(mFakeListener.getLogFilenames().get(0)).startsWith(testRunNames.get(0)); in singleModuleSingleTestRun_returnTestRunNamedTar()
245 assertThat(mFakeListener.getLogs()).hasSize(1); in singleModuleSingleTestRun_returnModuleNamedTar()
246 assertThat(mFakeListener.getLogFilenames().get(0)).startsWith(moduleName); in singleModuleSingleTestRun_returnModuleNamedTar()
255 assertThat(mFakeListener.getLogs()).hasSize(3); in singleModuleMultiTestRun_returnModuleNamedTar()
256 assertThat(mFakeListener.getLogFilenames().get(0)).startsWith(moduleName); in singleModuleMultiTestRun_returnModuleNamedTar()
266 var logFileNames = mFakeListener.getLogFilenames(); in multipleModuleRun_returnMultipleModuleNamedTars()
267 assertThat(mFakeListener.getLogs()).hasSize(3); in multipleModuleRun_returnMultipleModuleNamedTars()
[all …]
DClangCodeCoverageCollectorTest.java116 LogFileReader mFakeListener = new LogFileReader(); field in ClangCodeCoverageCollectorTest
166 mListener.init(mMockContext, mFakeListener); in coverageDisabled_noCoverageLog()
174 assertThat(mFakeListener.getLogs()).isEmpty(); in coverageDisabled_noCoverageLog()
181 mListener.init(mMockContext, mFakeListener); in clangCoverageDisabled_noCoverageLog()
189 assertThat(mFakeListener.getLogs()).isEmpty(); in clangCoverageDisabled_noCoverageLog()
204 mListener.init(mMockContext, mFakeListener); in coverageFlushEnabled_flushCalled()
233 mListener.init(mMockContext, mFakeListener); in testRun_misc_trace_only_logsCoverageFile()
265 List<ByteString> logs = mFakeListener.getLogs(); in testRun_misc_trace_only_logsCoverageFile()
290 mListener.init(mMockContext, mFakeListener); in testRun_local_tmp_only_logsCoverageFile()
315 List<ByteString> logs = mFakeListener.getLogs(); in testRun_local_tmp_only_logsCoverageFile()
[all …]
DJavaCodeCoverageCollectorTest.java114 @Spy LogFileReader mFakeListener = new LogFileReader(); field in JavaCodeCoverageCollectorTest
160 mCodeCoverageCollector.init(mMockContext, mFakeListener); in testRunEnded_noCoverageEnabled_noop()
165 verify(mFakeListener, never()) in testRunEnded_noCoverageEnabled_noop()
182 mCodeCoverageCollector.init(mMockContext, mFakeListener); in testRunEnded_rootEnabled_logsCoverageMeasurement()
197 verify(mFakeListener) in testRunEnded_rootEnabled_logsCoverageMeasurement()
214 mCodeCoverageCollector.init(mMockContext, mFakeListener); in testRunEnded_rootEnabled_noModuleName_logsCoverageMeasurement()
219 verify(mFakeListener) in testRunEnded_rootEnabled_noModuleName_logsCoverageMeasurement()
232 mCodeCoverageCollector.init(mMockContext, mFakeListener); in testFailure_unableToPullFile()
236 verify(mFakeListener, never()) in testFailure_unableToPullFile()
250 mCodeCoverageCollector.init(mMockContext, mFakeListener); in testRunEnded_rootDisabled_enablesRootBeforePullingFiles()
[all …]
DGcovCodeCoverageCollectorTest.java93 LogFileReader mFakeListener = new LogFileReader(); field in GcovCodeCoverageCollectorTest
140 mCodeCoverageListener.init(mMockContext, mFakeListener); in test_logsCoverageZip()
146 List<ByteString> logs = mFakeListener.getLogs(); in test_logsCoverageZip()
172 mCodeCoverageListener.init(mMockContext, mFakeListener); in testNoCoverageFiles_logsEmptyZip()
178 List<ByteString> logs = mFakeListener.getLogs(); in testNoCoverageFiles_logsEmptyZip()
199 mCodeCoverageListener.init(mMockContext, mFakeListener); in testCoverageFlushAllProcesses_flushAllCommandCalled()
220 mCodeCoverageListener.init(mMockContext, mFakeListener); in testCoverageFlushSpecificProcesses_flushCommandCalled()
237 mCodeCoverageListener.init(mMockContext, mFakeListener); in testFailure_unableToPullFile()
245 assertThat(mFakeListener.getLogs()).isEmpty(); in testFailure_unableToPullFile()
257 mCodeCoverageListener.init(mMockContext, mFakeListener); in testNoCollectOnTestEnd_noCoverageMeasurements()
[all …]