Home
last modified time | relevance | path

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

/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/common/src/test/java/com/google/android/exoplayer2/util/
DListenerSetTest.java44 ListenerSet<TestListener> listenerSet = in queueEvent_withoutFlush_sendsNoEvents()
45 new ListenerSet<>(Looper.myLooper(), Clock.DEFAULT, TestListener::iterationFinished); in queueEvent_withoutFlush_sendsNoEvents()
46 TestListener listener = mock(TestListener.class); in queueEvent_withoutFlush_sendsNoEvents()
49 listenerSet.queueEvent(EVENT_ID_1, TestListener::callback1); in queueEvent_withoutFlush_sendsNoEvents()
50 listenerSet.queueEvent(EVENT_ID_2, TestListener::callback2); in queueEvent_withoutFlush_sendsNoEvents()
58 ListenerSet<TestListener> listenerSet = in flushEvents_sendsPreviouslyQueuedEventsToAllListeners()
59 new ListenerSet<>(Looper.myLooper(), Clock.DEFAULT, TestListener::iterationFinished); in flushEvents_sendsPreviouslyQueuedEventsToAllListeners()
60 TestListener listener1 = mock(TestListener.class); in flushEvents_sendsPreviouslyQueuedEventsToAllListeners()
61 TestListener listener2 = mock(TestListener.class); in flushEvents_sendsPreviouslyQueuedEventsToAllListeners()
65 listenerSet.queueEvent(EVENT_ID_1, TestListener::callback1); in flushEvents_sendsPreviouslyQueuedEventsToAllListeners()
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/common/src/test/java/com/google/android/exoplayer2/util/
DListenerSetTest.java44 ListenerSet<TestListener> listenerSet = in queueEvent_withoutFlush_sendsNoEvents()
45 new ListenerSet<>(Looper.myLooper(), Clock.DEFAULT, TestListener::iterationFinished); in queueEvent_withoutFlush_sendsNoEvents()
46 TestListener listener = mock(TestListener.class); in queueEvent_withoutFlush_sendsNoEvents()
49 listenerSet.queueEvent(EVENT_ID_1, TestListener::callback1); in queueEvent_withoutFlush_sendsNoEvents()
50 listenerSet.queueEvent(EVENT_ID_2, TestListener::callback2); in queueEvent_withoutFlush_sendsNoEvents()
58 ListenerSet<TestListener> listenerSet = in flushEvents_sendsPreviouslyQueuedEventsToAllListeners()
59 new ListenerSet<>(Looper.myLooper(), Clock.DEFAULT, TestListener::iterationFinished); in flushEvents_sendsPreviouslyQueuedEventsToAllListeners()
60 TestListener listener1 = mock(TestListener.class); in flushEvents_sendsPreviouslyQueuedEventsToAllListeners()
61 TestListener listener2 = mock(TestListener.class); in flushEvents_sendsPreviouslyQueuedEventsToAllListeners()
65 listenerSet.queueEvent(EVENT_ID_1, TestListener::callback1); in flushEvents_sendsPreviouslyQueuedEventsToAllListeners()
[all …]
/external/junit/src/main/java/junit/framework/
DTestResult.java20 protected List<TestListener> fListeners;
27 fListeners = new ArrayList<TestListener>(); in TestResult()
38 for (TestListener each : cloneListeners()) { in addError()
49 for (TestListener each : cloneListeners()) { in addFailure()
57 public synchronized void addListener(TestListener listener) { in addListener()
64 public synchronized void removeListener(TestListener listener) { in removeListener()
71 private synchronized List<TestListener> cloneListeners() { in cloneListeners()
72 List<TestListener> result = new ArrayList<TestListener>(); in cloneListeners()
81 for (TestListener each : cloneListeners()) { in endTest()
167 for (TestListener each : cloneListeners()) { in startTest()
DTestListener.java6 public interface TestListener { interface
/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowMagnificationControllerTest.java69 TestListener testListener = new TestListener(); in setCenter_notifiesListener()
92 TestListener testListener = new TestListener(); in setScale_notifiesListener()
133 TestListener testListener = new TestListener(); in reset_notifiesListener()
148 TestListener testListener = new TestListener(); in removeListener_removesListener()
159 private static class TestListener class in ShadowMagnificationControllerTest
DShadowRenderNodeAnimatorTest.java25 private TestListener listener;
32 listener = new TestListener(); in setUp()
164 private static class TestListener extends AnimatorListenerAdapter { class in ShadowRenderNodeAnimatorTest
/external/skia/tests/
DPixelRefTest.cpp64 class TestListener : public SkIDChangeListener { class
66 explicit TestListener(int* ptr) : fPtr(ptr) {} in TestListener() function in TestListener
79 pixelRef->addGenIDChangeListener(sk_make_sp<TestListener>(&count)); in DEF_TEST()
96 pixelRef->addGenIDChangeListener(sk_make_sp<TestListener>(&count)); in DEF_TEST()
102 auto listener = sk_make_sp<TestListener>(&count); in DEF_TEST()
111 listener = sk_make_sp<TestListener>(&count); in DEF_TEST()
116 pixelRef->addGenIDChangeListener(sk_make_sp<TestListener>(&count)); in DEF_TEST()
/external/guice/extensions/struts2/test/com/google/inject/struts2/
DStruts2FactoryTest.java39 public static class TestListener extends GuiceServletContextListener { class in Struts2FactoryTest
43 public TestListener(Module module) { in TestListener() method in Struts2FactoryTest.TestListener
66 TestListener testListener =
67 new TestListener(
/external/tensorflow/tensorflow/compiler/jit/
Dxla_activity_listener_test.cc32 class TestListener : public XlaActivityListener { class
50 ~TestListener() override {} in ~TestListener()
67 auto listener = std::make_unique<TestListener>(); in XlaActivityListenerTest()
72 TestListener* listener() const { return listener_; } in listener()
75 TestListener* listener_;
/external/catch2/projects/SelfTest/
DTestMain.cpp30 struct TestListener : Catch::TestEventListenerBase { struct
33 CATCH_REGISTER_LISTENER( TestListener )
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/androidTest/java/com/google/android/exoplayer2/
DStreamVolumeManagerTest.java43 private TestListener testListener;
52 testListener = new TestListener(); in setUp()
273 private static class TestListener implements StreamVolumeManager.Listener { class in StreamVolumeManagerTest
280 public TestListener() { in TestListener() method in StreamVolumeManagerTest.TestListener
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/androidTest/java/com/google/android/exoplayer2/
DStreamVolumeManagerTest.java43 private TestListener testListener;
52 testListener = new TestListener(); in setUp()
273 private static class TestListener implements StreamVolumeManager.Listener { class in StreamVolumeManagerTest
280 public TestListener() { in TestListener() method in StreamVolumeManagerTest.TestListener
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowRenderNodeAnimatorTest.java24 private TestListener listener;
31 listener = new TestListener(); in setUp()
159 private static class TestListener extends AnimatorListenerAdapter { class in ShadowRenderNodeAnimatorTest
/external/junit/src/main/java/junit/textui/
DResultPrinter.java10 import junit.framework.TestListener;
14 public class ResultPrinter implements TestListener {
/external/junit/src/main/java/org/junit/internal/runners/
DJUnit38ClassRunner.java10 import junit.framework.TestListener;
29 TestListener {
93 public TestListener createAdaptingListener(final RunNotifier notifier) { in createAdaptingListener()
/external/junit/src/main/java/junit/runner/
DBaseTestRunner.java20 import junit.framework.TestListener;
29 public abstract class BaseTestRunner implements TestListener {
/external/testng/src/main/java/org/testng/junit/
DJUnitTestRunner.java24 import junit.framework.TestListener;
34 public class JUnitTestRunner implements TestListener, IJUnitTestRunner {
/external/cronet/third_party/boringssl/src/third_party/googletest/test/
Dgtest_unittest.cc6849 class TestListener : public EmptyTestEventListener { class
6851 TestListener() : on_start_counter_(nullptr), is_destroyed_(nullptr) {} in TestListener() function in TestListener
6852 TestListener(int* on_start_counter, bool* is_destroyed) in TestListener() function in TestListener
6856 ~TestListener() override { in ~TestListener()
6886 TestListener* default_result_printer = in TEST()
6887 new TestListener(nullptr, &default_result_printer_is_destroyed); in TEST()
6888 TestListener* default_xml_printer = in TEST()
6889 new TestListener(nullptr, &default_xml_printer_is_destroyed); in TEST()
6890 TestListener* extra_listener = in TEST()
6891 new TestListener(nullptr, &extra_listener_is_destroyed); in TEST()
[all …]
/external/googletest/googletest/test/
Dgtest_unittest.cc6841 class TestListener : public EmptyTestEventListener { class
6843 TestListener() : on_start_counter_(nullptr), is_destroyed_(nullptr) {} in TestListener() function in TestListener
6844 TestListener(int* on_start_counter, bool* is_destroyed) in TestListener() function in TestListener
6848 ~TestListener() override { in ~TestListener()
6878 TestListener* default_result_printer = in TEST()
6879 new TestListener(nullptr, &default_result_printer_is_destroyed); in TEST()
6880 TestListener* default_xml_printer = in TEST()
6881 new TestListener(nullptr, &default_xml_printer_is_destroyed); in TEST()
6882 TestListener* extra_listener = in TEST()
6883 new TestListener(nullptr, &extra_listener_is_destroyed); in TEST()
[all …]
/external/cronet/third_party/googletest/src/googletest/test/
Dgtest_unittest.cc6745 class TestListener : public EmptyTestEventListener { class
6747 TestListener() : on_start_counter_(nullptr), is_destroyed_(nullptr) {} in TestListener() function in TestListener
6748 TestListener(int* on_start_counter, bool* is_destroyed) in TestListener() function in TestListener
6751 ~TestListener() override { in ~TestListener()
6780 TestListener* default_result_printer = in TEST()
6781 new TestListener(nullptr, &default_result_printer_is_destroyed); in TEST()
6782 TestListener* default_xml_printer = in TEST()
6783 new TestListener(nullptr, &default_xml_printer_is_destroyed); in TEST()
6784 TestListener* extra_listener = in TEST()
6785 new TestListener(nullptr, &extra_listener_is_destroyed); in TEST()
[all …]
/external/rust/crates/quiche/deps/boringssl/src/third_party/googletest/test/
Dgtest_unittest.cc6849 class TestListener : public EmptyTestEventListener { class
6851 TestListener() : on_start_counter_(nullptr), is_destroyed_(nullptr) {} in TestListener() function in TestListener
6852 TestListener(int* on_start_counter, bool* is_destroyed) in TestListener() function in TestListener
6856 ~TestListener() override { in ~TestListener()
6886 TestListener* default_result_printer = in TEST()
6887 new TestListener(nullptr, &default_result_printer_is_destroyed); in TEST()
6888 TestListener* default_xml_printer = in TEST()
6889 new TestListener(nullptr, &default_xml_printer_is_destroyed); in TEST()
6890 TestListener* extra_listener = in TEST()
6891 new TestListener(nullptr, &extra_listener_is_destroyed); in TEST()
[all …]
/external/testng/src/test/java/test/
DBaseTest.java453 testRunner.addListener(new TestListener(m_baseTest)); in newTestRunner()
497 class TestListener extends TestListenerAdapter { class
500 public TestListener(BaseTest t1) { in TestListener() method in TestListener
/external/python/cpython3/Lib/test/
Dtest_asyncore.py536 class TestListener(BaseTestHandler): class
548 server = TestListener(self.family, self.addr)
555 class TestListener(BaseTestHandler): class
571 server = TestListener(self.family, self.addr)
/external/python/cpython2/Lib/test/
Dtest_asyncore.py548 class TestListener(BaseTestHandler): class
560 server = TestListener()