/commonlibrary/c_utils/base/test/unittest/common/ |
H A D | utils_file_test.cpp | 86 string str2; in HWTEST_F() local 88 EXPECT_TRUE(LoadStringFromFd(fd, str2)); in HWTEST_F() 90 EXPECT_EQ(str.size(), str2.size()); in HWTEST_F() 95 EXPECT_EQ(str2.size(), buff.size()); in HWTEST_F() 624 string str2(32 * 1024 * 1024, 't'); in HWTEST_F() 629 EXPECT_TRUE(StringExistsInFile(filename, str2, true)); in HWTEST_F() 655 string str2 = "123"; in HWTEST_F() local 665 EXPECT_TRUE(StringExistsInFile(filename, str2, false)); in HWTEST_F() 666 EXPECT_TRUE(StringExistsInFile(filename, str2, true)); in HWTEST_F() 686 string str2 in HWTEST_F() local 760 string str2 = "VERY"; HWTEST_F() local [all...] |
/commonlibrary/c_utils/base/test/benchmarktest/file_benchmark_test/ |
H A D | file_benchmark_test.cpp | 124 string str2; in BENCHMARK_F() local 126 AssertTrue((LoadStringFromFd(fd, str2)), "LoadStringFromFd(fd, str2) did not equal true as expected.", state); in BENCHMARK_F() 128 AssertEqual(str.size(), str2.size(), "str.size() did not equal str2.size() as expected.", state); in BENCHMARK_F() 133 AssertEqual(str2.size(), buff.size(), "str2.size() did not equal buff.size() as expected.", state); in BENCHMARK_F() 759 string str2(MAX_FILE_LENGTH, 't'); in BENCHMARK_F() 766 AssertTrue((StringExistsInFile(filename, str2, true)), in BENCHMARK_F() 767 "StringExistsInFile(filename, str2, tru in BENCHMARK_F() 802 string str2 = "123"; BENCHMARK_F() local 847 string str2 = "\\n\\ris"; BENCHMARK_F() local 948 string str2 = "VERY"; BENCHMARK_F() local [all...] |
/commonlibrary/ets_utils/js_api_module/convertxml/test/ |
H A D | test_convertxml.cpp | 327 std::string str2 = "<note importance=\"high\" logged=\"true\"><todo>Play</todo></note>"; in HWTEST_F() local 328 std::string strXml = str1 + str2; in HWTEST_F() 344 std::string str2 = "<note importance=\"high\" logged=\"true\"><todo>Play</todo></note>"; in HWTEST_F() local 345 std::string strXml = str1 + str2; in HWTEST_F() 365 std::string str2 = "<note importance=\"high\" logged=\"true\"><todo>Play</todo></note>"; in HWTEST_F() local 366 std::string strXml = str1 + str2; in HWTEST_F() 387 std::string str2 = "<title>Happy</title> <todo>Work</todo> <todo>Play</todo></note>"; in HWTEST_F() local 388 std::string strXml = str1 + str2; in HWTEST_F() 404 std::string str2 = "<title>Happy</title> <todo>Work</todo> <todo>Play</todo></note>"; in HWTEST_F() local 405 std::string strXml = str1 + str2; in HWTEST_F() 425 std::string str2 = "<title>Happy</title> <todo>Work</todo> <todo>Play</todo></note>"; HWTEST_F() local 461 std::string str2 = "<note importance=\\"high\\" logged=\\"true\\"><todo>Play</todo></note>"; HWTEST_F() local 493 std::string str2 = "<note importance=\\"high\\" logged=\\"true\\"><todo>Play</todo></note>"; HWTEST_F() local 525 std::string str2 = "<note importance=\\"high\\" logged=\\"true\\"><todo>Play</todo></note>"; HWTEST_F() local [all...] |
/commonlibrary/c_utils/base/test/benchmarktest/ |
H A D | benchmark_assert.h | 85 void AssertStringEqual(const char* str1, const char* str2, const char* printInfo, benchmark::State& state)
in AssertStringEqual() argument 87 if (strcmp(str1, str2) != 0) {
in AssertStringEqual()
|
/commonlibrary/ets_utils/js_api_module/xml/test/ |
H A D | test_xml.cpp | 1120 std::string str2 = "<note importance=\"high\" logged=\"true\">"; in HWTEST_F() local 1127 std::string strXml = str1 + str2 + str3 + str4 + str5 + str6 + str7 + str8; in HWTEST_F() 1164 std::string str2 = "<note importance=\"high\" logged=\"true\">"; in HWTEST_F() local 1171 std::string strXml = str1 + str2 + str3 + str4 + str5 + str6 + str7 + str8; in HWTEST_F() 1204 std::string str2 = "<note importance=\"high\" logged=\"true\">"; in HWTEST_F() local 1211 std::string strXml = str1 + str2 + str3 + str4 + str5 + str6 + str7 + str8; in HWTEST_F() 1248 std::string str2 = "<note importance=\"high\" logged=\"true\">"; in HWTEST_F() local 1255 std::string strXml = str1 + str2 + str3 + str4 + str5 + str6 + str7 + str8; in HWTEST_F() 1288 std::string str2 = "<note importance=\"high\" logged=\"true\">"; in HWTEST_F() local 1295 std::string strXml = str1 + str2 in HWTEST_F() 1332 std::string str2 = "<note importance=\\"high\\" logged=\\"true\\">"; HWTEST_F() local 1375 std::string str2 = "<note importance=\\"high\\" logged=\\"true\\">"; HWTEST_F() local 1415 std::string str2 = "<note importance=\\"high\\" logged=\\"true\\">"; HWTEST_F() local 1459 std::string str2 = "<note importance=\\"high\\" logged=\\"true\\">"; HWTEST_F() local 1502 std::string str2 = "<note importance=\\"high\\" logged=\\"true\\">"; HWTEST_F() local 1546 std::string str2 = " [\\n<!ATTLIST operand type src \\"dest\\">]><note importance=\\"high\\" logged=\\"true\\">"; HWTEST_F() local 1586 std::string str2 = "<note importance=\\"high\\" logged=\\"true\\">"; HWTEST_F() local 2304 std::string str2 = "<note importance=\\"high\\" logged=\\"true\\">"; HWTEST_F() local 2399 std::string str2 = "http://www.w3.org/TR/html4/"; HWTEST_F() local 2422 std::string str2 = "http://www.w3.org/TR/html4/"; HWTEST_F() local 2445 std::string str2 = "http://www.111/"; HWTEST_F() local 2465 std::string str2 = "http://www.111/"; HWTEST_F() local 2841 std::string str2 = "Hello"; HWTEST_F() local 2856 std::string str2 = "World"; HWTEST_F() local 2869 std::string str2 = "<note importance=\\"high\\" logged=\\"true\\">"; HWTEST_F() local 2890 std::string str2 = "work"; HWTEST_F() local 2905 std::string str2 = "work"; HWTEST_F() local 2918 std::string str2 = "<note importance=\\"high\\" logged=\\"true\\">"; HWTEST_F() local 2981 std::string str2 = " [\\n<!ATTLIST operand type src # \\"dest\\">]><note importance=\\"high\\" logged=\\"true\\">"; HWTEST_F() local 3015 std::string str2 = " [\\n<!ATTLIST operand type src #R \\"dest\\">]><note importance=\\"high\\" logged=\\"true\\">"; HWTEST_F() local 3049 std::string str2 = " [\\n<!ATTLIST operand type src #F>>>>\\"dest\\">]><note importance=\\"high\\" logged=\\"true\\">"; HWTEST_F() local 3083 std::string str2 = " [\\n<!ATTLIST operand type src #III>>>>\\"dest\\">]><note importance=\\"high\\" logged=\\"true\\">"; HWTEST_F() local 3117 std::string str2 = " [\\n<!ATTLIST operand type src #III>>>>()\\"dest\\">]>"; HWTEST_F() local 3152 std::string str2 = " [\\n<!ATTLIST operand type src #III>>>>(|)\\"dest\\">]>"; HWTEST_F() local [all...] |
/commonlibrary/c_utils/base/test/unittest/rust/ |
H A D | rust_utils_file_test.rs | 54 let mut str2 = String::new(); in test_load_string_from_file_001() variables 57 assert!(file_ex::ffi::RustLoadStringFromFd(fd, &mut str2)); in test_load_string_from_file_001() 58 assert_eq!(str.len(), str2.len()); in test_load_string_from_file_001() 63 assert_eq!(str2.len(), buff.len()); in test_load_string_from_file_001() 565 let str2 = "t".repeat(MAX_FILE_LENGTH); in test_count_str_in_file_003() 570 assert_eq!(file_ex::ffi::RustCountStrInFile(&filename, &str2, true), 1); in test_count_str_in_file_003() 578 let str2 = "VERY".to_string(); in test_count_str_in_file_004() 586 assert_eq!(file_ex::ffi::RustCountStrInFile(&filename, &str2, true), 1); in test_count_str_in_file_004() 587 assert_eq!(file_ex::ffi::RustCountStrInFile(&filename, &str2, false), 4); in test_count_str_in_file_004()
|