8 #include <gtest/gtest.h> 22 static bool updateBios(
const std::string &zipLocation,
bool removeFile =
true);
23 static bool getCurrentVersion(std::string ¤t_version);
24 static void removeInstalleFiles(
const std::string &path);
27 static bool getZipVersion(std::string &new_version, std::string &path);
28 static inline std::function<std::string(std::string)> mCmdFunc = Command::GetStdoutFromCommand;
32 friend class UpdateBIOS_test;
33 FRIEND_TEST(UpdateBIOS_test,getZipBiosVersionOK);
34 FRIEND_TEST(UpdateBIOS_test,getZipBiosVersionKO);
35 FRIEND_TEST(UpdateBIOS_test,getCurrentBiosVersionOK);
36 FRIEND_TEST(UpdateBIOS_test,getCurrentBiosVersionNotValid2Numbers);
37 FRIEND_TEST(UpdateBIOS_test,getCurrentBiosVersionNotValidVersionLetters);
38 FRIEND_TEST(UpdateBIOS_test,updateBiosUnzipError);
39 FRIEND_TEST(UpdateBIOS_test,updateBiosVersionsMatch);
40 FRIEND_TEST(UpdateBIOS_test,updateBiosDifferentVersionsOK);
41 FRIEND_TEST(UpdateBIOS_test,updateBiosNoSuchFileFwuImage);
42 FRIEND_TEST(Commander_Handlers_test,BIOS_version_error_not_reported);
43 FRIEND_TEST(Commander_Handlers_test,BIOS_version_reported_OK);
Defines a class for executing commands and getting output.
Class that triggers a BIOS update.
Definition: bios.h:16