/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bundleresrdb_fuzzer/ |
H A D | bundleresrdb_fuzzer.cpp | 32 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 36 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI() 60 std::string systemState(data, size); in DoSomethingInterestingWithMyAPI() 77 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 84 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 88 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 89 if (size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput() 93 char* ch = static_cast<char*>(malloc(size + 1)); in LLVMFuzzerTestOneInput() 98 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput() [all...] |
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bundleresparser_fuzzer/ |
H A D | bundleresparser_fuzzer.cpp | 32 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 35 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI() 54 std::string label(data, size); in DoSomethingInterestingWithMyAPI() 85 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 92 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 96 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 97 if (size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput() 101 char* ch = static_cast<char*>(malloc(size + 1)); in LLVMFuzzerTestOneInput() 106 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput() [all...] |
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bundleresprocess_fuzzer/ |
H A D | bundleresprocess_fuzzer.cpp | 31 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 33 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI() 43 std::string targetBundleName(data, size); in DoSomethingInterestingWithMyAPI() 75 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 82 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 86 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 87 if (size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput() 91 char* ch = static_cast<char*>(malloc(size + 1)); in LLVMFuzzerTestOneInput() 96 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/ |
H A D | render_service_client_screen_mode_demo.cpp | 38 decltype(supportedModes_.size()) size = supportedModes_.size(); in TestRun() 39 if (size == 0) { in TestRun() 46 for (decltype(supportedModes_.size()) i = 0; i < size; i++) { in TestRun() 94 decltype(supportedModes_.size()) size = supportedModes_.size(); in ChangeScreenActiveMode() 95 if (newScreenModeId >= size) { in ChangeScreenActiveMode() [all...] |
/foundation/multimodalinput/input/util/network/include/ |
H A D | stream_buffer.h | 54 bool Read(char *buf, size_t size); 55 virtual bool Write(const char *buf, size_t size); 105 MMI_HILOGE("[%{public}s] size:%{public}zu count:%{public}d,errCode:%{public}d", in Read() 116 MMI_HILOGE("[%{public}s] size:%{public}zu,count:%{public}d,errCode:%{public}d", in Write() 126 int32_t size = 0; in Read() local 127 if (!Read(size)) { in Read() 128 MMI_HILOGE("Read vector size error"); in Read() 131 if (size < 0 || size > MAX_VECTOR_SIZE) { in Read() 132 MMI_HILOGE("Read vector size in Read() 153 int32_t size = static_cast<int32_t>(data.size()); Write() local [all...] |
/foundation/communication/dsoftbus/tests/core/connection/fuzztest/wifidirectprotocol_fuzzer/ |
H A D | protocol_fuzzer.cpp | 28 static void JsonProtocolParseFuzzTest(const uint8_t *data, size_t size) in JsonProtocolParseFuzzTest() argument 31 (void)size; in JsonProtocolParseFuzzTest() 51 auto size = UN_HEXIFY_LEN(s.length()); in StringToBytes() local 52 uint8_t *buf = new uint8_t[size]; in StringToBytes() 53 auto ret = ConvertHexStringToBytes(buf, size, s.c_str(), s.size()); in StringToBytes() 60 output.insert(output.end(), buf, buf + size); in StringToBytes() 64 static void TlvProtocolParseFuzzTest(const uint8_t *data, size_t size) in TlvProtocolParseFuzzTest() argument 67 (void)size; in TlvProtocolParseFuzzTest() 84 extern "C" int32_t LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument [all...] |
/foundation/communication/ipc/ipc/native/src/core/source/ |
H A D | buffer_object.cpp | 52 /* check whether buffer size is enough, if not, move write/read cursor to head */ in UpdateSendBuffer() 75 /* check whether buffer size is enough, if not, move write/read cursor to head */ in UpdateReceiveBuffer() 90 char *BufferObject::GetSendBufferAndLock(uint32_t size) in GetSendBufferAndLock() argument 92 uint32_t needSize = GetNeedBufferSize(size); in GetSendBufferAndLock() 97 if (!ExpandSendBuffer(size)) { in GetSendBufferAndLock() 107 bool BufferObject::ExpandSendBuffer(uint32_t size) in ExpandSendBuffer() argument 109 uint32_t needSize = GetNeedBufferSize(size); in ExpandSendBuffer() 134 char *BufferObject::GetReceiveBufferAndLock(uint32_t size) in GetReceiveBufferAndLock() argument 136 uint32_t needSize = GetNeedBufferSize(size); in GetReceiveBufferAndLock() 216 uint32_t BufferObject::GetNeedBufferSize(uint32_t size) cons [all...] |
/foundation/distributedhardware/distributed_audio/common/src/ |
H A D | daudio_latency_test.cpp | 56 if (captureBeepTime_.size() >= playBeepTime_.size()) { in AddRecordTime() 57 DHLOGE("Catch record high frame size error, capturesize %{public}zu, playsize %{public}zu.", in AddRecordTime() 58 captureBeepTime_.size(), playBeepTime_.size()); in AddRecordTime() 71 bool DAudioLatencyTest::IsFrameHigh(const int16_t *audioData, const int32_t size, int32_t threshhold) in IsFrameHigh() argument 73 if (size > MAXSIZE) { in IsFrameHigh() 74 DHLOGI("size=%{public}d is over range", size); in IsFrameHigh() 78 for (int32_t i = 0; i < size; in IsFrameHigh() [all...] |
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/text/ |
H A D | text_fontsize_test.cpp | 26 float size = 50; in TestTextFontSize001() local 27 ArkUI_NumberValue value[] = {{.f32 = size}}; in TestTextFontSize001() 30 ASSERT_EQ(nodeAPI->getAttribute(text, NODE_FONT_SIZE)->value[PARAM_0].f32, size); in TestTextFontSize001() 41 float size = 0; in TestTextFontSize002() local 42 ArkUI_NumberValue value[] = {{.f32 = size}}; in TestTextFontSize002() 45 ASSERT_EQ(nodeAPI->getAttribute(text, NODE_FONT_SIZE)->value[PARAM_0].f32, size); in TestTextFontSize002() 56 float size = 1000; in TestTextFontSize003() local 57 ArkUI_NumberValue value[] = {{.f32 = size}}; in TestTextFontSize003() 60 ASSERT_EQ(nodeAPI->getAttribute(text, NODE_FONT_SIZE)->value[PARAM_0].f32, size); in TestTextFontSize003() 71 float size in TestTextFontSize004() local [all...] |
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/ca/ |
H A D | hks_teec.c | 74 static inline void InitializeBlob(struct HksBlob *blob, uint32_t size, uint8_t *data)
in InitializeBlob() argument 78 blob->size = size;
in InitializeBlob() 169 des->tmpref.size = src->tmpRef.size;
in FillUpCommand() 227 dest->tmpRef.size = src->blob.size;
in FillUpArgs() 276 InitializeBlob(¶ms[0].blob, keybox->size, keybox->data);
in HksTeeProvision() 277 InitializeBlob(¶ms[1].blob, challenge->size, challenge->data);
in HksTeeProvision() 278 InitializeBlob(¶ms[2].blob, signature->size, signatur in HksTeeProvision() [all...] |
/foundation/ai/intelligent_voice_framework/utils/ |
H A D | huks_aes_adapter.cpp | 97 .size = static_cast<uint32_t>(strlen(g_aadValue)), in CreateEncryptParamSet() 103 .size = encryptNonce->size, in CreateEncryptParamSet() 143 .size = static_cast<uint32_t>(strlen(g_aadValue)), in CreateDecryptParamSet() 149 .size = decryptNonce->size, in CreateDecryptParamSet() 155 .size = decryptAead->size, in CreateDecryptParamSet() 212 (void)memcpy_s(encryptData.get(), NONCE_SIZE, encryptNonce.data, encryptNonce.size); in Encrypt() 213 outBuffer = CreateArrayBuffer<uint8_t>(outData.size in Encrypt() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/linear_layout/ |
H A D | linear_layout_utils.cpp | 24 float size = 0.0f; in GetChildMainAxisSize() local 26 size = layoutWrapper->GetGeometryNode()->GetMarginFrameSize().Width(); in GetChildMainAxisSize() 28 size = layoutWrapper->GetGeometryNode()->GetMarginFrameSize().Height(); in GetChildMainAxisSize() 30 return size; in GetChildMainAxisSize() 35 float size = 0.0f; in GetChildCrossAxisSize() local 37 size = layoutWrapper->GetGeometryNode()->GetMarginFrameSize().Height(); in GetChildCrossAxisSize() 39 size = layoutWrapper->GetGeometryNode()->GetMarginFrameSize().Width(); in GetChildCrossAxisSize() 41 return size; in GetChildCrossAxisSize() 44 float GetMainAxisSize(const SizeF& size, bool isVertical) in GetMainAxisSize() argument 47 return size in GetMainAxisSize() 197 auto size = layoutWrapper->GetGeometryNode()->GetFrameSize(); Layout() local [all...] |
/foundation/multimedia/camera_framework/test/fuzztest/cameradevice_fuzzer/ |
H A D | camera_device_fuzzer.cpp | 79 void CameraDeviceFuzzTest(uint8_t *rawData, size_t size) in CameraDeviceFuzzTest() argument 81 if (rawData == nullptr || size < NUM_2) { in CameraDeviceFuzzTest() 91 ability->addEntry(OHOS_ABILITY_STREAM_AVAILABLE_EXTEND_CONFIGURATIONS, streams, size / LIMITCOUNT); in CameraDeviceFuzzTest() 122 void CameraDeviceFuzzTestUpdateSetting(uint8_t *rawData, size_t size) in CameraDeviceFuzzTestUpdateSetting() argument 124 if (rawData == nullptr || size < NUM_2) { in CameraDeviceFuzzTestUpdateSetting() 133 ability->addEntry(OHOS_ABILITY_STREAM_AVAILABLE_EXTEND_CONFIGURATIONS, streams, size / LIMITCOUNT); in CameraDeviceFuzzTestUpdateSetting() 157 data.WriteRawData(rawData, size); in CameraDeviceFuzzTestUpdateSetting() 167 void CameraDeviceFuzzTest2Case1(uint8_t *rawData, size_t size) in CameraDeviceFuzzTest2Case1() argument 170 data.WriteRawData(rawData, size); in CameraDeviceFuzzTest2Case1() 181 void CameraDeviceFuzzTest2Case2(uint8_t *rawData, size_t size) in CameraDeviceFuzzTest2Case2() argument 202 CameraDeviceFuzzTest2Case3(uint8_t *rawData, size_t size) CameraDeviceFuzzTest2Case3() argument 225 CameraDeviceFuzzTest2(uint8_t *rawData, size_t size) CameraDeviceFuzzTest2() argument 270 Test3(uint8_t *rawData, size_t size) Test3() argument 306 TestXCollie(uint8_t *rawData, size_t size) TestXCollie() argument 329 TestCameraDeviceServiceCallback(uint8_t *rawData, size_t size) TestCameraDeviceServiceCallback() argument 374 LLVMFuzzerTestOneInput(uint8_t *data, size_t size) LLVMFuzzerTestOneInput() argument [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/picture/ |
H A D | auxiliary_generator.cpp | 43 static inline bool IsSizeVailed(const Size &size) in IsSizeVailed() argument 45 return (size.width != 0 && size.height != 0); in IsSizeVailed() 67 Size size; in SetAuxiliaryDecodeOption() local 68 uint32_t errorCode = decoder->GetImageSize(FIRST_FRAME, size); in SetAuxiliaryDecodeOption() 69 if (errorCode != SUCCESS || !IsSizeVailed(size)) { in SetAuxiliaryDecodeOption() 73 plOptions.desiredSize = size; in SetAuxiliaryDecodeOption() 116 static ImageInfo MakeImageInfo(const Size &size, PixelFormat format, AlphaType alphaType, in MakeImageInfo() argument 120 info.size.width = size in MakeImageInfo() 129 MakeAuxiliaryPictureInfo(AuxiliaryPictureType type, const Size &size, uint32_t rowStride, PixelFormat format, ColorSpace colorSpace) MakeAuxiliaryPictureInfo() argument 213 uint32_t size = auxStream->GetStreamSize(); DecodeJpegFragmentMetadata() local 228 AllocSurfaceBuffer(Size &size, int32_t format, uint32_t &errorCode) AllocSurfaceBuffer() argument 390 Size size = {mainInfo.imageInfo.size.width / denominator, mainInfo.imageInfo.size.height / denominator}; GenerateJpegAuxiliaryPicture() local [all...] |
/foundation/arkui/ace_engine/test/unittest/core/base/ |
H A D | short_cuts_test_ng.cpp | 96 EXPECT_EQ(eventManager->keyboardShortcutNode_.size(), 1); in HWTEST_F() 104 EXPECT_EQ(eventManager->keyboardShortcutNode_.size(), 1); in HWTEST_F() 112 EXPECT_EQ(eventManager->keyboardShortcutNode_.size(), 1); in HWTEST_F() 137 EXPECT_EQ(eventManager->keyboardShortcutNode_.size(), 1); in HWTEST_F() 163 EXPECT_EQ(eventManager->keyboardShortcutNode_.size(), 1); in HWTEST_F() 171 EXPECT_EQ(eventManager->keyboardShortcutNode_.size(), 1); in HWTEST_F() 197 EXPECT_EQ(eventManager->keyboardShortcutNode_.size(), 1); in HWTEST_F() 205 EXPECT_EQ(eventManager->keyboardShortcutNode_.size(), 1); in HWTEST_F() 230 EXPECT_EQ(eventManager->keyboardShortcutNode_.size(), 1); in HWTEST_F() 256 EXPECT_EQ(eventManager->keyboardShortcutNode_.size(), in HWTEST_F() [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/pixel_map_test/ |
H A D | image_pixel_map_switch_test.cpp | 53 opts.size.width = 200;
in HWTEST_F() 54 opts.size.height = 300;
in HWTEST_F() 57 int32_t width = opts.size.width;
in HWTEST_F() 81 opts.size.width = 0;
in HWTEST_F() 82 opts.size.height = 300;
in HWTEST_F() 85 int32_t width = opts.size.width;
in HWTEST_F() 109 opts.size.width = 0;
in HWTEST_F() 110 opts.size.height = 300;
in HWTEST_F() 113 int32_t width = opts.size.width;
in HWTEST_F() 134 opts.size in HWTEST_F() [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsmarshallinghelper_fuzzer/ |
H A D | rsmarshallinghelper_fuzzer.cpp | 65 bool DoUnmarshalling(const uint8_t* data, size_t size) in DoUnmarshalling() argument 73 g_size = size; in DoUnmarshalling() 142 bool DoMarshallingHelper001(const uint8_t* data, size_t size) in DoMarshallingHelper001() argument 150 g_size = size; in DoMarshallingHelper001() 175 bool DoMarshallingHelper002(const uint8_t* data, size_t size) in DoMarshallingHelper002() argument 183 g_size = size; in DoMarshallingHelper002() 204 bool DoMarshallingHelper003(const uint8_t* data, size_t size) in DoMarshallingHelper003() argument 212 g_size = size; in DoMarshallingHelper003() 235 bool DoMarshallingHelper004(const uint8_t* data, size_t size) in DoMarshallingHelper004() argument 243 g_size = size; in DoMarshallingHelper004() 260 DoMarshallingHelper005(const uint8_t* data, size_t size) DoMarshallingHelper005() argument 281 DoMarshallingHelper006(const uint8_t* data, size_t size) DoMarshallingHelper006() argument 312 DoMarshallingHelper007(const uint8_t* data, size_t size) DoMarshallingHelper007() argument 342 DoMarshallingHelper008(const uint8_t* data, size_t size) DoMarshallingHelper008() argument 373 DoMarshallingHelper009(const uint8_t* data, size_t size) DoMarshallingHelper009() argument 393 DoMarshallingHelper010(const uint8_t* data, size_t size) DoMarshallingHelper010() argument 421 DoMarshallingHelper011(const uint8_t* data, size_t size) DoMarshallingHelper011() argument 451 DoMarshallingHelper012(const uint8_t* data, size_t size) DoMarshallingHelper012() argument 509 DoMarshallingHelper013(const uint8_t* data, size_t size) DoMarshallingHelper013() argument 552 LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) LLVMFuzzerTestOneInput() argument [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/src/ |
H A D | webp_exif_metadata_accessor.cpp | 111 IMAGE_LOGE("Image stream does not find chunk size."); in ReadBlob() 114 const uint32_t size = chunkSize.ReadUInt32(0, littleEndian); in ReadBlob() local 116 if (size > imgSize - imageStream_->Tell()) { in ReadBlob() 123 imageStream_->Seek(size, SeekPos::CURRENT); in ReadBlob() 124 if (size % WEBP_BUF_SIZE) { in ReadBlob() 130 blob.Resize(size); in ReadBlob() 131 imageStream_->Read(blob.Data(), size); in ReadBlob() 159 IMAGE_LOGE("Image stream does not find vp8x size."); in CheckChunkVp8x() 162 const uint32_t size = GetULong(chunkSize, littleEndian); in CheckChunkVp8x() local 163 if (size > WEBP_MAX_CHUNKDATA_SIZ in CheckChunkVp8x() 192 uint32_t size = 0; Write() local 208 GetExifEncodeBlob(uint8_t **dataBlob, uint32_t &size) GetExifEncodeBlob() argument 229 uint32_t size = 0; WriteBlob() local 238 GetExifBlob(const DataBuf &blob, uint8_t **dataBlob, uint32_t &size) GetExifBlob() argument 251 UpdateData(uint8_t *dataBlob, uint32_t size) UpdateData() argument 277 UpdateExifMetadata(BufferMetadataStream &bufStream, uint8_t *dataBlob, uint32_t size) UpdateExifMetadata() argument 338 InsertExifMetadata(BufferMetadataStream &bufStream, uint8_t *dataBlob, uint32_t size) InsertExifMetadata() argument 371 const uint32_t size = chunkHead.ReadUInt32(WEBP_CHUNK_ID_SIZE, littleEndian); GetImageWidthAndHeight() local 456 WriteHeader(BufferMetadataStream &bufStream, uint32_t size, Vp8xAndExifInfo &exifFlag) WriteHeader() argument 524 const uint32_t size = chunkHead.ReadUInt32(WEBP_CHUNK_ID_SIZE, littleEndian); WirteChunkVp8x() local [all...] |
/base/msdp/device_status/utils/ipc/src/ |
H A D | stream_buffer.cpp | 91 bool StreamBuffer::Read(char *buf, size_t size)
in Read() argument 102 if (size == 0) {
in Read() 103 FI_HILOGE("Invalid input parameter size:%{public}zu, errCode:%{public}d", size, PARAM_INPUT_INVALID);
in Read() 107 if (rPos_ + static_cast<int32_t>(size) > wPos_) {
in Read() 112 errno_t ret = memcpy_sp(buf, size, ReadBuf(), size);
in Read() 120 rPos_ += static_cast<int32_t>(size);
in Read() 124 bool StreamBuffer::Write(const char *buf, size_t size)
in Write() argument 135 if (size in Write() [all...] |
/foundation/ability/form_fwk/test/fuzztest/formtaskmgr_fuzzer/ |
H A D | formtaskmgr_fuzzer.cpp | 39 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 46 std::string remoteDeviceId(data, size); in DoSomethingInterestingWithMyAPI() 63 std::string message(data, size); in DoSomethingInterestingWithMyAPI() 66 std::string provider(data, size); in DoSomethingInterestingWithMyAPI() 102 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 109 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 113 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 114 if (size == 0 || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput() 118 char* ch = (char *)malloc(size in LLVMFuzzerTestOneInput() [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/transaction/ |
H A D | rs_uiextension_data_test.cpp | 71 ASSERT_EQ(secData.size(), resultData.size()); in HWTEST_F() 72 ASSERT_EQ(secData[id].size(), resultData[id].size()); in HWTEST_F() 78 ASSERT_EQ(secData[id][0].upperNodes.size(), resultData[id][0].upperNodes.size()); in HWTEST_F() 120 ASSERT_EQ(secData.size(), resultData.size()); in HWTEST_F() 122 ASSERT_EQ(secData[id1].size(), resultData[id1].size()); in HWTEST_F() [all...] |
/foundation/multimodalinput/input/util/network/src/ |
H A D | stream_buffer.cpp | 93 bool StreamBuffer::Read(char *buf, size_t size) in Read() argument 103 if (size == 0) { in Read() 104 MMI_HILOGE("Invalid input parameter size=%{public}zu errCode:%{public}d", size, PARAM_INPUT_INVALID); in Read() 108 if (rPos_ + static_cast<int32_t>(size) > wPos_) { in Read() 113 errno_t ret = memcpy_sp(buf, size, ReadBuf(), size); in Read() 119 rPos_ += static_cast<int32_t>(size); in Read() 124 bool StreamBuffer::Write(const char *buf, size_t size) in Write() argument 134 if (size in Write() [all...] |
/foundation/communication/netmanager_base/test/netpolicymanager/unittest/net_policy_manager_test/ |
H A D | ut_firewall_rule.cpp | 88 EXPECT_EQ(rule.GetAllowedList().size(), static_cast<uint32_t>(0)); in HWTEST_F() 93 EXPECT_EQ(rule.GetAllowedList().size(), static_cast<uint32_t>(1)); in HWTEST_F() 101 EXPECT_EQ(rule.GetAllowedList().size(), uidCount); in HWTEST_F() 104 EXPECT_EQ(rule.GetAllowedList().size(), expectCount); in HWTEST_F() 107 EXPECT_EQ(rule.GetAllowedList().size(), expectCount); in HWTEST_F() 110 EXPECT_EQ(rule.GetAllowedList().size(), --expectCount); in HWTEST_F() 113 EXPECT_EQ(rule.GetAllowedList().size(), --expectCount); in HWTEST_F() 125 EXPECT_EQ(rule.GetDeniedList().size(), static_cast<uint32_t>(0)); in HWTEST_F() 128 EXPECT_EQ(rule.GetDeniedList().size(), static_cast<uint32_t>(1)); in HWTEST_F() 138 EXPECT_EQ(rule.GetDeniedList().size(), uidCoun in HWTEST_F() [all...] |
/foundation/communication/netmanager_ext/test/vpnmanager/unittest/conn_vpn_manager_test/ |
H A D | ut_firewall_rule.cpp | 88 EXPECT_EQ(rule.GetAllowedList().size(), static_cast<uint32_t>(0)); in HWTEST_F() 93 EXPECT_EQ(rule.GetAllowedList().size(), static_cast<uint32_t>(1)); in HWTEST_F() 101 EXPECT_EQ(rule.GetAllowedList().size(), uidCount); in HWTEST_F() 104 EXPECT_EQ(rule.GetAllowedList().size(), expectCount); in HWTEST_F() 107 EXPECT_EQ(rule.GetAllowedList().size(), expectCount); in HWTEST_F() 110 EXPECT_EQ(rule.GetAllowedList().size(), --expectCount); in HWTEST_F() 113 EXPECT_EQ(rule.GetAllowedList().size(), --expectCount); in HWTEST_F() 125 EXPECT_EQ(rule.GetDeniedList().size(), static_cast<uint32_t>(0)); in HWTEST_F() 128 EXPECT_EQ(rule.GetDeniedList().size(), static_cast<uint32_t>(1)); in HWTEST_F() 138 EXPECT_EQ(rule.GetDeniedList().size(), uidCoun in HWTEST_F() [all...] |
/test/ostest/wukong/input_factory/src/ |
H A D | appswitch_input.cpp | 46 if (bundleList.size() == 0 || abilityList.size() == 0) { in OrderInput() 47 ERROR_LOG_STR("bundleList (%u) or abilityList (%u) is 0", bundleList.size(), abilityList.size()); in OrderInput() 69 if (bundleList.size() == 0 || abilityList.size() == 0) { in RandomInput() 70 ERROR_LOG_STR("bundleList (%u) or abilityList (%u) is 0", bundleList.size(), abilityList.size()); in RandomInput() 131 if (bundlelist.size() > 0) { in GetAbilityIndex() 132 if (allowlist.size() > in GetAbilityIndex() [all...] |