Home
last modified time | relevance | path

Searched refs:testFile (Results 1 – 6 of 6) sorted by relevance

/base/startup/init/test/unittest/init/
Dcmds_unittest.cpp118 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/
Drandom_access_file_test.cpp100 std::string testFile = "./test_hapverify.txt"; variable
102 sumLen = CreatTestZipFile(testFile, si);
104 initRet = hapTestFile2.Init(testFile);
/base/hiviewdfx/hiview/base/test/unittest/common/
Devent_loop_test.cpp252 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/
Dreadfileindir_fuzzer.cpp25 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/
Dupdater_main_unittest.cpp168 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/
Dcmd_func_test.cpp91 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()