blob: 97c28f825f0bfa51728fa47d6de0772b449ce906 [file] [log] [blame]
Patrick Venture21be45a2018-11-06 12:08:52 -08001#include "firmware_handler.hpp"
2
3#include <memory>
4
5#include <gtest/gtest.h>
6
7namespace blobs
8{
9TEST(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