Home
last modified time | relevance | path

Searched refs:writeContent (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/base/hiviewdfx/hiview/base/utility/test/unittest/common/
H A Dadapter_utility_ohos_test.cpp352 std::string writeContent = "write content"; variable
353 auto ret = FileUtil::WriteBufferToFd(fd, writeContent.c_str(), writeContent.size());
358 ret = FileUtil::WriteBufferToFd(fd, nullptr, writeContent.size());
360 (void)FileUtil::WriteBufferToFd(fd, "", writeContent.size());
362 (void)FileUtil::WriteBufferToFd(fd, writeContent.c_str(), writeContent.size());
/ohos5.0/base/startup/init/test/unittest/lite/
H A Dcmd_func_test.cpp96 std::string writeContent = "This is a test file for startup subsystem init module."; in SetUpTestCase() local
97 if (fwrite(writeContent.c_str(), writeContent.length(), 1, testFile) != 1) { in SetUpTestCase()
816 std::string writeContent = "mount zpfs /patch/etc:/etc /etc"; in CreateIllegalCfg() local
817 if (fwrite(writeContent.c_str(), writeContent.length(), 1, testCfgFile) != 1) { in CreateIllegalCfg()