/base/telephony/sms_mms/test/gtest/ |
D | mms_gtest.cpp | 324 std::string testStr; variable 337 mmsBodyPartHeader.GetContentId(testStr); 338 EXPECT_STREQ(testStr.c_str(), "contentId"); 340 mmsBodyPartHeader.GetContentTransferEncoding(testStr); 341 EXPECT_STREQ(testStr.c_str(), "contentTransferEncoding"); 343 mmsBodyPartHeader.GetContentLocation(testStr); 344 EXPECT_STREQ(testStr.c_str(), "contentLocation"); 355 mmsBodyPartHeader2.GetContentDisposition(testStr); 356 EXPECT_STREQ(testStr.c_str(), "contentDisposition"); 395 std::string testStr; variable [all …]
|
/base/account/os_account/services/accountmgr/test/moduletest/common/ |
D | bundle_manager_adapter_module_test.cpp | 283 std::string testStr = testBundleInfo1.dump(); variable 287 ashmem->WriteToAshmem(testStr.c_str(), testStr.size(), 16); 345 std::string testStr = "test_Parse_info_from_json_fail"; variable 349 ashmem->WriteToAshmem(testStr.c_str(), testStr.size(), 16); 488 std::string testStr = "###123456##"; variable 490 EXPECT_EQ(bundleManagerAdapterProxy->ParseInfo(testStr, bundleInfoTar), false); 496 testStr = testBundleInfo1.dump(); 497 EXPECT_EQ(bundleManagerAdapterProxy->ParseInfo(testStr, bundleInfoTar), true); 504 testStr = testBundleInfo2.dump(); 505 EXPECT_EQ(bundleManagerAdapterProxy->ParseInfo(testStr, bundleInfoTar), true); [all …]
|
/base/security/appverify/interfaces/innerkits/appverify/test/unittest/src/ |
D | hap_byte_buffer_test.cpp | 265 std::string testStr = "Hello, world!!!"; variable 269 ASSERT_FALSE(buffer1.IsEqual(testStr)); 274 buffer1.SetCapacity(static_cast<int>(testStr.size())); 275 ASSERT_FALSE(buffer1.IsEqual(testStr)); 280 for (int32_t i = 0; i < static_cast<int>(testStr.size()); i++) { 281 buffer1.PutByte(i, testStr[i]); 283 ASSERT_TRUE(buffer1.IsEqual(testStr));
|
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/ |
D | native_token_receptor_test.cpp | 78 std::string testStr = R"([)"\ variable 86 receptor.ParserNativeRawData(testStr, tokenInfos); 113 std::string testStr = R"([{"processName":""}])"; variable 118 receptor.ParserNativeRawData(testStr, tokenInfos); 121 testStr = R"([{"processName":"", }])"; 122 receptor.ParserNativeRawData(testStr, tokenInfos); 125 testStr = R"([{"processName":"process6"}, {}])"; 126 receptor.ParserNativeRawData(testStr, tokenInfos); 129 testStr = R"([{"processName":""}, {"":"", ""}])"; 130 receptor.ParserNativeRawData(testStr, tokenInfos); [all …]
|
D | permission_manager_test.cpp | 272 std::string testStr = R"({"dlpPermissions":[)"\ in PrepareJsonData1() local 278 int res = DlpPermissionSetParser::GetInstance().ParserDlpPermsRawData(testStr, dlpPerms); in PrepareJsonData1() 464 std::string testStr = R"({"dlpPermissions":[)"\ in PrepareJsonData2() local 470 int res = DlpPermissionSetParser::GetInstance().ParserDlpPermsRawData(testStr, dlpPerms); in PrepareJsonData2()
|
/base/security/dlp_permission_service/test/fuzztest/dlp_permission/cancelretentionstate_fuzzer/ |
D | cancelretentionstate_fuzzer.cpp | 35 std::string testStr(reinterpret_cast<const char*>(data), size); in FuzzTest() 36 std::vector<std::string> docUriVec = { testStr }; in FuzzTest()
|
/base/security/dlp_permission_service/test/fuzztest/dlp_permission/setretentionstate_fuzzer/ |
D | setretentionstate_fuzzer.cpp | 35 std::string testStr(reinterpret_cast<const char*>(data), size); in FuzzTest() 36 std::vector<std::string> docUriVec = { testStr }; in FuzzTest()
|
/base/security/dlp_permission_service/test/fuzztest/dlp_permission/setretentionstatestub_fuzzer/ |
D | setretentionstatestub_fuzzer.cpp | 37 std::string testStr(reinterpret_cast<const char*>(data), size); in FuzzTest() 38 std::vector<std::string> docUriVec = { testStr }; in FuzzTest()
|
/base/security/dlp_permission_service/test/fuzztest/dlp_permission/cancelretentionstatestub_fuzzer/ |
D | cancelretentionstatestub_fuzzer.cpp | 37 std::string testStr(reinterpret_cast<const char*>(data), size); in FuzzTest() 38 std::vector<std::string> docUriVec = { testStr }; in FuzzTest()
|
/base/startup/init/test/unittest/init/ |
D | utils_unittest.cpp | 77 char testStr[] = ".trim"; variable 78 EXPECT_STREQ(TrimHead(testStr, '.'), "trim");
|
/base/hiviewdfx/faultloggerd/test/unittest/common/ |
D | common_test.cpp | 68 std::string testStr = " abcd "; variable 70 bool ret = TrimAndDupStr(testStr, resStr);
|
/base/telephony/core_service/test/unittest/core_service_gtest/ |
D | sim_core_service_test.cpp | 93 std::string testStr = ""; variable 95 EXPECT_NE(mCoreService->SendEnvelopeCmd(0, testStr), TELEPHONY_ERR_SUCCESS); 96 EXPECT_NE(mCoreService->SendTerminalResponseCmd(0, testStr), TELEPHONY_ERR_SUCCESS); 150 std::string testStr = ""; variable 238 std::string testStr = ""; variable 240 EXPECT_NE(mCoreService->SendEnvelopeCmd(0, testStr), TELEPHONY_ERR_SUCCESS); 241 EXPECT_NE(mCoreService->SendTerminalResponseCmd(0, testStr), TELEPHONY_ERR_SUCCESS); 308 std::string testStr = ""; variable
|
D | zero_branch_test.cpp | 397 std::string testStr = ""; variable 398 simFile->UpdateMsisdnNumber(testStr, testStr, event); 1027 std::string testStr = "12345"; variable 1030 std::shared_ptr<TagService> tagService1 = std::make_shared<TagService>(testStr); 1122 std::string testStr = ""; variable 1152 EXPECT_NE(multiSimController->UpdateDataByIccId(0, testStr), TELEPHONY_ERR_SUCCESS); 1153 EXPECT_NE(multiSimController->InsertData(0, testStr), TELEPHONY_ERR_SUCCESS); 1168 std::u16string testStr = u""; variable 1169 EXPECT_GT(simManager->SetShowNumber(0, testStr), TELEPHONY_ERR_SUCCESS); 1170 EXPECT_GT(simManager->SetShowNumber(INVALID_SLOTID, testStr), TELEPHONY_ERR_SUCCESS); [all …]
|
/base/update/updater/test/unittest/flashd_test/ |
D | flashd_unittest.cpp | 186 std::string testStr = "data/test/test.zip"; variable 187 std::string res = GetFileName(testStr); 190 testStr = "D:\\test\\test.zip"; 191 res = GetFileName(testStr); 194 testStr = "test.zip"; 195 res = GetFileName(testStr);
|
/base/sensors/medical_sensor/interfaces/plugin/test/unittest/ |
D | medical_js_test.cpp | 128 const char testStr[] = "testSymbol"; variable 130 napi_create_string_latin1(env, testStr, strlen(testStr), &result); 389 const char testStr[] = "testSymbol"; variable 391 napi_create_string_latin1(env, testStr, strlen(testStr), &resultSymbol);
|
/base/hiviewdfx/hisysevent/test/moduletest/common/ |
D | hisysevent_c_test.cpp | 169 char testStr[] = "STR_VALUE"; variable 173 .v = { .s = testStr },
|
/base/telephony/state_registry/test/unittest/state_test/ |
D | state_registry_test.cpp | 550 std::u16string testStr = u"test"; variable 551 if (!dataParcel.WriteInterfaceToken(testStr)) {
|
/base/telephony/call_manager/test/unittest/call_manager_gtest/src/ |
D | zero_branch_test.cpp | 292 std::u16string testStr = u""; variable 294 …DelayedSingleton<CellularCallConnection>::GetInstance()->ControlCamera(testStr, 1, 1), TELEPHONY_E… 302 …ASSERT_NE(DelayedSingleton<CellularCallConnection>::GetInstance()->SetPausePicture(testStr), TELEP… 439 std::u16string testStr = u"123"; variable 443 …DelayedSingleton<VideoControlManager>::GetInstance()->ControlCamera(testStr, 1, 1), TELEPHONY_ERR_… 450 …ASSERT_NE(DelayedSingleton<VideoControlManager>::GetInstance()->SetPausePicture(testStr), TELEPHON… 466 …ASSERT_NE(DelayedSingleton<VideoControlManager>::GetInstance()->OpenCamera(testStr, 0, 0), TELEPHO… 467 …ASSERT_NE(DelayedSingleton<VideoControlManager>::GetInstance()->CloseCamera(testStr, 0, 0), TELEPH…
|