/arkcompiler/toolchain/tooling/test/utils/ |
H A D | test_util.cpp | 22 DebugEvent TestUtil::lastEvent_ = DebugEvent::UNINITIALIZED; 29 std::ostream &operator<<(std::ostream &out, DebugEvent value) in operator <<() 39 ADD_CASE(DebugEvent::BREAKPOINT); in operator <<() 40 ADD_CASE(DebugEvent::LOAD_MODULE); in operator <<() 41 ADD_CASE(DebugEvent::PAUSED); in operator <<() 42 ADD_CASE(DebugEvent::EXCEPTION); in operator <<() 43 ADD_CASE(DebugEvent::STEP_COMPLETE); in operator <<() 44 ADD_CASE(DebugEvent::METHOD_ENTRY); in operator <<() 45 ADD_CASE(DebugEvent in operator <<() [all...] |
H A D | test_util.h | 60 WaitForEvent(DebugEvent::BREAKPOINT, predicate, onSuccess); in WaitForBreakpoint() 65 auto predicate = []() REQUIRES(eventMutex_) { return lastEvent_ == DebugEvent::DROPFRAME; }; in WaitForDropframe() 66 return WaitForEvent(DebugEvent::DROPFRAME, predicate, [] {}); in WaitForDropframe() 71 auto predicate = []() REQUIRES(eventMutex_) { return lastEvent_ == DebugEvent::CHECK_COMPLETE; }; in WaitForCheckComplete() 72 return WaitForEvent(DebugEvent::CHECK_COMPLETE, predicate, [] {}); in WaitForCheckComplete() 77 return WaitForEvent(DebugEvent::VM_DEATH, in WaitForExit() 79 return lastEvent_ == DebugEvent::VM_DEATH; in WaitForExit() 91 WaitForEvent(DebugEvent::STEP_COMPLETE, predicate, onSuccess); in WaitForStepComplete() 96 auto predicate = []() REQUIRES(eventMutex_) { return lastEvent_ == DebugEvent::EXCEPTION; }; in WaitForException() 97 return WaitForEvent(DebugEvent in WaitForException() [all...] |
H A D | test_events.h | 36 enum class DebugEvent { class 52 std::ostream &operator<<(std::ostream &out, DebugEvent value);
|
H A D | test_hooks.h | 104 TestUtil::Event(DebugEvent::VM_DEATH); 112 TestUtil::Event(DebugEvent::VM_START);
|
/arkcompiler/runtime_core/static_core/runtime/tests/tooling/ |
H A D | test_util.h | 79 WaitForEvent(DebugEvent::BREAKPOINT, predicate, onSuccess); in WaitForBreakpoint() 86 DebugEvent::VM_DEATH, []() REQUIRES(eventMutex_) { return lastEvent_ == DebugEvent::VM_DEATH; }, [] {}); in WaitForExit() 92 DebugEvent::VM_INITIALIZATION, []() REQUIRES(eventMutex_) { return initialized_; }, [] {}); in WaitForInit() 95 static void Event(DebugEvent event, PtThread thread = PtThread::NONE, in Event() 103 if (event == DebugEvent::VM_INITIALIZATION) { in Event() 113 lastEvent_ = DebugEvent::VM_START; in Reset() 124 return lastEvent_ == DebugEvent::VM_DEATH; in IsTestFinished() 144 static bool SuspendUntilContinue(DebugEvent reason, PtThread thread, PtLocation location) in SuspendUntilContinue() 193 static bool WaitForEvent(DebugEvent even [all...] |
H A D | test_util.cpp | 27 DebugEvent TestUtil::lastEvent_ = DebugEvent::UNINITIALIZED;
|
H A D | api_test.h | 93 enum class DebugEvent { class 101 inline constexpr std::array<const char *, static_cast<size_t>(DebugEvent::UNINITIALIZED) + 1> DEBUG_EVENT_NAMES = { 109 inline std::ostream &operator<<(std::ostream &out, DebugEvent value) in operator <<()
|
H A D | test_runner.h | 156 TestUtil::Event(DebugEvent::VM_DEATH); 164 TestUtil::Event(DebugEvent::VM_INITIALIZATION);
|
/arkcompiler/toolchain/tooling/test/testcases/ |
H A D | js_step_over_test.h | 40 TestUtil::SuspendUntilContinue(DebugEvent::LOAD_MODULE); in JsStepOverTest() 55 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsStepOverTest() 70 TestUtil::SuspendUntilContinue(DebugEvent::STEP_COMPLETE, location); in JsStepOverTest()
|
H A D | js_step_out_test.h | 40 TestUtil::SuspendUntilContinue(DebugEvent::LOAD_MODULE); in JsStepOutTest() 55 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsStepOutTest() 66 TestUtil::SuspendUntilContinue(DebugEvent::STEP_COMPLETE, location); in JsStepOutTest()
|
H A D | js_step_into_test.h | 42 TestUtil::SuspendUntilContinue(DebugEvent::LOAD_MODULE); in JsStepIntoTest() 57 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsStepIntoTest() 72 TestUtil::SuspendUntilContinue(DebugEvent::STEP_COMPLETE, location); in JsStepIntoTest()
|
H A D | js_range_error_test.h | 37 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsRangeErrorTest() 53 TestUtil::SuspendUntilContinue(DebugEvent::EXCEPTION, location); in JsRangeErrorTest() 62 TestUtil::SuspendUntilContinue(DebugEvent::LOAD_MODULE); in JsRangeErrorTest()
|
H A D | js_throw_exception_test.h | 37 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location);
in JsThrowExceptionTest() 54 TestUtil::SuspendUntilContinue(DebugEvent::EXCEPTION, location);
in JsThrowExceptionTest() 65 TestUtil::SuspendUntilContinue(DebugEvent::LOAD_MODULE);
in JsThrowExceptionTest()
|
H A D | js_syntax_exception_test.h | 37 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location);
in JsSyntaxExceptionTest() 53 TestUtil::SuspendUntilContinue(DebugEvent::EXCEPTION, location);
in JsSyntaxExceptionTest() 62 TestUtil::SuspendUntilContinue(DebugEvent::LOAD_MODULE);
in JsSyntaxExceptionTest()
|
H A D | js_dropframe_test.h | 34 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsDropFrameTest() 42 TestUtil::SuspendUntilContinue(DebugEvent::CHECK_COMPLETE); in JsDropFrameTest() 44 TestUtil::SuspendUntilContinue(DebugEvent::DROPFRAME); in JsDropFrameTest() 59 TestUtil::SuspendUntilContinue(DebugEvent::LOAD_MODULE); in JsDropFrameTest()
|
H A D | js_single_step_test.h | 38 TestUtil::SuspendUntilContinue(DebugEvent::LOAD_MODULE); in JsSingleStepTest()
|
H A D | js_variable_first_test.h | 31 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsVariableFirstTest() 44 TestUtil::SuspendUntilContinue(DebugEvent::LOAD_MODULE); in JsVariableFirstTest()
|
H A D | js_variable_second_test.h | 31 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsVariableSecondTest() 44 TestUtil::SuspendUntilContinue(DebugEvent::LOAD_MODULE); in JsVariableSecondTest()
|