| Patrick Venture | 21be45a | 2018-11-06 12:08:52 -0800 | [diff] [blame^] | 1 | #include "firmware_handler.hpp" |
| 2 | |||||
| 3 | #include <memory> | ||||
| 4 | |||||
| 5 | #include <gtest/gtest.h> | ||||
| 6 | |||||
| 7 | namespace blobs | ||||
| 8 | { | ||||
| 9 | TEST(FirmwareHandlerTest, CreateEmptyListVerifyHasHash) | ||||
| 10 | { | ||||
| 11 | auto handler = FirmwareBlobHandler::CreateFirmwareBlobHandler({}, 0); | ||||
| 12 | auto result = handler->getBlobIds(); | ||||
| 13 | EXPECT_EQ(1, result.size()); | ||||
| 14 | EXPECT_STREQ(result.at(0).c_str(), FirmwareBlobHandler::hashBlobID.c_str()); | ||||
| 15 | } | ||||
| 16 | } // namespace blobs | ||||