Home
last modified time | relevance | path

Searched refs:createFile (Results 1 – 4 of 4) sorted by relevance

/openbmc/bios-bmc-smm-error-logger/test/
H A Dexternal_storer_file_test.cpp29 MOCK_METHOD(bool, createFile,
72 EXPECT_TRUE(fileWriter->createFile("valid_file", testJson)); in TEST_F()
79 EXPECT_FALSE(fileWriter->createFile("../invalid_file", testJson)); in TEST_F()
87 fileWriter->createFile("file_to_remove", testJson); in TEST_F()
110 EXPECT_TRUE(fileWriter->createFile("/valid_file_leading_slash", testJson)); in TEST_F()
113 EXPECT_TRUE(fileWriter->createFile("/valid/sub/directories", testJson)); in TEST_F()
121 fileWriter->createFile("/file_to_remove_leading_slash", testJson); in TEST_F()
137 EXPECT_FALSE(fileWriter->createFile("test1/../../test2", testJson)); in TEST_F()
138 EXPECT_FALSE(fileWriter->createFile("/../test3", testJson)); in TEST_F()
139 EXPECT_FALSE(fileWriter->createFile("../app/test4", testJson)); in TEST_F()
[all …]
/openbmc/phosphor-power/phosphor-power-sequencer/test/
H A Dpmbus_driver_device_tests.cpp89 void createFile(const std::string& name, const std::string& contents = "") in createFile() function in PMBusDriverDeviceTests
466 createFile("in13_label"); // PAGE 9 -> file number 13 in TEST_F()
503 createFile("in13_label"); // PAGE 8 -> file number 13 in TEST_F()
551 createFile("in1_label"); // PAGE 6 -> file number 1 in TEST_F()
588 createFile("in1_label"); // PAGE 7 -> file number 1 in TEST_F()
636 createFile("in1_input"); // Not a label file in TEST_F()
637 createFile("in9_lcrit"); // Not a label file in TEST_F()
638 createFile("in_label"); // Invalid voltage label file name in TEST_F()
639 createFile("in9a_label"); // Invalid voltage label file name in TEST_F()
640 createFile("fan3_label"); // Not a voltage label file in TEST_F()
[all …]
/openbmc/bios-bmc-smm-error-logger/src/rde/
H A Dexternal_storer_file.cpp78 bool ExternalStorerFileWriter::createFile(const std::string& folderPath, in createFile() function in bios_bmc_smm_error_logger::rde::ExternalStorerFileWriter
217 if (!fileHandler->createFile(subPath, logEntry)) in processLogEntry()
260 if (!createFile(logService["@odata.id"].get<std::string>(), logService)) in processLogService()
269 return createFile(logService["@odata.id"].get<std::string>() + "/Entries", in processLogService()
288 return createFile(path, jsonPdr); in processOtherTypes()
291 bool ExternalStorerFileInterface::createFile( in createFile() function in bios_bmc_smm_error_logger::rde::ExternalStorerFileInterface
294 return fileHandler->createFile(subPath, jsonPdr); in createFile()
/openbmc/bios-bmc-smm-error-logger/include/rde/
H A Dexternal_storer_file.hpp46 virtual bool createFile(const std::string& folderPath,
66 bool createFile(const std::string& folderPath,
179 bool createFile(const std::string& subPath,