Home
last modified time | relevance | path

Searched refs:json (Results 1 - 25 of 146) sorted by relevance

123456

/arkcompiler/toolchain/tooling/test/
H A Dpt_json_test.cpp46 std::unique_ptr<PtJson> json = PtJson::Parse(str.c_str()); in HWTEST_F_L0() local
47 ASSERT_TRUE(json->IsBool()); in HWTEST_F_L0()
48 EXPECT_FALSE(json->GetBool()); in HWTEST_F_L0()
49 EXPECT_EQ(json->Stringify(), str); in HWTEST_F_L0()
50 json->ReleaseRoot(); in HWTEST_F_L0()
56 std::unique_ptr<PtJson> json = PtJson::Parse(str.c_str()); in HWTEST_F_L0() local
57 ASSERT_TRUE(json->IsBool()); in HWTEST_F_L0()
58 EXPECT_TRUE(json->GetBool()); in HWTEST_F_L0()
59 EXPECT_EQ(json->Stringify(), str); in HWTEST_F_L0()
60 json in HWTEST_F_L0()
66 std::unique_ptr<PtJson> json = PtJson::Parse(str.c_str()); HWTEST_F_L0() local
76 std::unique_ptr<PtJson> json = PtJson::Parse(str.c_str()); HWTEST_F_L0() local
86 std::unique_ptr<PtJson> json = PtJson::Parse(str.c_str()); HWTEST_F_L0() local
96 std::unique_ptr<PtJson> json = PtJson::Parse(str.c_str()); HWTEST_F_L0() local
106 std::unique_ptr<PtJson> json = PtJson::Parse(str.c_str()); HWTEST_F_L0() local
119 std::unique_ptr<PtJson> json = PtJson::Parse(str.c_str()); HWTEST_F_L0() local
159 std::unique_ptr<PtJson> json; HWTEST_F_L0() local
208 cJSON json; HWTEST_F_L0() local
258 cJSON json; HWTEST_F_L0() local
277 cJSON json; HWTEST_F_L0() local
289 std::unique_ptr<PtJson> json = PtJson::Parse(str.c_str()); HWTEST_F_L0() local
299 std::unique_ptr<PtJson> json = PtJson::Parse(str.c_str()); HWTEST_F_L0() local
[all...]
H A Ddebugger_returns_test.cpp103 std::unique_ptr<PtJson> json; in HWTEST_F_L0() local
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()
163 std::unique_ptr<PtJson> json; in HWTEST_F_L0() local
164 ASSERT_EQ(restartFrameReturns->ToJson()->GetArray("callFrames", &json), Result::SUCCESS); in HWTEST_F_L0()
165 ASSERT_NE(json, nullptr); in HWTEST_F_L0()
166 EXPECT_EQ(json->GetSize(), 1); in HWTEST_F_L0()
213 std::unique_ptr<PtJson> json; in HWTEST_F_L0() local
214 ASSERT_EQ(setScriptSourceReturns->ToJson()->GetArray("callFrames", &json), Result::SUCCESS); in HWTEST_F_L0()
215 ASSERT_NE(json, nullpt in HWTEST_F_L0()
229 std::unique_ptr<PtJson> json; HWTEST_F_L0() local
243 std::unique_ptr<PtJson> json; HWTEST_F_L0() local
266 std::unique_ptr<PtJson> json; HWTEST_F_L0() local
289 std::unique_ptr<PtJson> json; HWTEST_F_L0() local
302 std::unique_ptr<PtJson> json; HWTEST_F_L0() local
330 std::unique_ptr<PtJson> json; HWTEST_F_L0() local
354 std::unique_ptr<PtJson> json; HWTEST_F_L0() local
371 std::unique_ptr<PtJson> json; HWTEST_F_L0() local
383 std::unique_ptr<PtJson> json; HWTEST_F_L0() local
412 std::unique_ptr<PtJson> json; HWTEST_F_L0() local
[all...]
H A Ddebugger_events_test.cpp71 std::unique_ptr<PtJson> json; in HWTEST_F_L0() local
72 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()
105 std::unique_ptr<PtJson> json = paused.ToJson(); in HWTEST_F_L0() local
107 ASSERT_EQ(json->GetObject("params", &params), Result::SUCCESS); in HWTEST_F_L0()
131 std::unique_ptr<PtJson> json = nativeCalling.ToJson(); in HWTEST_F_L0() local
134 ASSERT_EQ(json->GetString("method", &method), Result::SUCCESS); in HWTEST_F_L0()
137 ASSERT_EQ(json->GetObject("params", &params), Result::SUCCESS); in HWTEST_F_L0()
146 std::unique_ptr<PtJson> json in HWTEST_F_L0() local
174 std::unique_ptr<PtJson> json = parsed.ToJson(); HWTEST_F_L0() local
251 std::unique_ptr<PtJson> json = parsed.ToJson(); HWTEST_F_L0() local
322 std::unique_ptr<PtJson> json = consoleProfileFinished.ToJson(); HWTEST_F_L0() local
353 std::unique_ptr<PtJson> json = consoleProfileStarted.ToJson(); HWTEST_F_L0() local
387 std::unique_ptr<PtJson> json = preciseCoverageDeltaUpdate.ToJson(); HWTEST_F_L0() local
423 std::unique_ptr<PtJson> json = heapStatsUpdate.ToJson(); HWTEST_F_L0() local
441 std::unique_ptr<PtJson> json = lastSeenObjectId.ToJson(); HWTEST_F_L0() local
459 std::unique_ptr<PtJson> json = reportHeapSnapshotProgress.ToJson(); HWTEST_F_L0() local
476 std::unique_ptr<PtJson> json = bufferUsage.ToJson(); HWTEST_F_L0() local
506 std::unique_ptr<PtJson> json = dataCollected.ToJson(); HWTEST_F_L0() local
527 std::unique_ptr<PtJson> json = tracingComplete.ToJson(); HWTEST_F_L0() local
561 std::unique_ptr<PtJson> json = mixedStack.ToJson(); HWTEST_F_L0() local
583 std::unique_ptr<PtJson> json = addHeapSnapshotChunk.ToJson(); HWTEST_F_L0() local
[all...]
H A Dpt_returns_test.cpp86 std::unique_ptr<PtJson> json; in HWTEST_F_L0() local
87 ASSERT_EQ(searchInContentReturns->ToJson()->GetArray("result", &json), Result::SUCCESS); in HWTEST_F_L0()
88 ASSERT_NE(json, nullptr); in HWTEST_F_L0()
89 EXPECT_EQ(json->GetSize(), 1); in HWTEST_F_L0()
207 std::unique_ptr<PtJson> json; in HWTEST_F_L0() local
208 ASSERT_EQ(getBestEffortCoverageReturns->ToJson()->GetArray("result", &json), Result::SUCCESS); in HWTEST_F_L0()
209 ASSERT_NE(json, nullptr); in HWTEST_F_L0()
210 EXPECT_EQ(json->GetSize(), 1); in HWTEST_F_L0()
239 std::unique_ptr<PtJson> json; in HWTEST_F_L0() local
240 ASSERT_EQ(takePreciseCoverageReturns->ToJson()->GetArray("result", &json), Resul in HWTEST_F_L0()
266 std::unique_ptr<PtJson> json; HWTEST_F_L0() local
280 std::unique_ptr<PtJson> json; HWTEST_F_L0() local
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/overwrites/
H A Dcdp_debugger_callframe_from_json.py31 def fix_callframe_from_json(json: typing.Dict[str, typing.Any]) -> debugger.CallFrame:
33 call_frame_id=debugger.CallFrameId.from_json(json["callFrameId"]),
34 function_name=str(json["functionName"]),
35 location=debugger.Location.from_json(json["location"]),
36 url=str(json["url"]),
37 scope_chain=[debugger.Scope.from_json(i) for i in json["scopeChain"]],
38 this=runtime.RemoteObject.from_json(json["this"]) if "this" in json else None, # type: ignore
40 debugger.Location.from_json(json["functionLocation"]) if "functionLocation" in json els
[all...]
/arkcompiler/toolchain/tooling/client/manager/
H A Ddomain_manager.cpp35 std::unique_ptr<PtJson> json = PtJson::Parse(decMessage); in DispatcherReply() local
36 if (json == nullptr) { in DispatcherReply()
37 LOGE("json parse error"); in DispatcherReply()
41 if (!json->IsObject()) { in DispatcherReply()
42 LOGE("json parse format error"); in DispatcherReply()
43 json->ReleaseRoot(); in DispatcherReply()
50 ret = json->GetInt("id", &id); in DispatcherReply()
57 ret = json->GetString("method", &wholeMethod); in DispatcherReply()
72 heapProfilerClient_.RecvReply(std::move(json)); in DispatcherReply()
74 profilerClient_.RecvProfilerResult(std::move(json)); in DispatcherReply()
[all...]
H A Dbreakpoint_manager.cpp25 void BreakPointManager::Createbreaklocation(const std::unique_ptr<PtJson> json) in Createbreaklocation() argument
27 if (json == nullptr) { in Createbreaklocation()
28 LOGE("arkdb: json parse error"); in Createbreaklocation()
32 if (!json->IsObject()) { in Createbreaklocation()
33 LOGE("arkdb: json parse format error"); in Createbreaklocation()
34 json->ReleaseRoot(); in Createbreaklocation()
39 ret = json->GetObject("result", &result); in Createbreaklocation()
/arkcompiler/toolchain/tooling/test/testcases/
H A Djs_exception_test.h46 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in JsExceptionTest()
49 ret = json->GetString("method", &method); in JsExceptionTest()
55 ret = json->GetObject("params", &params); in JsExceptionTest()
74 debuggerClient.PausedReply(std::move(json)); in JsExceptionTest()
85 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in JsExceptionTest()
88 ret = json->GetString("method", &method); in JsExceptionTest()
94 ret = json->GetObject("params", &params); in JsExceptionTest()
112 debuggerClient.PausedReply(std::move(json)); in JsExceptionTest()
123 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in JsExceptionTest()
126 ret = json in JsExceptionTest()
[all...]
H A Djs_closure_scope_test.h50 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in JsClosureScopeTest()
53 ret = json->GetString("method", &method); in JsClosureScopeTest()
59 debuggerClient.PausedReply(std::move(json)); in JsClosureScopeTest()
64 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in JsClosureScopeTest()
66 Result ret = json->GetInt("id", &id); in JsClosureScopeTest()
71 runtimeClient.HandleGetProperties(std::move(json), id); in JsClosureScopeTest()
76 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in JsClosureScopeTest()
79 ret = json->GetInt("id", &id); in JsClosureScopeTest()
85 ret = json->GetObject("result", &result); in JsClosureScopeTest()
117 std::unique_ptr<PtJson> json in JsClosureScopeTest()
[all...]
H A Djs_stepout_arrow_test.h38 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in JsStepoutArrowTest()
40 debuggerClient.RecvReply(std::move(json)); in JsStepoutArrowTest()
85 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in RecvBreakInfo() local
88 ret = json->GetString("method", &method); in RecvBreakInfo()
94 ret = json->GetObject("params", &params); in RecvBreakInfo()
113 debuggerClient.PausedReply(std::move(json)); in RecvBreakInfo()
119 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in RecvStepoutInfo() local
122 ret = json->GetString("method", &method); in RecvStepoutInfo()
128 ret = json->GetObject("params", &params); in RecvStepoutInfo()
158 debuggerClient.PausedReply(std::move(json)); in RecvStepoutInfo()
164 std::unique_ptr<PtJson> json = PtJson::Parse(recv); RecvWatchInfo() local
[all...]
H A Djs_heapdump_test.h62 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in RecvReportProgress() local
65 ret = json->GetString("method", &method); in RecvReportProgress()
75 ret = json->GetObject("params", &params); in RecvReportProgress()
95 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in RecvReportProgressFinished() local
98 ret = json->GetString("method", &method); in RecvReportProgressFinished()
108 ret = json->GetObject("params", &params); in RecvReportProgressFinished()
131 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in RecvReportProgressChunk() local
134 ret = json->GetString("method", &method); in RecvReportProgressChunk()
144 ret = json->GetObject("params", &params); in RecvReportProgressChunk()
H A Djs_watch_test.h85 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in RecvWatchDescription() local
88 ret = json->GetInt("id", &id); in RecvWatchDescription()
94 ret = json->GetObject("result", &result); in RecvWatchDescription()
119 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in RecvWatchType() local
122 ret = json->GetInt("id", &id); in RecvWatchType()
128 ret = json->GetObject("result", &result); in RecvWatchType()
153 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in RecvWatchObject() local
156 ret = json->GetInt("id", &id); in RecvWatchObject()
162 ret = json->GetObject("result", &result); in RecvWatchObject()
187 std::unique_ptr<PtJson> json in RecvWatchDescriptionByJack() local
[all...]
H A Djs_stepinto_arrow_test.h38 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in JsStepintoArrowTest()
40 debuggerClient.RecvReply(std::move(json)); in JsStepintoArrowTest()
106 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in RecvBreakInfo() local
109 ret = json->GetString("method", &method); in RecvBreakInfo()
115 ret = json->GetObject("params", &params); in RecvBreakInfo()
134 debuggerClient.PausedReply(std::move(json)); in RecvBreakInfo()
140 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in RecvStepintoInfo() local
143 ret = json->GetString("method", &method); in RecvStepintoInfo()
149 ret = json->GetObject("params", &params); in RecvStepintoInfo()
179 debuggerClient.PausedReply(std::move(json)); in RecvStepintoInfo()
185 std::unique_ptr<PtJson> json = PtJson::Parse(recv); RecvWatchInfo() local
[all...]
H A Djs_watch_other_type_test.h38 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in JsWatchOtherTypeTest()
40 debuggerClient.RecvReply(std::move(json)); in JsWatchOtherTypeTest()
89 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in RecvWatchSubtypeInfo() local
92 ret = json->GetInt("id", &id); in RecvWatchSubtypeInfo()
98 ret = json->GetObject("result", &result); in RecvWatchSubtypeInfo()
140 debuggerClient.RecvReply(std::move(json)); in RecvWatchSubtypeInfo()
146 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in RecvWatchFunctionInfo() local
149 ret = json->GetInt("id", &id); in RecvWatchFunctionInfo()
155 ret = json->GetObject("result", &result); in RecvWatchFunctionInfo()
191 debuggerClient.RecvReply(std::move(json)); in RecvWatchFunctionInfo()
[all...]
H A Djs_watch_basic_type_test.h38 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in JsWatchBasicTypeTest()
40 debuggerClient.RecvReply(std::move(json)); in JsWatchBasicTypeTest()
100 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in RecvWatchVaribleInfo() local
103 ret = json->GetInt("id", &id); in RecvWatchVaribleInfo()
109 ret = json->GetObject("result", &result); in RecvWatchVaribleInfo()
142 debuggerClient.RecvReply(std::move(json)); in RecvWatchVaribleInfo()
148 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in RecvWatchNullInfo() local
151 ret = json->GetInt("id", &id); in RecvWatchNullInfo()
157 ret = json->GetObject("result", &result); in RecvWatchNullInfo()
184 debuggerClient.RecvReply(std::move(json)); in RecvWatchNullInfo()
[all...]
H A Djs_smart_stepInto_test.h69 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in RecvBreakInfo() local
72 ret = json->GetString("method", &method); in RecvBreakInfo()
78 ret = json->GetObject("params", &params); in RecvBreakInfo()
97 debuggerClient.PausedReply(std::move(json)); in RecvBreakInfo()
103 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in RecvStepintoInfo() local
106 ret = json->GetString("method", &method); in RecvStepintoInfo()
112 ret = json->GetObject("params", &params); in RecvStepintoInfo()
142 debuggerClient.PausedReply(std::move(json)); in RecvStepintoInfo()
H A Djs_stepout_test.h69 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in RecvBreakInfo() local
72 ret = json->GetString("method", &method); in RecvBreakInfo()
78 ret = json->GetObject("params", &params); in RecvBreakInfo()
97 debuggerClient.PausedReply(std::move(json)); in RecvBreakInfo()
103 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in RecvStepoutInfo() local
106 ret = json->GetString("method", &method); in RecvStepoutInfo()
112 ret = json->GetObject("params", &params); in RecvStepoutInfo()
143 debuggerClient.PausedReply(std::move(json)); in RecvStepoutInfo()
H A Djs_stepout_async_test.h69 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in RecvBreakInfo() local
72 ret = json->GetString("method", &method); in RecvBreakInfo()
78 ret = json->GetObject("params", &params); in RecvBreakInfo()
97 debuggerClient.PausedReply(std::move(json)); in RecvBreakInfo()
103 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in RecvStepoutInfo() local
106 ret = json->GetString("method", &method); in RecvStepoutInfo()
112 ret = json->GetObject("params", &params); in RecvStepoutInfo()
142 debuggerClient.PausedReply(std::move(json)); in RecvStepoutInfo()
H A Djs_stepinto_and_stepout_test.h38 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in JsStepintoAndStepoutTest()
40 debuggerClient.RecvReply(std::move(json)); in JsStepintoAndStepoutTest()
98 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in RecvBreakInfo() local
101 ret = json->GetString("method", &method); in RecvBreakInfo()
107 ret = json->GetObject("params", &params); in RecvBreakInfo()
126 debuggerClient.PausedReply(std::move(json)); in RecvBreakInfo()
132 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in RecvStepInfo() local
135 ret = json->GetString("method", &method); in RecvStepInfo()
141 ret = json->GetObject("params", &params); in RecvStepInfo()
171 debuggerClient.PausedReply(std::move(json)); in RecvStepInfo()
177 std::unique_ptr<PtJson> json = PtJson::Parse(recv); RecvWatchInfo() local
[all...]
H A Djs_stepinto_test.h38 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in JsStepintoTest()
40 debuggerClient.RecvReply(std::move(json)); in JsStepintoTest()
96 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in RecvBreakInfo() local
99 ret = json->GetString("method", &method); in RecvBreakInfo()
105 ret = json->GetObject("params", &params); in RecvBreakInfo()
124 debuggerClient.PausedReply(std::move(json)); in RecvBreakInfo()
130 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in RecvStepintoInfo() local
133 ret = json->GetString("method", &method); in RecvStepintoInfo()
139 ret = json->GetObject("params", &params); in RecvStepintoInfo()
169 debuggerClient.PausedReply(std::move(json)); in RecvStepintoInfo()
175 std::unique_ptr<PtJson> json = PtJson::Parse(recv); RecvWatchInfo() local
[all...]
H A Djs_allocationtrack_recursion_test.h97 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in RecvReportProgress() local
100 ret = json->GetString("method", &method); in RecvReportProgress()
109 ret = json->GetObject("params", &params); in RecvReportProgress()
124 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in RecvReportProgressFinished() local
127 ret = json->GetString("method", &method); in RecvReportProgressFinished()
137 ret = json->GetObject("params", &params); in RecvReportProgressFinished()
160 std::unique_ptr<PtJson> json = PtJson::Parse(recv); in RecvReportProgressChunk() local
163 ret = json->GetString("method", &method); in RecvReportProgressChunk()
173 ret = json->GetObject("params", &params); in RecvReportProgressChunk()
/arkcompiler/toolchain/test/autotest/aw/api/
H A Ddebugger_api.py20 import json namespace
58 response = json.loads(response)
64 response = json.loads(response)
77 response = json.loads(response)
89 response = json.loads(response)
102 response = json.loads(response)
109 response = json.loads(response)
115 response = json.loads(response)
124 assert json.loads(response) == {"method": "Debugger.resumed", "params": {}}
127 response = json
[all...]
H A Druntime_api.py20 import json namespace
42 response = json.loads(response)
51 response = json.loads(response)
60 response = json.loads(response)
73 response = json.loads(response)
/arkcompiler/toolchain/tooling/client/domain/
H A Druntime_client.cpp178 void RuntimeClient::RecvReply(std::unique_ptr<PtJson> json) in RecvReply() argument
180 if (json == nullptr) { in RecvReply()
181 LOGE("arkdb: json parse error"); in RecvReply()
185 if (!json->IsObject()) { in RecvReply()
186 LOGE("arkdb: json parse format error"); in RecvReply()
187 json->ReleaseRoot(); in RecvReply()
192 Result ret = json->GetInt("id", &replyId); in RecvReply()
199 HandleHeapUsage(std::move(json)); in RecvReply()
201 HandleGetProperties(std::move(json), replyId); in RecvReply()
203 LOGI("arkdb: Runtime replay message is %{public}s", json in RecvReply()
225 HandleGetProperties(std::unique_ptr<PtJson> json, const int &id) HandleGetProperties() argument
282 HandleHeapUsage(std::unique_ptr<PtJson> json) HandleHeapUsage() argument
[all...]
H A Ddebugger_client.cpp316 void DebuggerClient::RecvReply(std::unique_ptr<PtJson> json) in RecvReply() argument
318 if (json == nullptr) { in RecvReply()
319 LOGE("arkdb: json parse error"); in RecvReply()
323 if (!json->IsObject()) { in RecvReply()
324 LOGE("arkdb: json parse format error"); in RecvReply()
325 json->ReleaseRoot(); in RecvReply()
331 Result ret = json->GetString("method", &wholeMethod); in RecvReply()
345 PausedReply(std::move(json)); in RecvReply()
348 sourceManager.EnableReply(std::move(json)); in RecvReply()
354 LOGI("arkdb: Debugger reply is: %{public}s", json in RecvReply()
359 PausedReply(const std::unique_ptr<PtJson> json) PausedReply() argument
403 handleResponse(std::unique_ptr<PtJson> json) handleResponse() argument
[all...]

Completed in 11 milliseconds

123456