Home
last modified time | relevance | path

Searched refs:notifier (Results 1 – 21 of 21) sorted by relevance

/platform_testing/libraries/health/runners/longevity/host/src/android/host/test/longevity/
DLongevitySuite.java105 public void run(final RunNotifier notifier) { in run() argument
110 notifier.addListener(getErrorTerminator(notifier)); in run()
112 notifier.addListener(getTimeoutTerminator(notifier)); in run()
115 super.run(notifier); in run()
133 public ErrorTerminator getErrorTerminator(final RunNotifier notifier) { in getErrorTerminator() argument
134 return new ErrorTerminator(notifier); in getErrorTerminator()
142 public TimeoutTerminator getTimeoutTerminator(final RunNotifier notifier) { in getTimeoutTerminator() argument
143 return new TimeoutTerminator(notifier, mArguments); in getTimeoutTerminator()
/platform_testing/libraries/health/runners/longevity/platform/tests/src/android/platform/test/longevity/
DProfileSuiteTest.java203 .run(argThat(notifier -> notifier.equals(mRunNotifier))); in testTimestampScheduling_respectsSchedule()
220 argThat(notifier -> notifier.equals(mRunNotifier))); in testTimestampScheduling_respectsSchedule()
240 argThat(notifier -> notifier.equals(mRunNotifier))); in testTimestampScheduling_respectsSchedule()
245 inOrderVerifier.verify(suite).run(argThat(notifier -> notifier.equals(mRunNotifier))); in testTimestampScheduling_respectsSchedule()
255 argThat(notifier -> notifier.equals(mRunNotifier))); in testTimestampScheduling_respectsSchedule()
265 argThat(notifier -> notifier.equals(mRunNotifier))); in testTimestampScheduling_respectsSchedule()
359 argThat(notifier -> notifier.equals(mRunNotifier))); in testIndexedScheduling_respectsSchedule()
369 argThat(notifier -> notifier.equals(mRunNotifier))); in testIndexedScheduling_respectsSchedule()
379 argThat(notifier -> notifier.equals(mRunNotifier))); in testIndexedScheduling_respectsSchedule()
419 argThat(notifier -> notifier.equals(mRunNotifier))); in testSequentialScheduling_respectsSchedule()
[all …]
DLongevityClassRunnerTest.java422 RunNotifier notifier = spy(new RunNotifier()); in testIgnore_excludedClasses() local
424 notifier.addListener(listener); in testIgnore_excludedClasses()
428 mRunner.run(notifier); in testIgnore_excludedClasses()
436 RunNotifier notifier = mock(RunNotifier.class); in testReportIteration_noIterationSet() local
438 mRunner.run(notifier); in testReportIteration_noIterationSet()
439 verify(notifier).fireTestStarted(captor.capture()); in testReportIteration_noIterationSet()
455 RunNotifier notifier = mock(RunNotifier.class); in testReportIteration_withIteration_withDefaultSeparator() local
458 mRunner.run(notifier); in testReportIteration_withIteration_withDefaultSeparator()
459 verify(notifier).fireTestStarted(captor.capture()); in testReportIteration_withIteration_withDefaultSeparator()
477 RunNotifier notifier = mock(RunNotifier.class); in testReportIteration_withIteration_withCustomSeparator() local
[all …]
DScheduledScenarioRunnerTest.java262 RunNotifier notifier = spy(new RunNotifier()); in testIgnoredScenario_doesIdle() local
264 notifier.addListener(listener); in testIgnoredScenario_doesIdle()
265 runner.run(notifier); in testIgnoredScenario_doesIdle()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/junit/
DLegacyFlickerJUnit4ClassRunnerTest.kt135 val notifier = mock(RunNotifier::class.java) in <lambda>() constant
136 runner.run(notifier) in <lambda>()
139 verify(notifier, never()) in <lambda>()
155 val notifier = mock(RunNotifier::class.java) in <lambda>() constant
156 runner.run(notifier) in <lambda>()
158 verify(notifier).fireTestStarted(argThat { it.methodName.contains("test") }) in <lambda>()
159 verify(notifier).fireTestFinished(argThat { it.methodName.contains("test") }) in <lambda>()
160 verify(notifier, atLeast(1)).fireTestStarted(argThat { it.methodName.contains("FaaS") }) in <lambda>()
161 verify(notifier, atLeast(1)).fireTestFinished(argThat { it.methodName.contains("FaaS") }) in <lambda>()
172 val notifier = mock(RunNotifier::class.java) in <lambda>() constant
[all …]
DFlickerServiceJUnit4ClassRunnerTest.kt62 val notifier = Mockito.mock(RunNotifier::class.java) in <lambda>() constant
63 runner.run(notifier) in <lambda>()
66 Mockito.verify(notifier, Mockito.atLeast(1)) in <lambda>()
68 Mockito.verify(notifier, Mockito.atLeast(1)) in <lambda>()
72 Mockito.verify(notifier, Mockito.atLeast(1)) in <lambda>()
81 val notifier = Mockito.mock(RunNotifier::class.java) in <lambda>() constant
82 runner.run(notifier) in <lambda>()
85 Mockito.verify(notifier, Mockito.atLeast(2)) in <lambda>()
87 Mockito.verify(notifier, Mockito.never()) in <lambda>()
91 Mockito.verify(notifier, Mockito.atLeast(2)) in <lambda>()
/platform_testing/libraries/health/runners/longevity/host/src/android/host/test/longevity/listener/
DErrorTerminator.java25 public ErrorTerminator(RunNotifier notifier) { in ErrorTerminator() argument
26 super(notifier); in ErrorTerminator()
DRunTerminator.java28 public RunTerminator(RunNotifier notifier) { in RunTerminator() argument
29 mNotifier = notifier; in RunTerminator()
DTimeoutTerminator.java36 public TimeoutTerminator(RunNotifier notifier, Map<String, String> args) { in TimeoutTerminator() argument
37 super(notifier); in TimeoutTerminator()
/platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/
DLongevitySuite.java184 public void run(final RunNotifier notifier) { in run() argument
187 notifier.addListener(new BatteryTerminator(notifier, mArguments, mContext)); in run()
190 super.run(notifier); in run()
194 protected void runChild(Runner runner, final RunNotifier notifier) { in runChild() argument
200 runner.run(notifier); in runChild()
208 super.runChild(suiteRunner, notifier); in runChild()
214 final RunNotifier notifier) { in getErrorTerminator() argument
215 return new ErrorTerminator(notifier); in getErrorTerminator()
225 final RunNotifier notifier) { in getTimeoutTerminator() argument
227 mTimeoutTerminator = new TimeoutTerminator(notifier, mArguments); in getTimeoutTerminator()
DProfileSuite.java120 public void run(final RunNotifier notifier) { in run() argument
122 notifier.addListener(mProfile); in run()
124 super.run(notifier); in run()
134 protected void runChild(Runner runner, final RunNotifier notifier) { in runChild() argument
137 super.runChild(runner, notifier); in runChild()
155 super.runChild(runner, notifier); in runChild()
DScheduledScenarioRunner.java145 protected void runChild(final FrameworkMethod method, RunNotifier notifier) { in runChild() argument
147 super.runChild(method, notifier); in runChild()
/platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/listener/
DErrorTerminator.java26 public ErrorTerminator(RunNotifier notifier) { in ErrorTerminator() argument
27 super(notifier); in ErrorTerminator()
DTimeoutTerminator.java31 public TimeoutTerminator(RunNotifier notifier, Map<String, String> args) { in TimeoutTerminator() argument
32 super(notifier, args); in TimeoutTerminator()
DBatteryTerminator.java42 public BatteryTerminator(RunNotifier notifier, Map<String, String> args, Context context) { in BatteryTerminator() argument
43 super(notifier); in BatteryTerminator()
/platform_testing/libraries/health/runners/microbenchmark/src/android/platform/test/microbenchmark/
DFunctional.java171 protected Statement classBlock(RunNotifier notifier) {
177 parentStatement = super.classBlock(notifier);
206 notifier.fireTestStarted(description);
208 notifier.fireTestAssumptionFailed(new Failure(description, e));
210 notifier.fireTestFailure(new Failure(description, e));
212 notifier.fireTestFinished(description);
DMicrobenchmark.java162 public void run(final RunNotifier notifier) { in run() argument
187 super.run(notifier); in run()
346 protected void runChild(final FrameworkMethod method, RunNotifier notifier) { in runChild() argument
362 notifier.fireTestIgnored(description); in runChild()
364 EachTestNotifier eachNotifier = new EachTestNotifier(notifier, description); in runChild()
/platform_testing/libraries/health/runners/microbenchmark/tests/src/android/platform/test/microbenchmark/
DMicrobenchmarkTest.java278 RunNotifier notifier = Mockito.mock(RunNotifier.class); in testStopsEarly_ifBatteryLevelIsBelowThreshold() local
279 runner.run(notifier); in testStopsEarly_ifBatteryLevelIsBelowThreshold()
282 verify(notifier).fireTestFailure(failureCaptor.capture()); in testStopsEarly_ifBatteryLevelIsBelowThreshold()
305 RunNotifier notifier = Mockito.mock(RunNotifier.class); in testStopsEarly_ifBatteryDrainIsAboveThreshold() local
306 runner.run(notifier); in testStopsEarly_ifBatteryDrainIsAboveThreshold()
309 verify(notifier).fireTestFailure(failureCaptor.capture()); in testStopsEarly_ifBatteryDrainIsAboveThreshold()
339 RunNotifier notifier = Mockito.mock(RunNotifier.class); in testAlignWithBatteryChargeCounter() local
345 runner.run(notifier); in testAlignWithBatteryChargeCounter()
351 verify(notifier, never()).fireTestStarted(any(Description.class)); in testAlignWithBatteryChargeCounter()
353 verify(notifier).fireTestStarted(any(Description.class)); in testAlignWithBatteryChargeCounter()
[all …]
/platform_testing/libraries/flicker/src/android/tools/flicker/junit/
DFlickerServiceJUnit4ClassRunner.kt83 override fun run(notifier: RunNotifier) { in <lambda>()
84 val testNotifier = EachTestNotifier(notifier, description) in <lambda>()
87 val statement = childrenInvoker(notifier) in <lambda>()
336 override fun childrenInvoker(notifier: RunNotifier): Statement { in <lambda>()
339 runChildren(notifier) in <lambda>()
344 private fun runChildren(notifier: RunNotifier) { in <lambda>()
348 currentScheduler.schedule { this.runChild(each, notifier) } in <lambda>()
358 override fun runChild(method: FrameworkMethod, notifier: RunNotifier) { in <lambda>()
361 notifier.fireTestIgnored(description) in <lambda>()
370 runLeaf(statement, description, notifier) in <lambda>()
DLegacyFlickerJUnit4ClassRunner.kt137 override fun run(notifier: RunNotifier) { in <lambda>()
138 val testNotifier = EachTestNotifier(notifier, description) in <lambda>()
141 val statement = classBlock(notifier) in <lambda>()
401 override fun childrenInvoker(notifier: RunNotifier): Statement { in <lambda>()
404 runChildren(notifier) in <lambda>()
409 private fun runChildren(notifier: RunNotifier) { in <lambda>()
413 currentScheduler.schedule { this.runChild(each, notifier) } in <lambda>()
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/util/perf/
DPerformanceRunner.java69 public void run(RunNotifier notifier) { in run() argument
70 super.run(notifier); in run()