/arkcompiler/toolchain/tooling/test/client_utils/ |
H A D | test_list.cpp | 80 TestUtil::RegisterTest("JsBreakpointTest", GetJsBreakpointTest()); in RegisterTests() 81 TestUtil::RegisterTest("JsBreakpointArrowTest", GetJsBreakpointArrowTest()); in RegisterTests() 82 TestUtil::RegisterTest("JsBreakpointAsyncTest", GetJsBreakpointAsyncTest()); in RegisterTests() 83 TestUtil::RegisterTest("JsClosureScopeTest", GetJsClosureScopeTest()); in RegisterTests() 84 TestUtil::RegisterTest("JsLocalVariableScopeTest", GetJsLocalVariableScopeTest()); in RegisterTests() 85 TestUtil::RegisterTest("JsExceptionTest", GetJsExceptionTest()); in RegisterTests() 86 TestUtil::RegisterTest("JsContainerTest", GetJsContainerTest()); in RegisterTests() 87 TestUtil::RegisterTest("JsModuleVariableTest", GetJsModuleVariableTest()); in RegisterTests() 88 TestUtil::RegisterTest("JsSourceTest", GetJsSourceTest()); in RegisterTests() 89 TestUtil in RegisterTests() [all...] |
H A D | test_util.cpp | 27 TestMap TestUtil::testMap_; 74 void TestUtil::NotifySuccess() in NotifySuccess() 83 void TestUtil::NotifyFail() in NotifyFail() 92 void TestUtil::ForkSocketClient([[maybe_unused]] int port, const std::string &name) in ForkSocketClient() 114 auto &testAction = TestUtil::GetTest(name)->testAction; in ForkSocketClient() 144 void TestUtil::HandleAcceptanceMessages(ActionInfo action, WebSocketClient &client, std::string &recv, bool &success) in HandleAcceptanceMessages() 180 void TestUtil::SendMessage(ActionInfo action, std::string recv) in SendMessage()
|
H A D | test_util.h | 44 class TestUtil { class
|
/arkcompiler/toolchain/tooling/test/utils/ |
H A D | test_list.cpp | 38 TestUtil::RegisterTest("JsSingleStepTest", GetJsSingleStepTest()); in RegisterTests() 39 TestUtil::RegisterTest("JsRangeErrorTest", GetJsRangeErrorTest()); in RegisterTests() 40 TestUtil::RegisterTest("JsSyntaxExceptionTest", GetJsSyntaxExceptionTest()); in RegisterTests() 41 TestUtil::RegisterTest("JsThrowExceptionTest", GetJsThrowExceptionTest()); in RegisterTests() 42 TestUtil::RegisterTest("JsStepIntoTest", GetJsStepIntoTest()); in RegisterTests() 43 TestUtil::RegisterTest("JsStepOverTest", GetJsStepOverTest()); in RegisterTests() 44 TestUtil::RegisterTest("JsStepOutTest", GetJsStepOutTest()); in RegisterTests() 45 TestUtil::RegisterTest("JSDropFrameTest", GetJsDropFrameTest()); in RegisterTests() 46 TestUtil::RegisterTest("JsVariableFirstTest", GetJsVariableFirstTest()); in RegisterTests() 47 TestUtil in RegisterTests() [all...] |
H A D | test_util.cpp | 19 TestMap TestUtil::testMap_; 20 os::memory::Mutex TestUtil::eventMutex_; 21 os::memory::ConditionVariable TestUtil::eventCv_; 22 DebugEvent TestUtil::lastEvent_ = DebugEvent::UNINITIALIZED; 23 bool TestUtil::initialized_ = false; 24 os::memory::Mutex TestUtil::suspendMutex_; 25 os::memory::ConditionVariable TestUtil::suspendCv_; 26 bool TestUtil::suspended_ = false; 27 JSPtLocation TestUtil::lastEventLocation_(nullptr, EntityId(0), 0);
|
H A D | test_hooks.h | 29 test_ = TestUtil::GetTest(testName); in TestHooks() 37 TestUtil::Reset(); in TestHooks() 104 TestUtil::Event(DebugEvent::VM_DEATH); 112 TestUtil::Event(DebugEvent::VM_START); 124 if (TestUtil::IsTestFinished()) { in TerminateTest()
|
H A D | test_entry.cpp | 32 TestUtil::WaitForInit(); in StartDebuggerImpl()
|
H A D | test_util.h | 33 class TestUtil { class 291 bool res = TestUtil::WaitForExit(); \ 293 ASSERT_FAIL_(TestUtil::IsTestFinished(), true, "TestUtil::IsTestFinished()", "true", ""); \
|
/arkcompiler/runtime_core/static_core/runtime/tests/tooling/ |
H A D | test_util.cpp | 24 TestMap TestUtil::testMap_; 25 os::memory::Mutex TestUtil::eventMutex_; 26 os::memory::ConditionVariable TestUtil::eventCv_; 27 DebugEvent TestUtil::lastEvent_ = DebugEvent::UNINITIALIZED; 28 bool TestUtil::initialized_ = false; 29 os::memory::Mutex TestUtil::suspendMutex_; 30 os::memory::ConditionVariable TestUtil::suspendCv_; 31 bool TestUtil::suspended_; 32 PtThread TestUtil::lastEventThread_ = PtThread(nullptr); 33 PtLocation TestUtil [all...] |
H A D | test_runner.h | 30 test_ = TestUtil::GetTest(testName); in TestRunner() 32 TestUtil::Reset(); in TestRunner() 156 TestUtil::Event(DebugEvent::VM_DEATH); 164 TestUtil::Event(DebugEvent::VM_INITIALIZATION); 261 if (TestUtil::IsTestFinished()) { in TerminateTest()
|
H A D | init.cpp | 34 TestUtil::WaitForInit(); in StartDebugger()
|
H A D | test_util.h | 36 class TestUtil { class 291 bool res = TestUtil::WaitForExit(); \ 293 ASSERT_FAIL_IMPL(TestUtil::IsTestFinished(), true, "TestUtil::IsTestFinished()", "true", ""); \ 311 PtThread suspended = TestUtil::WaitForBreakpoint(location); \
|
/arkcompiler/toolchain/tooling/test/testcases/ |
H A D | js_range_error_test.h | 37 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsRangeErrorTest() 42 auto sourceLocation = TestUtil::GetSourceLocation(location, pandaFile_.c_str()); in JsRangeErrorTest() 53 TestUtil::SuspendUntilContinue(DebugEvent::EXCEPTION, location); in JsRangeErrorTest() 60 location_ = TestUtil::GetLocation(sourceFile_.c_str(), 21, 4, pandaFile_.c_str()); in JsRangeErrorTest() 62 TestUtil::SuspendUntilContinue(DebugEvent::LOAD_MODULE); in JsRangeErrorTest() 72 TestUtil::WaitForLoadModule(); in JsRangeErrorTest() 73 TestUtil::Continue(); in JsRangeErrorTest() 74 TestUtil::WaitForBreakpoint(location_); in JsRangeErrorTest() 75 TestUtil::Continue(); in JsRangeErrorTest() 76 TestUtil in JsRangeErrorTest() [all...] |
H A D | js_throw_exception_test.h | 37 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location);
in JsThrowExceptionTest() 42 auto sourceLocation = TestUtil::GetSourceLocation(location, pandaFile_.c_str());
in JsThrowExceptionTest() 54 TestUtil::SuspendUntilContinue(DebugEvent::EXCEPTION, location);
in JsThrowExceptionTest() 61 location_ = TestUtil::GetLocation(sourceFile_.c_str(), 31, 0, pandaFile_.c_str());
in JsThrowExceptionTest() 65 TestUtil::SuspendUntilContinue(DebugEvent::LOAD_MODULE);
in JsThrowExceptionTest() 75 TestUtil::WaitForLoadModule();
in JsThrowExceptionTest() 76 TestUtil::Continue();
in JsThrowExceptionTest() 77 TestUtil::WaitForBreakpoint(location_);
in JsThrowExceptionTest() 78 TestUtil::Continue();
in JsThrowExceptionTest() 79 TestUtil in JsThrowExceptionTest() [all...] |
H A D | js_syntax_exception_test.h | 37 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location);
in JsSyntaxExceptionTest() 42 auto sourceLocation = TestUtil::GetSourceLocation(location, pandaFile_.c_str());
in JsSyntaxExceptionTest() 53 TestUtil::SuspendUntilContinue(DebugEvent::EXCEPTION, location);
in JsSyntaxExceptionTest() 60 location_ = TestUtil::GetLocation(sourceFile_.c_str(), 29, 4, pandaFile_.c_str());
in JsSyntaxExceptionTest() 62 TestUtil::SuspendUntilContinue(DebugEvent::LOAD_MODULE);
in JsSyntaxExceptionTest() 72 TestUtil::WaitForLoadModule();
in JsSyntaxExceptionTest() 73 TestUtil::Continue();
in JsSyntaxExceptionTest() 74 TestUtil::WaitForBreakpoint(location_);
in JsSyntaxExceptionTest() 75 TestUtil::Continue();
in JsSyntaxExceptionTest() 76 TestUtil in JsSyntaxExceptionTest() [all...] |
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() 77 TestUtil::WaitForLoadModule(); in JsStepOverTest() 78 TestUtil::Continue(); in JsStepOverTest() 81 TestUtil::WaitForBreakpoint(pointerLocations_.at(index)); in JsStepOverTest() 82 TestUtil::Continue(); in JsStepOverTest() 84 TestUtil::WaitForStepComplete(stepLocations_.at(index)); in JsStepOverTest() 85 TestUtil::Continue(); in JsStepOverTest() 117 JSPtLocation location_ = TestUtil in SetJSPtLocation() [all...] |
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() 73 TestUtil::WaitForLoadModule(); in JsStepOutTest() 74 TestUtil::Continue(); in JsStepOutTest() 77 TestUtil::WaitForBreakpoint(pointerLocations_.at(index)); in JsStepOutTest() 78 TestUtil::Continue(); in JsStepOutTest() 80 TestUtil::WaitForStepComplete(stepLocations_.at(index)); in JsStepOutTest() 81 TestUtil::Continue(); in JsStepOutTest() 113 JSPtLocation location_ = TestUtil in SetJSPtLocation() [all...] |
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() 79 TestUtil::WaitForLoadModule(); in JsStepIntoTest() 80 TestUtil::Continue(); in JsStepIntoTest() 83 TestUtil::WaitForBreakpoint(pointerLocations_.at(index)); in JsStepIntoTest() 84 TestUtil::Continue(); in JsStepIntoTest() 86 TestUtil::WaitForStepComplete(stepLocations_.at(index)); in JsStepIntoTest() 87 TestUtil::Continue(); in JsStepIntoTest() 117 JSPtLocation location = TestUtil in SetJSPtLocation() [all...] |
H A D | js_single_step_test.h | 35 locationStart_ = TestUtil::GetLocation(sourceFile_.c_str(), 19, 0, pandaFile_.c_str()); in JsSingleStepTest() 37 locationEnd_ = TestUtil::GetLocation(sourceFile_.c_str(), 22, 0, pandaFile_.c_str()); in JsSingleStepTest() 38 TestUtil::SuspendUntilContinue(DebugEvent::LOAD_MODULE); in JsSingleStepTest() 75 TestUtil::WaitForLoadModule(); in JsSingleStepTest() 76 TestUtil::Continue(); in JsSingleStepTest()
|
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() 71 TestUtil::WaitForLoadModule(); in JsDropFrameTest() 72 TestUtil::Continue(); in JsDropFrameTest() 75 TestUtil::WaitForBreakpoint(pointerLocations_.at(index)); in JsDropFrameTest() 80 TestUtil::Continue(); in JsDropFrameTest() 83 TestUtil::WaitForCheckComplete(); in JsDropFrameTest() 84 TestUtil in JsDropFrameTest() [all...] |
H A D | js_variable_first_test.h | 31 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsVariableFirstTest() 42 location_ = TestUtil::GetLocation(sourceFile.c_str(), lineNumber, 0, pandaFile.c_str()); in JsVariableFirstTest() 44 TestUtil::SuspendUntilContinue(DebugEvent::LOAD_MODULE); in JsVariableFirstTest() 54 TestUtil::WaitForLoadModule(); in JsVariableFirstTest() 55 TestUtil::Continue(); in JsVariableFirstTest() 56 TestUtil::WaitForBreakpoint(location_); in JsVariableFirstTest() 57 TestUtil::Continue(); in JsVariableFirstTest()
|
H A D | js_variable_second_test.h | 31 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsVariableSecondTest() 42 location_ = TestUtil::GetLocation(sourceFile.c_str(), line, 0, panfaFile.c_str()); in JsVariableSecondTest() 44 TestUtil::SuspendUntilContinue(DebugEvent::LOAD_MODULE); in JsVariableSecondTest() 54 TestUtil::WaitForLoadModule(); in JsVariableSecondTest() 55 TestUtil::Continue(); in JsVariableSecondTest() 56 TestUtil::WaitForBreakpoint(location_); in JsVariableSecondTest() 57 TestUtil::Continue(); in JsVariableSecondTest()
|
/arkcompiler/toolchain/tooling/test/ |
H A D | debugger_cint_client_test.cpp | 47 TestUtil::ForkSocketClient(g_port, GetParam());
|
H A D | debugger_client_test.cpp | 47 TestUtil::ForkSocketClient(g_port, GetParam());
|