8 #include <gtest/gtest.h> 19 static const std::string EP200_1GB_BINARY;
20 static const std::string EP200_4GB_BINARY;
21 static const std::string TV100_BINARY;
22 static const std::string DTD200_BINARY;
27 static bool updateUBoot(
const std::string &zipLocation);
28 static bool getCurrentVersion(std::string ¤t_version);
31 static inline std::function<std::string(std::string)> mCmdFunc = Command::GetStdoutFromCommand;
32 static bool getCurrentBootPartition(std::string ¤t_part);
33 static bool getBinaryPath(
const std::string &zipLocation, std::string &binaryPath);
34 static unsigned long int getTotalKBMemory();
38 friend class UpdateUBoot_test;
39 FRIEND_TEST(UpdateUBoot_test,getCurrentBootPartition0);
40 FRIEND_TEST(UpdateUBoot_test,getCurrentBootPartition1);
41 FRIEND_TEST(UpdateUBoot_test,getCurrentBootPartitionNotValidPattern);
42 FRIEND_TEST(UpdateUBoot_test,getCurrentBootPartitionNotValidPattern2);
43 FRIEND_TEST(UpdateUBoot_test,getCurrentBootPartitionEmptyResponse);
44 FRIEND_TEST(UpdateUBoot_test,getCurrentVersionOK);
45 FRIEND_TEST(UpdateUBoot_test,getCurrentVersionNotValidPattern);
46 FRIEND_TEST(UpdateUBoot_test,getCurrentVersionEmptyResponse);
47 FRIEND_TEST(UpdateUBoot_test,zipError);
48 FRIEND_TEST(UpdateUBoot_test,updateUBootVersionsMatch);
49 FRIEND_TEST(UpdateUBoot_test,updateUBootVersionError);
Defines a class for executing commands and getting output.
Class that triggers a UBoot update.
Definition: uboot.h:16