Home
last modified time | relevance | path

Searched refs:SaveStringToFile (Results 1 – 22 of 22) sorted by relevance

/base/hiviewdfx/hiview/adapter/utility/test/unittest/common/
Dadapter_utility_ohos_test.cpp129 (void)FileUtil::SaveStringToFile(GenerateLogFileName(caseName, SUFFIX_0), "");
175 (void)FileUtil::SaveStringToFile(GenerateLogFileName(caseName, SUFFIX_0), "123");
222 (void)FileUtil::SaveStringToFile(GenerateLogFileName(caseName, SUFFIX_0), "test content");
268 (void)FileUtil::SaveStringToFile(GenerateLogFileName(caseName, SUFFIX_0), "test");
291 (void)FileUtil::SaveStringToFile(GenerateLogFileName(caseName, SUFFIX_0), "1111");
308 (void)FileUtil::SaveStringToFile(GenerateLogFileName(caseName, SUFFIX_0), "test");
311 (void)FileUtil::SaveStringToFile(GenerateLogFileName(caseName, SUFFIX_1), "test");
330 (void)FileUtil::SaveStringToFile(GenerateLogFileName(caseName, SUFFIX_1), "line1");
331 (void)FileUtil::SaveStringToFile(GenerateLogFileName(caseName, SUFFIX_1), "\nline2");
332 (void)FileUtil::SaveStringToFile(GenerateLogFileName(caseName, SUFFIX_1), "\nline3");
[all …]
/base/update/updater/test/unittest/updater_ui_test/lang/
Dui_language_unittest.cpp117 EXPECT_EQ(OHOS::SaveStringToFile(LOCALE_FILE, "en"), true);
120 EXPECT_EQ(OHOS::SaveStringToFile(LOCALE_FILE, "zh"), true);
123 EXPECT_EQ(OHOS::SaveStringToFile(LOCALE_FILE, "es"), true);
126 EXPECT_EQ(OHOS::SaveStringToFile(LOCALE_FILE, "invalid"), true);
178 EXPECT_EQ(OHOS::SaveStringToFile(LOCALE_FILE, GetStrForLang(langType)), true);
193 EXPECT_EQ(OHOS::SaveStringToFile(LOCALE_FILE, "en"), true);
200 EXPECT_EQ(OHOS::SaveStringToFile(LOCALE_FILE, "zh"), true);
214 EXPECT_EQ(OHOS::SaveStringToFile(LOCALE_FILE, "en"), true);
222 EXPECT_EQ(OHOS::SaveStringToFile(LOCALE_FILE, "zh"), true);
237 EXPECT_EQ(OHOS::SaveStringToFile(LOCALE_FILE, "en"), true);
[all …]
/base/hiviewdfx/hiview/base/logstore/test/unittest/common/
Dlog_store_unit_test.cpp93 (void)FileUtil::SaveStringToFile(testLogFile, LOG_CONTENT);
115 (void)FileUtil::SaveStringToFile(GenerateLogFileName(LOG_FILE_START_INDEX), LOG_CONTENT);
133 (void)FileUtil::SaveStringToFile(GenerateLogFileName(index), singleLine);
141 (void)FileUtil::SaveStringToFile(GenerateLogFileName(LOG_FILE_START_INDEX), LOG_CONTENT);
150 (void)FileUtil::SaveStringToFile(GenerateLogFileName(LOG_FILE_START_INDEX), LOG_CONTENT);
/base/useriam/pin_auth/test/unittest/src/
Dpin_auth_register_test.cpp53 SaveStringToFile("/sys/fs/selinux/enforce", "0"); in SetUpTestCase()
60 SaveStringToFile("/sys/fs/selinux/enforce", "1"); in TearDownTestCase()
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/utility/include/
Dfile_util.h35 bool SaveStringToFile(const std::string& file, const std::string& content, bool isTrunc = false);
/base/hiviewdfx/hiview/base/running_status_logger/test/unittest/common/
Drunning_status_logger_test.cpp209 (void)FileUtil::SaveStringToFile(GenerateYesterdayLogFileName(), singleLine);
255 (void)FileUtil::SaveStringToFile(GenerateInvalidFileName(index), singleLine);
/base/hiviewdfx/hiview/plugins/eventservice/test/fuzztest/common/eventservice_fuzzer/
Deventservice_fuzzer.cpp55 return FileUtil::SaveStringToFile(CONFIG_FILE_PATH, content); in CreateConfigFile()
/base/hiviewdfx/hiview/utility/common_utils/test/unittest/common/
Dutility_common_utils_test.cpp83 FileUtil::SaveStringToFile(GenerateLogFileName(caseName, SUFFIX_0), "test");
197 FileUtil::SaveStringToFile(GenerateLogFileName(caseName, SUFFIX_0), "test");
/base/update/updater/test/unittest/updater_ui_test/view/
Dui_view_api_unittest.cpp60 EXPECT_EQ(OHOS::SaveStringToFile(localeFile, "en"), true);
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/
Dhiappevent_write.cpp65 return FileUtil::SaveStringToFile(filePath, event); in WriteEventToFile()
/base/hiviewdfx/hiview/adapter/utility/platform/ohos/
Dfile_util.cpp46 bool SaveStringToFile(const std::string& filePath, const std::string& content, bool truncated) in SaveStringToFile() function
48 return OHOS::SaveStringToFile(filePath, content, truncated); in SaveStringToFile()
/base/hiviewdfx/hiview/base/running_status_logger/
Drunning_status_logger.cpp43 if (!FileUtil::SaveStringToFile(destFile, logInfo + "\n", false)) { in Log()
/base/hiviewdfx/hiview/adapter/utility/include/
Dfile_util.h60 bool SaveStringToFile(const std::string& filePath, const std::string& content, bool truncated = tru…
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/utility/
Dfile_util.cpp147 bool SaveStringToFile(const std::string& file, const std::string& content, bool isTrunc) in SaveStringToFile() function
/base/hiviewdfx/hiview/plugins/hicollie_collector/test/unittest/common/
Dhicollie_collector_test.cpp46 FileUtil::SaveStringToFile(logPath, str); in makeEvent()
/base/security/dataclassification/test/unittest/datatransmitmgr/
DDevSLMgrTest.cpp82 OHOS::SaveStringToFile("/sys/fs/selinux/enforce", "0"); in SetUpTestCase()
87 OHOS::SaveStringToFile("/sys/fs/selinux/enforce", "1"); in TearDownTestCase()
/base/hiviewdfx/hiview/plugins/hicollie_collector/
Dplugin.cpp168 if (!FileUtil::SaveStringToFile(desPath, desText.str())) { in SaveToFile()
/base/hiviewdfx/hiview/adapter/utility/
Dfile_util.cpp125 bool SaveStringToFile(const std::string& filePath, const std::string& content, bool truncated) in SaveStringToFile() function
/base/hiviewdfx/hiview/plugins/freeze_detector/test/unittest/common/
Dfreeze_detector_test.cpp48 FileUtil::SaveStringToFile(logPath, str); in makeEvent()
/base/hiviewdfx/hiview/plugins/eventservice/
Devent_json_parser.cpp383 if (!FileUtil::SaveStringToFile(seqFile, content, true)) { in EventJsonParser()
/base/security/device_security_level/test/dslm_unit_test/
Ddslm_test.cpp95 SaveStringToFile("/sys/fs/selinux/enforce", "0"); in SetUpTestCase()
99 SaveStringToFile("/sys/fs/selinux/enforce", "1"); in TearDownTestCase()
/base/hiviewdfx/hiview/core/
Dhiview_platform.cpp815 FileUtil::SaveStringToFile(pidFile, std::to_string(selfPid)); in ExitHiviewIfNeed()