/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/ |
H A D | distributeddb_ability_sync_test.cpp | 134 Message msg1(ABILITY_SYNC_MESSAGE); in HWTEST_F() 135 msg1.SetMessageType(TYPE_REQUEST); in HWTEST_F() 136 msg1.SetCopiedObject(packet1); in HWTEST_F() 145 ASSERT_TRUE(AbilitySync::Serialization(buff.data(), bufflen, &msg1) == E_OK); in HWTEST_F() 185 Message msg1(ABILITY_SYNC_MESSAGE); in HWTEST_F() 186 msg1.SetMessageType(TYPE_REQUEST); in HWTEST_F() 187 msg1.SetCopiedObject(packet1); in HWTEST_F() 196 ASSERT_TRUE(AbilitySync::Serialization(buff.data(), bufflen, &msg1) == E_OK); in HWTEST_F() 236 Message msg1(ABILITY_SYNC_MESSAGE); in HWTEST_F() 237 msg1 in HWTEST_F() [all...] |
/foundation/communication/dsoftbus/tests/core/connection/fuzztest/softbusnegotiatemessage_fuzzer/ |
H A D | softbusnegotiatemessage_fuzzer.cpp | 56 SoftBus::NegotiateMessage msg1; in SoftBusNegotiateMessageUnmarshallingFuzzTest() local 57 msg1.SetSessionId(GetData<uint32_t>()); in SoftBusNegotiateMessageUnmarshallingFuzzTest() 58 msg1.SetPreferLinkBandWidth(GetData<int>()); in SoftBusNegotiateMessageUnmarshallingFuzzTest() 59 msg1.SetIsModeStrict(GetData<bool>()); in SoftBusNegotiateMessageUnmarshallingFuzzTest() 60 msg1.SetMessageType(GetData<SoftBus::NegotiateMessageType>()); in SoftBusNegotiateMessageUnmarshallingFuzzTest() 61 msg1.SetIpv4InfoArray({ GetData<SoftBus::Ipv4Info>(), GetData<SoftBus::Ipv4Info>() }); in SoftBusNegotiateMessageUnmarshallingFuzzTest() 63 msg1.SetWifiConfigInfo(configVec); in SoftBusNegotiateMessageUnmarshallingFuzzTest() 64 msg1.SetLegacyP2pGroupConfig("OHOS-1234\n00:01:02:03:04:05\n00001111\n5180"); in SoftBusNegotiateMessageUnmarshallingFuzzTest() 69 msg1.SetInterfaceInfoArray(interfaceArray); in SoftBusNegotiateMessageUnmarshallingFuzzTest() 72 msg1 in SoftBusNegotiateMessageUnmarshallingFuzzTest() [all...] |
/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/data/ |
H A D | negotiate_message_test.cpp | 178 NegotiateMessage msg1; in HWTEST_F() local 179 msg1.SetSessionId(1); in HWTEST_F() 180 msg1.SetIsModeStrict(true); in HWTEST_F() 181 msg1.SetMessageType(NegotiateMessageType::CMD_CONN_V2_REQ_1); in HWTEST_F() 182 msg1.SetIpv4InfoArray({ Ipv4Info("172.30.1.1"), Ipv4Info("172.30.2.1") }); in HWTEST_F() 186 msg1.SetLinkInfo(linkInfo1); in HWTEST_F() 191 msg1.Marshalling(*protocol1, output); in HWTEST_F() 200 EXPECT_EQ(msg1.GetSessionId(), msg2.GetSessionId()); in HWTEST_F() 201 EXPECT_EQ(msg1.GetMessageType(), msg2.GetMessageType()); in HWTEST_F() 202 EXPECT_EQ(msg1 in HWTEST_F() 319 NegotiateMessage msg1; HWTEST_F() local [all...] |
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_builder/src/ |
H A D | lnn_devicename_info_test.cpp | 168 char msg1[] = "{\"KEY_NICK_NAME\":\"nickName\"}"; in HWTEST_F() local 171 OnReceiveDeviceNickName(LNN_INFO_TYPE_NICK_NAME, NETWORKID, nullptr, strlen(msg1) + 1); in HWTEST_F() 172 OnReceiveDeviceNickName(LNN_INFO_TYPE_COUNT, NETWORKID, reinterpret_cast<uint8_t *>(msg1), strlen(msg1) + 1); in HWTEST_F() 173 OnReceiveDeviceNickName(LNN_INFO_TYPE_NICK_NAME, NETWORKID, reinterpret_cast<uint8_t *>(msg1), MSG_ERR_LEN0); in HWTEST_F() 174 OnReceiveDeviceNickName(LNN_INFO_TYPE_NICK_NAME, NETWORKID, reinterpret_cast<uint8_t *>(msg1), strlen(msg1) + 1); in HWTEST_F()
|
H A D | lnn_topo_manager_test.cpp | 391 char *msg1 = const_cast<char *>(MSG_1); in HWTEST_F() local 393 cJSON *json = cJSON_ParseWithLength(msg1, strlen(msg1)); in HWTEST_F() 431 uint8_t *msg1 = reinterpret_cast<uint8_t *>(const_cast<char *>(MSG_2)); in HWTEST_F() local 432 OnReceiveTopoUpdateMsg(LNN_INFO_TYPE_CONNECTION_INFO, NETWORK_ID, msg1, strlen(MSG_2)); in HWTEST_F() 433 OnReceiveTopoUpdateMsg(LNN_INFO_TYPE_TOPO_UPDATE, NETWORK_ID, msg1, 0); in HWTEST_F() 434 OnReceiveTopoUpdateMsg(LNN_INFO_TYPE_TOPO_UPDATE, NETWORK_ID, msg1, strlen(MSG_2)); in HWTEST_F()
|
H A D | lnn_p2p_info_test.cpp | 151 char msg1[PARSE_P2P_INFO_MSG_LEN] = "{\"test\":\"192.168.12.12\"}"; in HWTEST_F() local 152 ret = LnnParseWifiDirectAddrMsg(msg1, wifiDirectAddr, strlen(msg1)); in HWTEST_F()
|
/foundation/arkui/ace_engine/test/unittest/core/event/ |
H A D | gesture_event_hub_test_ng.cpp | 249 std::string msg1; in HWTEST_F() local 250 auto clickCallback = [&msg1](GestureEvent& /* info */) { msg1 = CHECK_TAG_1; }; in HWTEST_F() 264 EXPECT_EQ(msg1, CHECK_TAG_1); in HWTEST_F() 278 msg1 = ""; in HWTEST_F() 279 auto clickCallback3 = [&msg1](GestureEvent& /* info */) { msg1 = CHECK_TAG_1; }; in HWTEST_F() 333 std::string msg1; in HWTEST_F() local 334 auto longPressCallback = [&msg1](GestureEvent& /* info */) { msg1 in HWTEST_F() 566 std::string msg1; HWTEST_F() local [all...] |
H A D | gesture_event_hub_test_ng_property_config.cpp | 183 * onDrop has been called, msg1 = CHECK_TAG_1 in HWTEST_F() 185 std::string msg1; in HWTEST_F() local 186 auto onDrop = [&msg1](const RefPtr<OHOS::Ace::DragEvent>& /* dragEvent */, const std::string& /* param */) { in HWTEST_F() 187 msg1 = CHECK_TAG_1; in HWTEST_F() 193 EXPECT_EQ(msg1, "HELLO"); in HWTEST_F()
|
/foundation/communication/dsoftbus/tests/core/authentication/unittest/ |
H A D | auth_session_message_test.cpp | 353 char *msg1 = JSON_PrintUnformatted(obj1); in HWTEST_F() local 355 EXPECT_TRUE(UnpackDeviceIdJson(msg1, strlen(msg1), &info) == SOFTBUS_CMP_FAIL); in HWTEST_F() 358 EXPECT_TRUE(UnpackDeviceIdJson(msg1, strlen(msg1), &info) == SOFTBUS_CMP_FAIL); in HWTEST_F() 360 EXPECT_TRUE(UnpackDeviceIdJson(msg1, strlen(msg1), &info) == SOFTBUS_OK); in HWTEST_F() 361 if (msg1 != nullptr) { in HWTEST_F() 362 JSON_Free(msg1); in HWTEST_F()
|
/foundation/communication/wifi/wifi/test/wifi_standard/precompiled_macro/ |
H A D | sta_state_machine_test1.cpp | 310 InternalMessagePtr msg1 = std::make_shared<InternalMessage>(); in DealScreenStateChangedEventTest1() local 311 msg1->SetMessageName(WIFI_SVR_CMD_STA_WPA_EAP_UMTS_AUTH_EVENT); in DealScreenStateChangedEventTest1() 312 pStaStateMachine->DealScreenStateChangedEvent(msg1); in DealScreenStateChangedEventTest1()
|
/foundation/distributedhardware/device_manager/test/softbusunittest/ |
H A D | UTTest_softbus_listener.cpp | 783 char msg1[msgLen] = {0}; in HWTEST_F() local 784 softbusListener->OnDeviceTrustedChange(type, msg1, msgLen); in HWTEST_F() 788 softbusListener->OnDeviceTrustedChange(type, msg1, msgLen2); in HWTEST_F()
|
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_sta/ |
H A D | sta_state_machine_test.cpp | 1996 InternalMessagePtr msg1 = std::make_shared<InternalMessage>(); in DealWpaEapSimAuthEventTest() local 1997 msg1->SetMessageName(WIFI_SVR_CMD_STA_WPA_EAP_SIM_AUTH_EVENT); in DealWpaEapSimAuthEventTest() 2000 msg1->SetMessageObj(param); in DealWpaEapSimAuthEventTest() 2001 pStaStateMachine->DealWpaEapSimAuthEvent(msg1); in DealWpaEapSimAuthEventTest() 2016 InternalMessagePtr msg1 = std::make_shared<InternalMessage>(); in DealWpaEapUmtsAuthEventTest() local 2018 msg1->SetMessageName(WIFI_SVR_CMD_STA_WPA_EAP_UMTS_AUTH_EVENT); in DealWpaEapUmtsAuthEventTest() 2019 msg1->SetMessageObj(param); in DealWpaEapUmtsAuthEventTest() 2020 pStaStateMachine->DealWpaEapUmtsAuthEvent(msg1); in DealWpaEapUmtsAuthEventTest() 2057 InternalMessagePtr msg1 = std::make_shared<InternalMessage>(); in DealGetDhcpIpTimeoutTest() local 2058 msg1 in DealGetDhcpIpTimeoutTest() [all...] |
/foundation/CastEngine/castengine_wifi_display/tests/unittest/protocol/rtsp/ |
H A D | rtsp_unit_test.cpp | 438 const std::string &msg1 = "RTSP/1.0 401 Unauthorized\r\nCSeq: 3\r\n"; in HWTEST_F() local 442 response->Parse(msg1 + msg2 + msg3 + msg4); in HWTEST_F() 453 const std::string &msg1 = "RTSP/1.0 401 Unauthorized\r\nCSeq: 3\r\n"; in HWTEST_F() local 457 response->Parse(msg1 + msg2 + msg3 + msg4); in HWTEST_F()
|
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_hal/unittest/ |
H A D | wifi_hal_crpc_server_test.cpp | 130 WifiHalEventCallbackMsg *msg1 = (WifiHalEventCallbackMsg *)calloc(1, sizeof(WifiHalEventCallbackMsg)); in HWTEST_F() local 131 ASSERT_TRUE(msg1 != nullptr); in HWTEST_F() 132 msg1->msg.scanStatus = 101; in HWTEST_F() 133 EXPECT_TRUE(PushBackCallbackMsg(event, msg1) == 0); in HWTEST_F()
|