/openbmc/phosphor-ipmi-flash/bmc/firmware-handler/test/ |
H A D | firmware_state_uploadinprogress_unittest.cpp | 53 {staticLayoutBlobId, hashBlobId, activeImageBlobId})); in TEST_F() 59 openToInProgress(hashBlobId); in TEST_F() 63 {staticLayoutBlobId, hashBlobId, activeHashBlobId})); in TEST_F() 86 openToInProgress(hashBlobId); in TEST_F() 100 std::vector<std::string> testBlobs = {staticLayoutBlobId, hashBlobId}; in TEST_F() 139 activeHashBlobId, activeImageBlobId, hashBlobId, staticLayoutBlobId}; 157 openToInProgress(hashBlobId); in TEST_F() 188 openToInProgress(hashBlobId); in TEST_F() 231 openToInProgress(hashBlobId); in TEST_F() 261 openToInProgress(hashBlobId); in TEST_F()
|
H A D | firmware_state_verificationpending_unittest.cpp | 80 std::vector<std::string> expectedBlobs = {staticLayoutBlobId, hashBlobId}; in TEST_F() 95 std::vector<std::string> expectedBlobs = {staticLayoutBlobId, hashBlobId}; in TEST_F() 110 std::vector<std::string> expectedBlobs = {staticLayoutBlobId, hashBlobId}; in TEST_F() 122 ASSERT_TRUE(handler->canHandleBlob(hashBlobId)); in TEST_F() 123 EXPECT_TRUE(handler->deleteBlob(hashBlobId)); in TEST_F() 125 std::vector<std::string> expectedBlobs = {staticLayoutBlobId, hashBlobId}; in TEST_F() 143 std::vector<std::string> expectedBlobs = {staticLayoutBlobId, hashBlobId}; in TEST_F() 163 getToVerificationPending(hashBlobId); in TEST_F() 186 getToVerificationPending(hashBlobId); in TEST_F() 194 std::vector<std::string> testBlobs = {staticLayoutBlobId, hashBlobId}; in TEST_F() [all …]
|
H A D | firmware_handler_unittest.cpp | 34 blobs.emplace_back(hashBlobId, std::make_unique<ImageHandlerMock>()); in TEST() 52 blobs.emplace_back(hashBlobId, std::make_unique<ImageHandlerMock>()); in TEST() 72 blobs.emplace_back(hashBlobId, std::make_unique<ImageHandlerMock>()); in TEST() 80 blobs2.emplace_back(hashBlobId, std::make_unique<ImageHandlerMock>()); in TEST() 90 std::vector<std::string> expectedBlobs = {"asdf", hashBlobId}; in TEST() 108 blobs2.emplace_back(hashBlobId, std::make_unique<ImageHandlerMock>()); in TEST() 117 std::vector<std::string> expectedBlobs = {"asdf", hashBlobId}; in TEST()
|
H A D | firmware_close_unittest.cpp | 31 EXPECT_CALL(*hashImageMock, open(StrEq(hashBlobId), std::ios::out)) in TEST_F() 38 hashBlobId)); in TEST_F() 61 EXPECT_CALL(*hashImageMock, open(StrEq(hashBlobId), std::ios::out)) in TEST_F() 68 hashBlobId)); in TEST_F()
|
H A D | firmware_unittest.hpp | 37 blobs.emplace_back(hashBlobId, std::move(image)); in SetUp() 78 if (blobId == hashBlobId) in openToInProgress() 89 if (blobId != hashBlobId) in openToInProgress() 101 if (blobId == hashBlobId) in getToVerificationPending() 129 openToInProgress(hashBlobId); in getToVerificationStartedWitHashBlob() 196 std::vector<std::string> startingBlobs = {staticLayoutBlobId, hashBlobId}; 211 blobs.emplace_back(hashBlobId, std::move(image)); in SetUp() 238 blobs.emplace_back(hashBlobId, std::move(image)); in SetUp()
|
H A D | firmware_state_notyetstarted_tarball_unittest.cpp | 29 blobs.emplace_back(hashBlobId, std::move(image)); in SetUp() 66 if (blobId == hashBlobId) in openToInProgress() 97 UnorderedElementsAreArray({hashBlobId, ubiTarballBlobId})); in TEST_F() 102 {hashBlobId, ubiTarballBlobId, activeImageBlobId})); in TEST_F()
|
H A D | firmware_commit_unittest.cpp | 33 blobs.emplace_back(hashBlobId, std::move(image)); in SetUp() 71 EXPECT_CALL(*imageMock1, open(StrEq(hashBlobId), std::ios::out)) in TEST_F() 78 hashBlobId)); in TEST_F()
|
H A D | firmware_state_notyetstarted_unittest.cpp | 104 EXPECT_CALL(*hashImageMock, open(hashBlobId, std::ios::out)) in TEST_F() 111 EXPECT_TRUE(handler->open(session, flags, hashBlobId)); in TEST_F()
|
H A D | firmware_multiplebundle_unittest.cpp | 36 blobs.emplace_back(hashBlobId, std::move(image)); in SetUp() 140 EXPECT_CALL(*hashImageMock, open(hashBlobId, std::ios::out)) in TEST_F() 142 EXPECT_TRUE(handler->open(session, flags, hashBlobId)); in TEST_F()
|
H A D | firmware_state_updatepending_unittest.cpp | 57 hashBlobId, staticLayoutBlobId})); in TEST_F() 285 ASSERT_TRUE(handler->canHandleBlob(hashBlobId)); in TEST_F() 286 EXPECT_TRUE(handler->deleteBlob(hashBlobId)); in TEST_F()
|
H A D | firmware_state_updatestarted_unittest.cpp | 68 {updateBlobId, hashBlobId, activeImageBlobId, staticLayoutBlobId})); in TEST_F() 115 std::vector<std::string> testBlobs = {staticLayoutBlobId, hashBlobId}; in TEST_F()
|
H A D | firmware_state_updatecompleted_unittest.cpp | 124 std::vector<std::string> testBlobs = {staticLayoutBlobId, hashBlobId}; in TEST_F() 197 {updateBlobId, hashBlobId, activeImageBlobId, staticLayoutBlobId})); in TEST_F()
|
H A D | firmware_stat_unittest.cpp | 29 blobs.emplace_back(hashBlobId, std::make_unique<ImageHandlerMock>()); in TEST()
|
H A D | firmware_canhandle_unittest.cpp | 28 blobs.emplace_back(hashBlobId, std::make_unique<ImageHandlerMock>()); in TEST()
|
H A D | firmware_state_verificationstarted_unittest.cpp | 56 {activeImageBlobId, staticLayoutBlobId, hashBlobId, in TEST_F() 196 std::vector<std::string> testBlobs = {staticLayoutBlobId, hashBlobId}; in TEST_F()
|
H A D | firmware_state_verificationcompleted_unittest.cpp | 95 {verifyBlobId, hashBlobId, activeImageBlobId, staticLayoutBlobId})); in TEST_F() 142 std::vector<std::string> testBlobs = {staticLayoutBlobId, hashBlobId}; in TEST_F()
|
H A D | firmware_open_unittest.cpp | 29 blobs.emplace_back(hashBlobId, std::make_unique<ImageHandlerMock>()); in TEST_P()
|
/openbmc/phosphor-ipmi-flash/tools/test/ |
H A D | tools_updater_unittest.cpp | 372 EXPECT_CALL(handler, sendFile(ipmi_flash::hashBlobId, signature)) in TEST_F() 390 EXPECT_CALL(handler, sendFile(ipmi_flash::hashBlobId, signature)) in TEST_F() 413 EXPECT_CALL(handler, sendFile(ipmi_flash::hashBlobId, signature)) in TEST_F() 431 EXPECT_CALL(handler, sendFile(ipmi_flash::hashBlobId, signature)) in TEST_F() 450 EXPECT_CALL(handler, sendFile(ipmi_flash::hashBlobId, signature)) in TEST_F()
|
/openbmc/phosphor-ipmi-flash/ |
H A D | util.hpp | 10 inline constexpr char hashBlobId[] = "/flash/hash"; variable
|
/openbmc/phosphor-ipmi-flash/bmc/firmware-handler/ |
H A D | firmware_handler.cpp | 65 if (0 == std::count(blobs.begin(), blobs.end(), hashBlobId)) in CreateFirmwareBlobHandler() 389 if (path != hashBlobId) in open() 470 if (path == hashBlobId) in open()
|
H A D | main.cpp | 120 std::move(CreateFileHandlerPack(hashBlobId, HASH_FILENAME))); in createHandler()
|
/openbmc/phosphor-ipmi-flash/tools/ |
H A D | updater.cpp | 79 updater->sendFile(ipmi_flash::hashBlobId, signaturePath); in updaterMain()
|