Home
last modified time | relevance | path

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

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DSingletonRunnerTest.java39 SingletonRunner<Integer> singletonRunner = in testShouldRunTask() local
45 singletonRunner.runSingleInstance().get(); in testShouldRunTask()
53 … SingletonRunner<Integer> singletonRunner = new SingletonRunner<>("Test task", testTaskRunner); in testShouldReturnSameFutureIfTaskIsNotCompleted() local
54 assertThat(singletonRunner.runSingleInstance()) in testShouldReturnSameFutureIfTaskIsNotCompleted()
55 .isSameInstanceAs(singletonRunner.runSingleInstance()); in testShouldReturnSameFutureIfTaskIsNotCompleted()
62 … SingletonRunner<Integer> singletonRunner = new SingletonRunner<>("Test task", testTaskRunner); in testShouldReturnDifferentFuturesIfTaskIsCompleted() local
63 FluentFuture<Integer> firstCall = singletonRunner.runSingleInstance(); in testShouldReturnDifferentFuturesIfTaskIsCompleted()
68 assertThat(firstCall).isNotSameInstanceAs(singletonRunner.runSingleInstance()); in testShouldReturnDifferentFuturesIfTaskIsCompleted()
75 … SingletonRunner<Integer> singletonRunner = new SingletonRunner<>("Test task", testTaskRunner); in testShouldRunOnce() local
76 FluentFuture<Integer> firstRunResult = singletonRunner.runSingleInstance(); in testShouldRunOnce()
[all …]