/arkcompiler/toolchain/tooling/test/utils/ |
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::SINGLE_STEP); in operator <<() 46 ADD_CASE(DebugEvent::VM_START); in operator <<() [all …]
|
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::EXCEPTION, predicate, [] {}); in WaitForException() [all …]
|
D | test_events.h | 35 enum class DebugEvent { enum 51 std::ostream &operator<<(std::ostream &out, DebugEvent value);
|
D | test_hooks.h | 95 TestUtil::Event(DebugEvent::VM_DEATH); in VmDeath() 103 TestUtil::Event(DebugEvent::VM_START); in VmStart()
|
/arkcompiler/toolchain/tooling/test/testcases/ |
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()
|
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()
|
D | js_exception_test.h | 37 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsExceptionTest() 53 TestUtil::SuspendUntilContinue(DebugEvent::EXCEPTION, location); in JsExceptionTest() 62 TestUtil::SuspendUntilContinue(DebugEvent::LOAD_MODULE); in JsExceptionTest()
|
D | js_step_into_test.h | 42 TestUtil::SuspendUntilContinue(DebugEvent::LOAD_MODULE); in JsStepIntoTest() 57 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsStepIntoTest() 68 TestUtil::SuspendUntilContinue(DebugEvent::STEP_COMPLETE, location); in JsStepIntoTest()
|
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()
|
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()
|
D | js_step_over_test.h | 40 TestUtil::SuspendUntilContinue(DebugEvent::LOAD_MODULE); in JsStepOverTest() 55 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsStepOverTest() 66 TestUtil::SuspendUntilContinue(DebugEvent::STEP_COMPLETE, location); in JsStepOverTest()
|
D | js_breakpoint_async_test.h | 30 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsBreakpointAsyncTest() 39 TestUtil::SuspendUntilContinue(DebugEvent::LOAD_MODULE); in JsBreakpointAsyncTest()
|
D | js_breakpoint_test.h | 30 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsBreakpointTest() 39 TestUtil::SuspendUntilContinue(DebugEvent::LOAD_MODULE); in JsBreakpointTest()
|
D | js_breakpoint_arrow_test.h | 30 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsBreakpointArrowTest() 39 TestUtil::SuspendUntilContinue(DebugEvent::LOAD_MODULE); in JsBreakpointArrowTest()
|
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() 57 TestUtil::SuspendUntilContinue(DebugEvent::LOAD_MODULE); in JsDropFrameTest()
|
D | js_local_variable_scope_test.h | 31 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsLocalVariableScopeTest() 43 TestUtil::SuspendUntilContinue(DebugEvent::LOAD_MODULE); in JsLocalVariableScopeTest()
|
D | js_single_step_test.h | 38 TestUtil::SuspendUntilContinue(DebugEvent::LOAD_MODULE); in JsSingleStepTest()
|
D | js_variable_second_test.h | 31 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsVariableSecondTest() 43 TestUtil::SuspendUntilContinue(DebugEvent::LOAD_MODULE); in JsVariableSecondTest()
|
D | js_container_test.h | 31 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsContainerTest() 43 TestUtil::SuspendUntilContinue(DebugEvent::LOAD_MODULE); in JsContainerTest()
|
D | js_variable_first_test.h | 31 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsVariableFirstTest() 43 TestUtil::SuspendUntilContinue(DebugEvent::LOAD_MODULE); in JsVariableFirstTest()
|
D | js_module_variable_test.h | 35 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsModuleVariableTest() 48 TestUtil::SuspendUntilContinue(DebugEvent::LOAD_MODULE); in JsModuleVariableTest()
|