Searched refs:testFile (Results 1 – 6 of 6) sorted by relevance
/base/startup/init/test/unittest/init/ |
D | cmds_unittest.cpp | 118 const char *testFile = "/data/init_ut/test_dir0"; variable 121 stat(testFile, &info); 128 stat(testFile, &info); 135 const char *testFile = "/data/init_ut/test_dir0/test_file0"; variable 137 int fd = open(testFile, O_CREAT | O_WRONLY, testMode); 141 stat(testFile, &info); 146 stat(testFile, &info);
|
/base/security/appverify/interfaces/innerkits/appverify/test/unittest/src/ |
D | random_access_file_test.cpp | 100 std::string testFile = "./test_hapverify.txt"; variable 102 sumLen = CreatTestZipFile(testFile, si); 104 initRet = hapTestFile2.Init(testFile);
|
/base/hiviewdfx/hiview/base/test/unittest/common/ |
D | event_loop_test.cpp | 252 std::ofstream testFile; variable 253 testFile.open(DataFileEventReader::EVENT_LOG_PATH); 254 testFile << "Writing this to a file.\n"; 255 testFile.close(); 258 testFile.open(DataFileEventReader::EVENT_LOG_PATH); 259 testFile << "Writing this to a file.\n"; 260 testFile.close(); 262 testFile.open(DataFileEventReader::EVENT_LOG_PATH); 263 testFile << "Writing this to a file.\n"; 264 testFile.close();
|
/base/startup/init/test/fuzztest/readfileindir_fuzzer/ |
D | readfileindir_fuzzer.cpp | 25 static int FakeParser(const char *testFile, void *context) in FakeParser() argument 29 fileStream.open(testFile); in FakeParser()
|
/base/update/updater/test/unittest/updater_main_test/ |
D | updater_main_unittest.cpp | 168 const std::string testFile = "/data/sdcard/updater/test_compress.txt"; variable 169 FILE *fp = fopen(testFile.c_str(), "w"); 172 CompressLogs(testFile);
|
/base/startup/init/test/unittest/lite/ |
D | cmd_func_test.cpp | 91 FILE *testFile = fopen(TEST_FILE.c_str(), "w+"); in SetUpTestCase() local 92 if (testFile == nullptr) { in SetUpTestCase() 97 if (fwrite(writeContent.c_str(), writeContent.length(), 1, testFile) != 1) { in SetUpTestCase() 98 (void)fclose(testFile); in SetUpTestCase() 101 (void)fclose(testFile); in SetUpTestCase()
|