Home
last modified time | relevance | path

Searched refs:Result (Results 1 - 25 of 211) sorted by relevance

123456789

/arkcompiler/toolchain/tooling/base/
H A Dpt_params.cpp23 Result ret; in Create()
27 if (ret == Result::SUCCESS) { in Create()
29 } else if (ret == Result::TYPE_ERROR) { in Create()
45 Result ret; in Create()
49 if (ret == Result::SUCCESS) { in Create()
58 if (ret == Result::SUCCESS) { in Create()
65 if (ret == Result::SUCCESS) { in Create()
67 } else if (ret == Result::TYPE_ERROR) { in Create()
72 if (ret == Result::SUCCESS) { in Create()
74 } else if (ret == Result in Create()
[all...]
H A Dpt_json.cpp360 Result PtJson::GetBool(const char *key, bool *value) const in GetBool()
364 return Result::NOT_EXIST; in GetBool()
367 return Result::TYPE_ERROR; in GetBool()
371 return Result::SUCCESS; in GetBool()
374 Result PtJson::GetInt(const char *key, int32_t *value) const in GetInt()
377 Result ret = GetDouble(key, &result); in GetInt()
378 if (ret == Result::SUCCESS) { in GetInt()
384 Result PtJson::GetInt64(const char *key, int64_t *value) const in GetInt64()
387 Result ret = GetDouble(key, &result); in GetInt64()
388 if (ret == Result in GetInt64()
[all...]
H A Dpt_json.h26 enum class Result : uint8_t { class
100 Result GetBool(const char *key, bool *value) const;
101 Result GetInt(const char *key, int32_t *value) const;
102 Result GetInt64(const char *key, int64_t *value) const;
103 Result GetUInt(const char *key, uint32_t *value) const;
104 Result GetUInt64(const char *key, uint64_t *value) const;
105 Result GetDouble(const char *key, double *value) const;
106 Result GetString(const char *key, std::string *value) const;
107 Result GetObject(const char *key, std::unique_ptr<PtJson> *value) const;
108 Result GetArra
[all...]
/arkcompiler/toolchain/tooling/test/
H A Ddebugger_events_test.cpp72 ASSERT_EQ(breakpointResolved.ToJson()->GetObject("params", &json), Result::SUCCESS); in HWTEST_F_L0()
74 ASSERT_EQ(json->GetString("breakpointId", &breakpointId), Result::SUCCESS); in HWTEST_F_L0()
78 ASSERT_EQ(json->GetObject("location", &locationJson), Result::SUCCESS); in HWTEST_F_L0()
80 ASSERT_EQ(locationJson->GetString("scriptId", &scriptId), Result::SUCCESS); in HWTEST_F_L0()
83 ASSERT_EQ(locationJson->GetInt("lineNumber", &lineNumber), Result::SUCCESS); in HWTEST_F_L0()
107 ASSERT_EQ(json->GetObject("params", &params), Result::SUCCESS); in HWTEST_F_L0()
110 ASSERT_EQ(params->GetString("reason", &reason), Result::SUCCESS); in HWTEST_F_L0()
113 ASSERT_EQ(params->GetArray("callFrames", &callFrames), Result::SUCCESS); in HWTEST_F_L0()
124 ASSERT_EQ(json1->GetObject("params", &params), Result::SUCCESS); in HWTEST_F_L0()
134 ASSERT_EQ(json->GetString("method", &method), Result in HWTEST_F_L0()
[all...]
H A Ddebugger_returns_test.cpp71 ASSERT_EQ(enableReturns->ToJson()->GetString("debuggerId", &debuggerId), Result::SUCCESS); in HWTEST_F_L0()
85 ASSERT_EQ(setBreakpointByUrlReturns->ToJson()->GetString("breakpointId", &id), Result::SUCCESS); in HWTEST_F_L0()
89 ASSERT_EQ(setBreakpointByUrlReturns->ToJson()->GetArray("locations", &locationsJson), Result::SUCCESS); in HWTEST_F_L0()
104 ASSERT_EQ(evaluateOnCallFrameReturns->ToJson()->GetObject("result", &json), Result::SUCCESS); in HWTEST_F_L0()
106 ASSERT_EQ(json->GetString("type", &type), Result::SUCCESS); in HWTEST_F_L0()
110 ASSERT_EQ(evaluateOnCallFrameReturns->ToJson()->GetObject("exceptionDetails", &tmpJson), Result::SUCCESS); in HWTEST_F_L0()
112 ASSERT_EQ(tmpJson->GetInt("exceptionId", &exceptionId), Result::SUCCESS); in HWTEST_F_L0()
126 ASSERT_EQ(getPossibleBreakpointsReturns->ToJson()->GetArray("locations", &locationsJson), Result::SUCCESS); in HWTEST_F_L0()
138 ASSERT_EQ(getScriptSourceReturns->ToJson()->GetString("scriptSource", &scriptSource), Result::SUCCESS); in HWTEST_F_L0()
142 ASSERT_EQ(getScriptSourceReturns->ToJson()->GetString("bytecode", &bytecode), Result in HWTEST_F_L0()
[all...]
/arkcompiler/toolchain/tooling/test/testcases/
H A Djs_closure_scope_test.h51 Result ret; in JsClosureScopeTest()
54 if (ret != Result::SUCCESS || method != "Debugger.paused") { in JsClosureScopeTest()
66 Result ret = json->GetInt("id", &id); in JsClosureScopeTest()
67 if (ret != Result::SUCCESS) { in JsClosureScopeTest()
77 Result ret; in JsClosureScopeTest()
80 if (ret != Result::SUCCESS) { in JsClosureScopeTest()
86 if (ret != Result::SUCCESS) { in JsClosureScopeTest()
92 if (ret != Result::SUCCESS) { in JsClosureScopeTest()
98 if (ret != Result::SUCCESS || name != "v3") { in JsClosureScopeTest()
104 if (ret != Result in JsClosureScopeTest()
[all...]
H A Djs_watch_test.h86 Result ret; in RecvWatchDescription()
89 if (ret != Result::SUCCESS) { in RecvWatchDescription()
95 if (ret != Result::SUCCESS) { in RecvWatchDescription()
101 if (ret != Result::SUCCESS) { in RecvWatchDescription()
107 if (ret != Result::SUCCESS) { in RecvWatchDescription()
120 Result ret; in RecvWatchType()
123 if (ret != Result::SUCCESS) { in RecvWatchType()
129 if (ret != Result::SUCCESS) { in RecvWatchType()
135 if (ret != Result::SUCCESS) { in RecvWatchType()
141 if (ret != Result in RecvWatchType()
[all...]
H A Djs_exception_test.h47 Result ret; in JsExceptionTest()
50 if (ret != Result::SUCCESS || method != "Debugger.paused") { in JsExceptionTest()
56 if (ret != Result::SUCCESS) { in JsExceptionTest()
62 if (ret != Result::SUCCESS) { in JsExceptionTest()
68 if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in JsExceptionTest()
86 Result ret; in JsExceptionTest()
89 if (ret != Result::SUCCESS || method != "Debugger.paused") { in JsExceptionTest()
95 if (ret != Result::SUCCESS) { in JsExceptionTest()
101 if (ret != Result::SUCCESS) { in JsExceptionTest()
107 if (ret != Result in JsExceptionTest()
[all...]
H A Djs_stepout_arrow_test.h86 Result ret; in RecvBreakInfo()
89 if (ret != Result::SUCCESS || method != "Debugger.paused") { in RecvBreakInfo()
95 if (ret != Result::SUCCESS) { in RecvBreakInfo()
101 if (ret != Result::SUCCESS) { in RecvBreakInfo()
107 if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in RecvBreakInfo()
120 Result ret; in RecvStepoutInfo()
123 if (ret != Result::SUCCESS || method != "Debugger.paused") { in RecvStepoutInfo()
129 if (ret != Result::SUCCESS) { in RecvStepoutInfo()
135 if (ret != Result::SUCCESS) { in RecvStepoutInfo()
141 if (ret != Result in RecvStepoutInfo()
[all...]
H A Djs_watch_other_type_test.h90 Result ret; in RecvWatchSubtypeInfo()
93 if (ret != Result::SUCCESS) { in RecvWatchSubtypeInfo()
99 if (ret != Result::SUCCESS) { in RecvWatchSubtypeInfo()
105 if (ret != Result::SUCCESS) { in RecvWatchSubtypeInfo()
111 if (ret != Result::SUCCESS || type != "object") { in RecvWatchSubtypeInfo()
117 if (ret != Result::SUCCESS || subtype != var_type) { in RecvWatchSubtypeInfo()
123 if (ret != Result::SUCCESS || className != var_class) { in RecvWatchSubtypeInfo()
129 if (ret != Result::SUCCESS || value != var_info) { in RecvWatchSubtypeInfo()
135 if (ret != Result::SUCCESS || description != var_info) { in RecvWatchSubtypeInfo()
147 Result re in RecvWatchFunctionInfo()
[all...]
H A Djs_heapprofiler_dump_test.h44 Result ret; in JsHeapProfilerDumpTest()
47 if (ret != Result::SUCCESS) { in JsHeapProfilerDumpTest()
53 if (ret != Result::SUCCESS || done != 0) { in JsHeapProfilerDumpTest()
59 if (ret != Result::SUCCESS) { in JsHeapProfilerDumpTest()
67 Result ret; in JsHeapProfilerDumpTest()
70 if (ret != Result::SUCCESS) { in JsHeapProfilerDumpTest()
76 if (ret != Result::SUCCESS) { in JsHeapProfilerDumpTest()
82 if (ret != Result::SUCCESS) { in JsHeapProfilerDumpTest()
90 Result ret; in JsHeapProfilerDumpTest()
93 if (ret != Result in JsHeapProfilerDumpTest()
[all...]
H A Djs_heapdump_test.h63 Result ret; in RecvReportProgress()
66 if (ret != Result::SUCCESS) { in RecvReportProgress()
76 if (ret != Result::SUCCESS) { in RecvReportProgress()
82 if (ret != Result::SUCCESS) { in RecvReportProgress()
96 Result ret; in RecvReportProgressFinished()
99 if (ret != Result::SUCCESS) { in RecvReportProgressFinished()
109 if (ret != Result::SUCCESS) { in RecvReportProgressFinished()
115 if (ret != Result::SUCCESS) { in RecvReportProgressFinished()
121 if (ret != Result::SUCCESS) { in RecvReportProgressFinished()
132 Result re in RecvReportProgressChunk()
[all...]
H A Djs_container_test.h46 Result ret; in JsContainerTest()
49 if (ret != Result::SUCCESS || method != "Debugger.paused") { in JsContainerTest()
55 if (ret != Result::SUCCESS) { in JsContainerTest()
61 if (ret != Result::SUCCESS) { in JsContainerTest()
67 if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in JsContainerTest()
80 Result ret; in JsContainerTest()
83 if (ret != Result::SUCCESS) { in JsContainerTest()
89 if (ret != Result::SUCCESS) { in JsContainerTest()
95 if (ret != Result::SUCCESS) { in JsContainerTest()
108 if (ret != Result in JsContainerTest()
[all...]
H A Djs_smart_stepInto_test.h70 Result ret; in RecvBreakInfo()
73 if (ret != Result::SUCCESS || method != "Debugger.paused") { in RecvBreakInfo()
79 if (ret != Result::SUCCESS) { in RecvBreakInfo()
85 if (ret != Result::SUCCESS) { in RecvBreakInfo()
91 if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in RecvBreakInfo()
104 Result ret; in RecvStepintoInfo()
107 if (ret != Result::SUCCESS || method != "Debugger.paused") { in RecvStepintoInfo()
113 if (ret != Result::SUCCESS) { in RecvStepintoInfo()
119 if (ret != Result::SUCCESS) { in RecvStepintoInfo()
125 if (ret != Result in RecvStepintoInfo()
[all...]
H A Djs_stepout_test.h70 Result ret; in RecvBreakInfo()
73 if (ret != Result::SUCCESS || method != "Debugger.paused") { in RecvBreakInfo()
79 if (ret != Result::SUCCESS) { in RecvBreakInfo()
85 if (ret != Result::SUCCESS) { in RecvBreakInfo()
91 if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in RecvBreakInfo()
104 Result ret; in RecvStepoutInfo()
107 if (ret != Result::SUCCESS || method != "Debugger.paused") { in RecvStepoutInfo()
113 if (ret != Result::SUCCESS) { in RecvStepoutInfo()
119 if (ret != Result::SUCCESS) { in RecvStepoutInfo()
125 if (ret != Result in RecvStepoutInfo()
[all...]
H A Djs_stepout_async_test.h70 Result ret; in RecvBreakInfo()
73 if (ret != Result::SUCCESS || method != "Debugger.paused") { in RecvBreakInfo()
79 if (ret != Result::SUCCESS) { in RecvBreakInfo()
85 if (ret != Result::SUCCESS) { in RecvBreakInfo()
91 if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in RecvBreakInfo()
104 Result ret; in RecvStepoutInfo()
107 if (ret != Result::SUCCESS || method != "Debugger.paused") { in RecvStepoutInfo()
113 if (ret != Result::SUCCESS) { in RecvStepoutInfo()
119 if (ret != Result::SUCCESS) { in RecvStepoutInfo()
125 if (ret != Result in RecvStepoutInfo()
[all...]
H A Djs_heapusage_test.h52 Result ret; in JsHeapusageTest()
55 if (ret != Result::SUCCESS || method != "Debugger.paused") { in JsHeapusageTest()
61 if (ret != Result::SUCCESS) { in JsHeapusageTest()
67 if (ret != Result::SUCCESS) { in JsHeapusageTest()
73 if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in JsHeapusageTest()
83 Result ret; in JsHeapusageTest()
86 if (ret != Result::SUCCESS) { in JsHeapusageTest()
92 if (ret != Result::SUCCESS) { in JsHeapusageTest()
98 if (ret != Result::SUCCESS) { in JsHeapusageTest()
104 if (ret != Result in JsHeapusageTest()
[all...]
H A Djs_stepinto_arrow_test.h107 Result ret; in RecvBreakInfo()
110 if (ret != Result::SUCCESS || method != "Debugger.paused") { in RecvBreakInfo()
116 if (ret != Result::SUCCESS) { in RecvBreakInfo()
122 if (ret != Result::SUCCESS) { in RecvBreakInfo()
128 if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in RecvBreakInfo()
141 Result ret; in RecvStepintoInfo()
144 if (ret != Result::SUCCESS || method != "Debugger.paused") { in RecvStepintoInfo()
150 if (ret != Result::SUCCESS) { in RecvStepintoInfo()
156 if (ret != Result::SUCCESS) { in RecvStepintoInfo()
162 if (ret != Result in RecvStepintoInfo()
[all...]
H A Djs_stepinto_and_stepout_test.h99 Result ret; in RecvBreakInfo()
102 if (ret != Result::SUCCESS || method != "Debugger.paused") { in RecvBreakInfo()
108 if (ret != Result::SUCCESS) { in RecvBreakInfo()
114 if (ret != Result::SUCCESS) { in RecvBreakInfo()
120 if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in RecvBreakInfo()
133 Result ret; in RecvStepInfo()
136 if (ret != Result::SUCCESS || method != "Debugger.paused") { in RecvStepInfo()
142 if (ret != Result::SUCCESS) { in RecvStepInfo()
148 if (ret != Result::SUCCESS) { in RecvStepInfo()
154 if (ret != Result in RecvStepInfo()
[all...]
H A Djs_stepinto_test.h97 Result ret; in RecvBreakInfo()
100 if (ret != Result::SUCCESS || method != "Debugger.paused") { in RecvBreakInfo()
106 if (ret != Result::SUCCESS) { in RecvBreakInfo()
112 if (ret != Result::SUCCESS) { in RecvBreakInfo()
118 if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in RecvBreakInfo()
131 Result ret; in RecvStepintoInfo()
134 if (ret != Result::SUCCESS || method != "Debugger.paused") { in RecvStepintoInfo()
140 if (ret != Result::SUCCESS) { in RecvStepintoInfo()
146 if (ret != Result::SUCCESS) { in RecvStepintoInfo()
152 if (ret != Result in RecvStepintoInfo()
[all...]
H A Djs_special_location_breakpoint_test.h67 Result ret; in RecvBreakpointInfo()
70 if (ret != Result::SUCCESS) { in RecvBreakpointInfo()
76 if (ret != Result::SUCCESS) { in RecvBreakpointInfo()
82 if (ret != Result::SUCCESS || breakpointId.find(sourceFile_) == std::string::npos || in RecvBreakpointInfo()
89 if (ret != Result::SUCCESS) { in RecvBreakpointInfo()
95 if (ret != Result::SUCCESS || lineNumber != line) { in RecvBreakpointInfo()
104 Result ret; in RecvHitBreakInfo()
107 if (ret != Result::SUCCESS || method != "Debugger.paused") { in RecvHitBreakInfo()
113 if (ret != Result::SUCCESS) { in RecvHitBreakInfo()
119 if (ret != Result in RecvHitBreakInfo()
[all...]
H A Djs_allocationtrack_recursion_test.h98 Result ret; in RecvReportProgress()
101 if (ret != Result::SUCCESS) { in RecvReportProgress()
110 if (ret != Result::SUCCESS) { in RecvReportProgress()
115 if (ret != Result::SUCCESS) { in RecvReportProgress()
125 Result ret; in RecvReportProgressFinished()
128 if (ret != Result::SUCCESS) { in RecvReportProgressFinished()
138 if (ret != Result::SUCCESS) { in RecvReportProgressFinished()
144 if (ret != Result::SUCCESS) { in RecvReportProgressFinished()
150 if (ret != Result::SUCCESS) { in RecvReportProgressFinished()
161 Result re in RecvReportProgressChunk()
[all...]
H A Djs_allocationtrack_loop_test.h104 Result ret; in RecvReportProgress()
107 if (ret != Result::SUCCESS) { in RecvReportProgress()
116 if (ret != Result::SUCCESS) { in RecvReportProgress()
121 if (ret != Result::SUCCESS) { in RecvReportProgress()
131 Result ret; in RecvReportProgressFinished()
134 if (ret != Result::SUCCESS) { in RecvReportProgressFinished()
144 if (ret != Result::SUCCESS) { in RecvReportProgressFinished()
150 if (ret != Result::SUCCESS) { in RecvReportProgressFinished()
156 if (ret != Result::SUCCESS) { in RecvReportProgressFinished()
167 Result re in RecvReportProgressChunk()
[all...]
H A Djs_allocationtrack_test.h78 Result ret; in RecvReportProgress()
81 if (ret != Result::SUCCESS) { in RecvReportProgress()
90 if (ret != Result::SUCCESS) { in RecvReportProgress()
95 if (ret != Result::SUCCESS) { in RecvReportProgress()
105 Result ret; in RecvReportProgressFinished()
108 if (ret != Result::SUCCESS) { in RecvReportProgressFinished()
118 if (ret != Result::SUCCESS) { in RecvReportProgressFinished()
124 if (ret != Result::SUCCESS) { in RecvReportProgressFinished()
130 if (ret != Result::SUCCESS) { in RecvReportProgressFinished()
141 Result re in RecvReportProgressChunk()
[all...]
/arkcompiler/toolchain/tooling/client/manager/
H A Dwatch_manager.cpp22 using Result = panda::ecmascript::tooling::Result;
84 Result ret = json->GetString("callFrameId", &callFrameId_); in RequestWatchInfo()
85 if (ret != Result::SUCCESS) { in RequestWatchInfo()
129 Result ret; in HandleWatchResult()
132 if (ret != Result::SUCCESS) { in HandleWatchResult()
138 if (ret != Result::SUCCESS) { in HandleWatchResult()
157 Result ret = result->GetString("type", &type); in ShowWatchResult()
158 if (ret != Result::SUCCESS) { in ShowWatchResult()
175 if (ret != Result in ShowWatchResult()
[all...]

Completed in 11 milliseconds

123456789