/arkcompiler/toolchain/websocket/test/ |
H A D | frame_builder_test.cpp | 24 // final message, ping-frame opcode 45 auto message = frameBuilder.Build(); in HWTEST_F() local 49 ASSERT_EQ(message.size(), EXPECTED_MESSAGE_SIZE); in HWTEST_F() 50 ASSERT_EQ(message[0], PING_EXPECTED_FIRST_BYTE); in HWTEST_F() 52 ASSERT_EQ(message[1], 0); in HWTEST_F() 58 auto message = frameBuilder in HWTEST_F() local 65 ASSERT_EQ(message.size(), EXPECTED_MESSAGE_SIZE); in HWTEST_F() 66 ASSERT_EQ(message[0], PING_EXPECTED_FIRST_BYTE); in HWTEST_F() 68 ASSERT_EQ(message[1], static_cast<char>(SHORT_MSG_SIZE)); in HWTEST_F() 69 for (size_t i = HEADER_LENGTH; i < message in HWTEST_F() 77 auto message = frameBuilder HWTEST_F() local 99 auto message = frameBuilder HWTEST_F() local 122 auto message = frameBuilder HWTEST_F() local 143 auto message = frameBuilder.Build(); HWTEST_F() local 156 auto message = frameBuilder HWTEST_F() local [all...] |
/arkcompiler/toolchain/websocket/ |
H A D | frame_builder.cpp | 51 std::string message; in Build() local 52 PushFullHeader(message, 0); in Build() 53 PushPayload(message); in Build() 54 return message; in Build() 57 void ServerFrameBuilder::PushFullHeader(std::string& message, size_t additionalReservedMem) const in PushFullHeader() argument 73 message.reserve(headerBytes + payloadBytes + additionalReservedMem); in PushFullHeader() 74 PushHeader(message, payloadLenField); in PushFullHeader() 75 PushPayloadLength(message, payloadLenField); in PushFullHeader() 78 void ServerFrameBuilder::PushHeader(std::string& message, uint8_t payloadLenField) const in PushHeader() argument 84 message in PushHeader() 92 PushPayloadLength(std::string& message, uint8_t payloadLenField) const PushPayloadLength() argument 121 PushFullHeader(std::string& message, size_t additionalReservedMem) const PushFullHeader() argument [all...] |
H A D | frame_builder.h | 25 inline void PushNumberPerByte(std::string& message, T number) in PushNumberPerByte() argument 31 message.push_back((number >> shiftCount) & 0xff); in PushNumberPerByte() 53 void PushHeader(std::string& message, uint8_t payloadLenField) const; 54 void PushPayloadLength(std::string& message, uint8_t payloadLenField) const; 55 virtual void PushFullHeader(std::string& message, size_t additionalReservedMem) const; 56 virtual void PushPayload(std::string& message) const; 71 void PushMask(std::string& message) const; 72 void PushFullHeader(std::string& message, size_t additionalReservedMem) const override; 73 void PushPayload(std::string& message) const override;
|
/arkcompiler/toolchain/inspector/ |
H A D | connect_inspector.cpp | 49 void OnConnectedMessage(const std::string& message) in OnConnectedMessage() argument 51 if (message.find(CONNECTED_MESSAGE, 0) != std::string::npos) { in OnConnectedMessage() 62 void OnOpenMessage(const std::string& message) in OnOpenMessage() argument 64 if (message.find(OPEN_MESSAGE, 0) != std::string::npos) { in OnOpenMessage() 72 void OnInspectorRecordMessage(const std::string& message) in OnInspectorRecordMessage() argument 74 if (message.find(START_RECORD_MESSAGE, 0) != std::string::npos) { in OnInspectorRecordMessage() 82 if (message.find(STOP_RECORD_MESSAGE, 0) != std::string::npos) { in OnInspectorRecordMessage() 91 void OnMessage(const std::string& message) in OnMessage() argument 94 if (message.empty()) { in OnMessage() 95 LOGE("message i in OnMessage() 224 StoreMessage(int32_t instanceId, const std::string& message) StoreMessage() argument 257 SendLayoutMessage(const std::string& message) SendLayoutMessage() argument 265 SendMessage(const std::string& message) SendMessage() argument 282 SendProfilerMessage(const std::string &message) SendProfilerMessage() argument [all...] |
H A D | ws_server.cpp | 97 std::string message = webSocket_->Decode(); in ContinueRunserver() local 98 if (!message.empty() && webSocket_->IsDecodeDisconnectMsg(message)) { in ContinueRunserver() 99 LOGI("WsServer receiving disconnect msg: %{public}s", message.c_str()); in ContinueRunserver() 101 } else if (!message.empty()) { in ContinueRunserver() 102 LOGI("WsServer OnMessage: %{public}s", message.c_str()); in ContinueRunserver() 103 wsOnMessage_(std::move(message)); in ContinueRunserver() 125 void WsServer::SendReply(const std::string& message) const in SendReply() 132 LOGI("WsServer SendReply: %{public}s", message.c_str()); in SendReply() 133 if (!webSocket_->SendReply(message)) { in SendReply() 141 std::string message = "{\\"id\\":0, \\"method\\":\\"Debugger.clientDisconnect\\", \\"params\\":{}}"; NotifyDisconnectEvent() local [all...] |
H A D | connect_server.cpp | 70 std::string message = webSocket_->Decode(); in RunServer() local 71 if (!message.empty()) { in RunServer() 72 wsOnMessage_(std::move(message)); in RunServer() 89 void ConnectServer::SendMessage(const std::string& message) const in SendMessage() 96 LOGI("ConnectServer SendReply: %{public}s", message.c_str()); in SendMessage() 97 webSocket_->SendReply(message); in SendMessage()
|
/arkcompiler/runtime_core/static_core/dprof/libdprof/dprof/ipc/ |
H A D | ipc_message.cpp | 21 bool SendMessage(int fd, const Message &message) in SendMessage() argument 23 Message::Id messageId = message.GetId(); in SendMessage() 25 PLOG(ERROR, DPROF) << "Cannot send message id"; in SendMessage() 29 uint32_t size = message.GetSize(); in SendMessage() 35 if (size != 0 && !SendAll(fd, message.GetData(), message.GetSize())) { in SendMessage() 36 PLOG(ERROR, DPROF) << "Cannot send message data, size=" << message.GetSize(); in SendMessage() 43 int RecvMessage(int fd, Message &message) in RecvMessage() argument 72 LOG(ERROR, DPROF) << "Canot get message dat in RecvMessage() [all...] |
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/ |
H A D | logger.py | 55 file_formatter = logging.Formatter('%(asctime)s - %(name)s - %(message)s') 57 console_formatter = logging.Formatter('%(message)s') 67 def all(logger: logging.Logger, message: str) -> None: 71 logger.debug(message) 74 def short(logger: logging.Logger, message: str) -> None: 78 logger.info(message) 81 def summary(logger: logging.Logger, message: str) -> None: 85 logger.log(SUMMARY_LOG_LEVEL, message) 88 def default(logger: logging.Logger, message: str) -> None: 92 logger.log(NONE_LOG_LEVEL, message) [all...] |
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/utils/ |
H A D | exceptions.py | 19 def __init__(self, filepath: str, message: str) -> None: 20 super().__init__(f"{filepath}: {message}") 21 self.message = f"{filepath}: {message}" 25 def __init__(self, filepath: str, message: str) -> None: 26 msg = f"{filepath}: {message}" 28 self.message = msg 41 self.message = msg
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/exceptions/ |
H A D | ts_custom_exception.js | 16 constructor(message, code) { 17 super(message); 22 function createCustomErrorA(message, code) { 23 return new CustomErrorA(message, code);
|
H A D | static_function_exception.js | 25 constructor(message) { 26 super(message); 35 function createError(name, message) { 36 const error = new Error(message);
|
H A D | dynamic_function_exception.js | 28 throw { message: 'This is a custom object error', code: 123 }; 37 constructor(message) { 38 super(message);
|
/arkcompiler/ets_runtime/test/fuzztest/exceptionclass_fuzzer/ |
H A D | exceptionclass_fuzzer.cpp | 35 Local<StringRef> message = StringRef::NewFromUtf8(vm, (char*)data, (int)size); in ExpectionErrorFuzzTest() local 36 [[maybe_unused]]Local<JSValueRef> error = Exception::Error(vm, message); in ExpectionErrorFuzzTest() 49 Local<StringRef> message = StringRef::NewFromUtf8(vm, (char*)data, (int)size); in ExpectionRangeErrorFuzzTest() local 50 [[maybe_unused]]Local<JSValueRef> error = Exception::RangeError(vm, message); in ExpectionRangeErrorFuzzTest() 63 Local<StringRef> message = StringRef::NewFromUtf8(vm, (char*)data, (int)size); in ReferenceErrorFuzzTest() local 64 [[maybe_unused]]Local<JSValueRef> error = Exception::ReferenceError(vm, message); in ReferenceErrorFuzzTest() 77 Local<StringRef> message = StringRef::NewFromUtf8(vm, (char*)data, (int)size); in SYNTexErrorFuzzTest() local 78 [[maybe_unused]]Local<JSValueRef> error = Exception::SyntaxError(vm, message); in SYNTexErrorFuzzTest()
|
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/connection/ |
H A D | endpoint_base.cpp | 30 void EndpointBase::HandleMessage(const std::string &message) in HandleMessage() argument 32 JsonObject request(message); in HandleMessage() 34 LOG(INFO, DEBUGGER) << "Invalid request: " << message; in HandleMessage() 38 LOG(DEBUG, DEBUGGER) << "Received " << message; in HandleMessage() 57 LOG(WARNING, DEBUGGER) << "Unsupported method: " << message; in HandleMessage() 61 LOG(INFO, DEBUGGER) << "Response object with no \"id\": " << message; in HandleMessage()
|
H A D | endpoint_base.h | 46 void HandleMessage(const std::string &message); 71 /// Send JSON message. 72 virtual void SendMessage(const std::string &message) = 0; 74 /// Send JSON message created with the provided build function. 80 auto message = std::move(builder).Build(); in Send() local 81 LOG(DEBUG, DEBUGGER) << "Sending " << message; in Send() 82 SendMessage(message); in Send()
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | ecma_macros.h | 219 #define DASSERT_PRINT(cond, message) \ 221 std::cerr << (message) << std::endl; \ 226 #define DASSERT_PRINT(cond, message) static_cast<void>(0) // NOLINT(cppcoreguidelines-macro-usage) 232 #define RASSERT_PRINT(cond, message) \ 234 std::cerr << message << std::endl; \ 370 #define THROW_ERROR(thread, type, message) \ 376 JSHandle<JSObject> _error = _factory->GetJSError(type, message, StackCheck::NO); \ 382 #define THROW_UNCATCHABLE_ERROR(thread, type, message) \ 386 JSHandle<JSObject> _error = _factory->GetJSError(type, message, StackCheck::NO); \ 401 #define THROW_NEW_ERROR_AND_RETURN_HANDLE(thread, errorType, type, message) \ [all...] |
/arkcompiler/ets_frontend/arkguard/test/grammar/target/ |
H A D | newTargetFunction_2.js | 21 constructor(message, cause) { 23 return new.target.new_kntr_k$(message, cause); 26 static new_kntr_k$(message, cause) {
|
/arkcompiler/ets_runtime/test/moduletest/regexpcallthrow/ |
H A D | regexpcallthrow.js | 22 function Test262Error(message) { 23 this.message = message;
|
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/connection/ohos_ws/ |
H A D | ohos_ws_server.cpp | 33 auto message = endpoint_.Decode(); in RunOne() local 34 if (!message.empty()) { in RunOne() 35 if (Endpoint::IsDecodeDisconnectMsg(message)) { in RunOne() 39 HandleMessage(message); in RunOne()
|
/arkcompiler/toolchain/tooling/client/manager/ |
H A D | message_manager.h | 35 void MessagePush(uint32_t sessionId, std::string& message) in MessagePush() argument 38 messageQue_.push(std::make_pair(sessionId, message)); in MessagePush() 42 bool MessagePop(uint32_t& sessionId, std::string& message) in MessagePop() argument 51 message = messageQue_.front().second; in MessagePop()
|
/arkcompiler/toolchain/tooling/client/domain/ |
H A D | runtime_client.cpp | 61 std::string message = request->Stringify(); in HeapusageCommand() local 62 if (session->ClientSendReq(message)) { in HeapusageCommand() 81 std::string message = request->Stringify(); in RuntimeEnableCommand() local 82 if (session->ClientSendReq(message)) { in RuntimeEnableCommand() 101 std::string message = request->Stringify(); in RuntimeDisableCommand() local 102 if (session->ClientSendReq(message)) { in RuntimeDisableCommand() 121 std::string message = request->Stringify(); in RunIfWaitingForDebuggerCommand() local 122 if (session->ClientSendReq(message)) { in RunIfWaitingForDebuggerCommand() 147 std::string message = request->Stringify(); in GetPropertiesCommand() local 148 if (session->ClientSendReq(message)) { in GetPropertiesCommand() 171 std::string message = request->Stringify(); GetPropertiesCommand2() local [all...] |
H A D | debugger_client.cpp | 85 std::string message = request->Stringify(); in BreakCommand() local 86 if (session->ClientSendReq(message)) { in BreakCommand() 111 std::string message = request->Stringify(); in DeleteCommand() local 112 if (session->ClientSendReq(message)) { in DeleteCommand() 130 std::string message = request->Stringify(); in DisableCommand() local 131 if (session->ClientSendReq(message)) { in DisableCommand() 154 std::string message = request->Stringify(); in EnableCommand() local 155 if (session->ClientSendReq(message)) { in EnableCommand() 243 std::string message = request->Stringify(); in ResumeCommand() local 244 if (session->ClientSendReq(message)) { in ResumeCommand() 262 std::string message = request->Stringify(); StepIntoCommand() local 281 std::string message = request->Stringify(); StepOutCommand() local 300 std::string message = request->Stringify(); StepOverCommand() local [all...] |
H A D | heapprofiler_client.cpp | 70 std::string message = request->Stringify(); in HeapDumpCommand() local 71 if (session->ClientSendReq(message)) { in HeapDumpCommand() 91 std::string message = request->Stringify(); in AllocationTrackCommand() local 92 if (session->ClientSendReq(message)) { in AllocationTrackCommand() 112 std::string message = request->Stringify(); in AllocationTrackStopCommand() local 113 if (session->ClientSendReq(message)) { in AllocationTrackStopCommand() 132 std::string message = request->Stringify(); in Enable() local 133 if (session->ClientSendReq(message)) { in Enable() 152 std::string message = request->Stringify(); in Disable() local 153 if (session->ClientSendReq(message)) { in Disable() 173 std::string message = request->Stringify(); Samping() local 193 std::string message = request->Stringify(); SampingStop() local 213 std::string message = request->Stringify(); CollectGarbage() local [all...] |
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/stdlib_templates/ |
H A D | stdlib_templates_generator.py | 89 message = f"Template Syntax Error: ${inv_format_exp.message}" 90 _LOGGER.critical(message) 91 raise InvalidFileFormatException(message=message, filepath=filepath) from inv_format_exp 93 message = f"UnknownTemplateException by filepath {filepath}.\n{common_exp}" 94 _LOGGER.critical(message) 111 message=f"Splitting tests fails: {inv_m_exp.message}"
|
/arkcompiler/toolchain/test/fuzztest/wsserver/wsserversendreply_fuzzer/ |
H A D | wsserversendreply_fuzzer.cpp | 25 void TestFun([[maybe_unused]]std::string &&message) in TestFun() argument 42 std::string message(data, data + size); in WsServerSendReplyFuzzTest() 43 wsServer.SendReply(message); in WsServerSendReplyFuzzTest()
|