Home
last modified time | relevance | path

Searched refs:filename (Results 1 - 10 of 10) sorted by relevance

/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_file_test.cpp83 string filename = "/proc/meminfo"; in HWTEST_F() local
84 EXPECT_TRUE(LoadStringFromFile(filename, str)); in HWTEST_F()
87 int fd = open(filename.c_str(), O_RDONLY); in HWTEST_F()
93 bool ret = LoadBufferFromFile(filename, buff); in HWTEST_F()
105 string filename = NULL_STR; in HWTEST_F() local
106 EXPECT_FALSE(LoadStringFromFile(filename, str)); in HWTEST_F()
117 string filename = FILE_PATH; in HWTEST_F() local
119 CreateTestFile(filename, content); in HWTEST_F()
120 EXPECT_TRUE(LoadStringFromFile(filename, str)); in HWTEST_F()
121 RemoveTestFile(filename); in HWTEST_F()
132 string filename = FILE_PATH; HWTEST_F() local
147 string filename = FILE_PATH; HWTEST_F() local
162 string filename = FILE_PATH; HWTEST_F() local
188 string filename = FILE_PATH; HWTEST_F() local
205 string filename = FILE_PATH; HWTEST_F() local
222 string filename = FILE_PATH; HWTEST_F() local
239 string filename = FILE_PATH; HWTEST_F() local
256 string filename = FILE_PATH; HWTEST_F() local
392 string filename = FILE_PATH; HWTEST_F() local
414 string filename = FILE_PATH; HWTEST_F() local
436 string filename = FILE_PATH; HWTEST_F() local
458 string filename = ""; HWTEST_F() local
471 string filename = FILE_PATH; HWTEST_F() local
487 string filename = FILE_PATH; HWTEST_F() local
506 string filename = FILE_PATH; HWTEST_F() local
584 string filename = ""; HWTEST_F() local
596 string filename = FILE_PATH; HWTEST_F() local
610 string filename = FILE_PATH; HWTEST_F() local
625 string filename = FILE_PATH; HWTEST_F() local
640 string filename = FILE_PATH; HWTEST_F() local
659 string filename = FILE_PATH; HWTEST_F() local
687 string filename = FILE_PATH; HWTEST_F() local
718 string filename = ""; HWTEST_F() local
730 string filename = FILE_PATH; HWTEST_F() local
745 string filename = FILE_PATH; HWTEST_F() local
762 string filename = FILE_PATH; HWTEST_F() local
782 string filename = FILE_PATH; HWTEST_F() local
[all...]
H A Dutils_mapped_file_test.cpp114 void ReCreateFile(std::string& filename, const std::string& content) in ReCreateFile() argument
116 filename.insert(0, UtilsMappedFileTest::SUITE_PATH).insert(0, UtilsMappedFileTest::BASE_PATH); in ReCreateFile()
117 RemoveTestFile(filename); in ReCreateFile()
119 ASSERT_TRUE(CreateTestFile(filename, content)); in ReCreateFile()
123 const std::string& filename, in TestFileStatusAndRead()
135 stat(filename.c_str(), stb); in TestFileStatusAndRead()
170 const std::string& filename, in TestFileStat()
182 stat(filename.c_str(), stb); in TestFileStat()
194 const std::string& filename, in TestFileContentEqual()
216 RemoveTestFile(filename); in TestFileContentEqual()
122 TestFileStatusAndRead(MappedFile& mf, const std::string& filename, const std::string& content, struct stat* stb) TestFileStatusAndRead() argument
169 TestFileStat(MappedFile& mf, const std::string& filename, const std::string& content, struct stat* stb) TestFileStat() argument
193 TestFileContentEqual(const MappedFile& mf, const std::string& filename, std::string& filename1, std::string& content1, struct stat* stb) TestFileContentEqual() argument
248 TestFileWrite(const MappedFile& mfNew, const std::string& filename, const std::string& content) TestFileWrite() argument
271 TestTwoFileWrite(const MappedFile& mf, const std::string& filename, const std::string& filename1, const std::string& content1) TestTwoFileWrite() argument
304 std::string filename = "test_read_write_1.txt"; HWTEST_F() local
358 std::string filename = "test_read_write_2.txt"; HWTEST_F() local
413 std::string filename = "test_read_write_3.txt"; HWTEST_F() local
481 std::string filename = "test_read_write_4.txt"; HWTEST_F() local
511 std::string filename = "test_read_write_5.txt"; HWTEST_F() local
542 std::string filename = "test_remap_1.txt"; HWTEST_F() local
581 std::string filename = "test_remap.txt"; HWTEST_F() local
631 std::string filename = "test_remap.txt"; HWTEST_F() local
671 std::string filename = "test_remap.txt"; HWTEST_F() local
709 std::string filename = "test_remap.txt"; HWTEST_F() local
745 std::string filename = "test_remap.txt"; HWTEST_F() local
783 std::string filename = "test_remap.txt"; HWTEST_F() local
851 std::string filename = "test_remap.txt"; HWTEST_F() local
885 std::string filename = "test_remap.txt"; HWTEST_F() local
924 std::string filename = "test_remap.txt"; HWTEST_F() local
950 std::string filename = "test_remap.txt"; HWTEST_F() local
998 std::string filename = "test_invalid_1.txt"; HWTEST_F() local
1027 std::string filename = "test_invalid_2.txt"; HWTEST_F() local
1051 std::string filename = "test_invalid_3.txt"; HWTEST_F() local
1073 std::string filename = "test_invalid_4.txt"; HWTEST_F() local
1102 std::string filename = "test_invalid_6.txt"; HWTEST_F() local
1126 std::string filename = "test_invalid_7.txt"; HWTEST_F() local
1158 std::string filename = "test_invalid_8.txt"; HWTEST_F() local
1184 std::string filename = "test_invalid_9.txt"; HWTEST_F() local
1217 std::string filename = "test_invalid_10.txt"; HWTEST_F() local
1249 std::string filename = "test_adjmod_1.txt"; HWTEST_F() local
1277 std::string filename = "test_adjsize_1.txt"; HWTEST_F() local
1307 std::string filename = "test_adjsize_2.txt"; HWTEST_F() local
1347 std::string filename = "test_move_1.txt"; HWTEST_F() local
1396 std::string filename = "test_move_2.txt"; HWTEST_F() local
1447 std::string filename = "test_move_3.txt"; HWTEST_F() local
1493 std::string filename = "test_move_4.txt"; HWTEST_F() local
[all...]
H A Dutils_directory_test.cpp78 * @tc.desc: get the filename of the path
89 * @tc.desc: get the filename of the path
100 * @tc.desc: get the filename of the path
111 * @tc.desc: get the filename of the path and test whether the filename contains "."
370 string filename = dirpath + "/test.txt"; in HWTEST_F() local
371 FILE *fp = fopen(filename.c_str(), "w"); in HWTEST_F()
374 ret = RemoveFile(filename); in HWTEST_F()
410 string filename = dirpath + "/test.txt"; in HWTEST_F() local
411 res = symlink(targetname.c_str(), filename in HWTEST_F()
437 string filename = dirpath + "/test.txt"; HWTEST_F() local
[all...]
/commonlibrary/c_utils/base/test/unittest/rust/
H A Drust_utils_file_test.rs51 let filename = String::from("/proc/meminfo"); in test_load_string_from_file_001()
52 assert!(file_ex::ffi::RustLoadStringFromFile(&filename, &mut str)); in test_load_string_from_file_001()
55 let file = File::open(&filename).expect("Failed to open file"); in test_load_string_from_file_001()
61 let ret = file_ex::ffi::RustLoadBufferFromFile(&filename, &mut buff); in test_load_string_from_file_001()
69 let filename = NULL_STR.to_string(); in test_load_string_from_file_002()
70 assert!(!file_ex::ffi::RustLoadStringFromFile(&filename, &mut str)); in test_load_string_from_file_002()
77 let filename = FILE_PATH.to_string() + ".003"; in test_load_string_from_file_003()
79 create_test_file(&filename, &content); in test_load_string_from_file_003()
80 assert!(file_ex::ffi::RustLoadStringFromFile(&filename, &mut str)); in test_load_string_from_file_003()
81 let _err = remove_test_file(&filename); in test_load_string_from_file_003()
[all...]
H A Drust_utils_directory_test.rs157 let_cxx_string!(filename = "/data/test_dir/test.txt"); in test_remove_file_001()
158 ret = directory_ex::ffi::RemoveFile(&filename); in test_remove_file_001()
/commonlibrary/c_utils/base/test/benchmarktest/file_benchmark_test/
H A Dfile_benchmark_test.cpp79 void LoadString(string& filename, string& content, benchmark::State& state) in LoadString() argument
83 CreateTestFile(filename, content); in LoadString()
84 int fd = open(filename.c_str(), O_RDONLY); in LoadString()
88 RemoveTestFile(filename); in LoadString()
93 void SaveString(string& filename, string& content, benchmark::State& state) in SaveString() argument
96 int fd = open(filename.c_str(), O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); in SaveString()
102 fd = open(filename.c_str(), O_RDONLY); in SaveString()
105 RemoveTestFile(filename); in SaveString()
118 string filename = "/proc/meminfo"; in BENCHMARK_F() local
121 AssertTrue((LoadStringFromFile(filename, st in BENCHMARK_F()
145 string filename = NULL_STR; BENCHMARK_F() local
162 string filename = FILE_PATH; BENCHMARK_F() local
182 string filename = FILE_PATH; BENCHMARK_F() local
203 string filename = FILE_PATH; BENCHMARK_F() local
223 string filename = FILE_PATH; BENCHMARK_F() local
258 string filename = FILE_PATH; BENCHMARK_F() local
271 string filename = FILE_PATH; BENCHMARK_F() local
285 string filename = FILE_PATH; BENCHMARK_F() local
298 string filename = FILE_PATH; BENCHMARK_F() local
319 string filename = FILE_PATH; BENCHMARK_F() local
492 string filename = FILE_PATH; BENCHMARK_F() local
506 string filename = FILE_PATH; BENCHMARK_F() local
519 string filename = FILE_PATH; BENCHMARK_F() local
544 string filename = ""; BENCHMARK_F() local
562 string filename = FILE_PATH; BENCHMARK_F() local
583 string filename = FILE_PATH; BENCHMARK_F() local
607 string filename = FILE_PATH; BENCHMARK_F() local
704 string filename = ""; BENCHMARK_F() local
721 string filename = FILE_PATH; BENCHMARK_F() local
740 string filename = FILE_PATH; BENCHMARK_F() local
761 string filename = FILE_PATH; BENCHMARK_F() local
781 string filename = FILE_PATH; BENCHMARK_F() local
806 string filename = FILE_PATH; BENCHMARK_F() local
848 string filename = FILE_PATH; BENCHMARK_F() local
890 string filename = ""; BENCHMARK_F() local
907 string filename = FILE_PATH; BENCHMARK_F() local
928 string filename = FILE_PATH; BENCHMARK_F() local
950 string filename = FILE_PATH; BENCHMARK_F() local
979 string filename = FILE_PATH; BENCHMARK_F() local
[all...]
/commonlibrary/c_utils/base/test/benchmarktest/mapped_benchmark_test/
H A Dmapped_benchmark_test.cpp127 void CreateFile(std::string& filename, std::string& content, benchmark::State& state) in CreateFile() argument
129 filename.insert(0, SUITE_PATH).insert(0, BASE_PATH); in CreateFile()
130 RemoveTestFile(filename); in CreateFile()
132 AssertTrue((CreateTestFile(filename, content)), in CreateFile()
133 "CreateTestFile(filename, content) did not equal true as expected.", state); in CreateFile()
163 std::string filename = "test_read_write_1.txt"; in BENCHMARK_F() local
165 CreateFile(filename, content, state); in BENCHMARK_F()
168 MappedFile mf(filename); in BENCHMARK_F()
177 stat(filename.c_str(), &stb); in BENCHMARK_F()
194 LoadStringFromFile(filename, re in BENCHMARK_F()
225 std::string filename = "test_read_write_2.txt"; BENCHMARK_F() local
282 std::string filename = "test_read_write_3.txt"; BENCHMARK_F() local
347 std::string filename = "test_read_write_4.txt"; BENCHMARK_F() local
383 std::string filename = "test_read_write_5.txt"; BENCHMARK_F() local
413 std::string filename = "test_remap_1.txt"; BENCHMARK_F() local
449 ChangeParamsWhenUnmapped(MappedFile& mf, const int sizeIncrement, std::string& filename, std::string& filename1, benchmark::State& state) ChangeParamsWhenUnmapped() argument
477 std::string filename = "test_remap.txt"; BENCHMARK_F() local
547 std::string filename = "test_remap.txt"; BENCHMARK_F() local
609 std::string filename = "test_remap.txt"; BENCHMARK_F() local
671 std::string filename = "test_remap.txt"; BENCHMARK_F() local
730 std::string filename = "test_remap.txt"; BENCHMARK_F() local
817 std::string filename = "test_remap.txt"; BENCHMARK_F() local
886 std::string filename = "test_remap.txt"; BENCHMARK_F() local
926 std::string filename = "test_remap.txt"; BENCHMARK_F() local
973 std::string filename = "test_remap.txt"; BENCHMARK_F() local
1003 std::string filename = "test_remap.txt"; BENCHMARK_F() local
1060 std::string filename = "test_invalid_1.txt"; BENCHMARK_F() local
1094 std::string filename = "test_invalid_2.txt"; BENCHMARK_F() local
1122 std::string filename = "test_invalid_3.txt"; BENCHMARK_F() local
1149 std::string filename = "test_invalid_4.txt"; BENCHMARK_F() local
1181 std::string filename = "test_invalid_6.txt"; BENCHMARK_F() local
1209 std::string filename = "test_invalid_7.txt"; BENCHMARK_F() local
1253 std::string filename = "test_invalid_8.txt"; BENCHMARK_F() local
1284 std::string filename = "test_invalid_9.txt"; BENCHMARK_F() local
1323 std::string filename = "test_invalid_10.txt"; BENCHMARK_F() local
1363 std::string filename = "test_adjmod_1.txt"; BENCHMARK_F() local
1398 std::string filename = "test_adjsize_1.txt"; BENCHMARK_F() local
1432 std::string filename = "test_adjsize_2.txt"; BENCHMARK_F() local
1476 std::string filename = "test_move_1.txt"; BENCHMARK_F() local
1539 std::string filename = "test_move_2.txt"; BENCHMARK_F() local
1606 std::string filename = "test_move_3.txt"; BENCHMARK_F() local
1664 std::string filename = "test_move_4.txt"; BENCHMARK_F() local
1724 std::string filename = "test_normalize.txt"; BENCHMARK_F() local
1761 std::string filename = "test_clear.txt"; BENCHMARK_F() local
1786 std::string filename = "test_move_assignment.txt"; BENCHMARK_F() local
[all...]
/commonlibrary/memory_utils/libmeminfo/src/
H A Dmeminfo.cpp64 std::string filename = "/proc/" + std::to_string(pid) + "/smaps_rollup"; in GetPssByPid() local
65 std::ifstream in(filename); in GetPssByPid()
67 HILOG_ERROR(LOG_CORE, "File %{public}s not found.\n", filename.c_str()); in GetPssByPid()
92 std::string filename = "/proc/" + std::to_string(pid) + "/smaps_rollup"; in GetSwapPssByPid() local
93 std::ifstream in(filename); in GetSwapPssByPid()
95 HILOG_ERROR(LOG_CORE, "File %{public}s not found.\n", filename.c_str()); in GetSwapPssByPid()
/commonlibrary/ets_utils/js_util_module/container/
H A Dbuild_ts_js.py51 for filename in os.listdir(filepath) :
52 dstpath = os.path.join(input_arguments.dst_file, filename)
53 srcpath = os.path.join(filepath, filename)
/commonlibrary/c_utils/base/test/benchmarktest/directory_benchmark_test/
H A Ddirectory_benchmark_test.cpp86 * @tc.desc: get the filename of the path
101 * @tc.desc: get the filename of the path
116 * @tc.desc: get the filename of the path
131 * @tc.desc: get the filename of the path and test whether the filename contains "."
261 string filename = dirpath + "/test.txt"; in BENCHMARK_F() local
262 FILE *fp = fopen(filename.c_str(), "w"); in BENCHMARK_F()
265 ret = RemoveFile(filename); in BENCHMARK_F()
305 string filename = dirpath + "/test.txt"; in BENCHMARK_F() local
306 res = symlink(targetname.c_str(), filename in BENCHMARK_F()
336 string filename = dirpath + "/test.txt"; BENCHMARK_F() local
[all...]

Completed in 8 milliseconds