Home
last modified time | relevance | path

Searched refs:hashBlobId (Results 1 – 22 of 22) sorted by relevance

/openbmc/phosphor-ipmi-flash/bmc/firmware-handler/test/
H A Dfirmware_state_uploadinprogress_unittest.cpp53 {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 Dfirmware_state_verificationpending_unittest.cpp80 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 Dfirmware_handler_unittest.cpp34 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 Dfirmware_close_unittest.cpp31 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 Dfirmware_unittest.hpp37 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 Dfirmware_state_notyetstarted_tarball_unittest.cpp29 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 Dfirmware_commit_unittest.cpp33 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 Dfirmware_state_notyetstarted_unittest.cpp104 EXPECT_CALL(*hashImageMock, open(hashBlobId, std::ios::out)) in TEST_F()
111 EXPECT_TRUE(handler->open(session, flags, hashBlobId)); in TEST_F()
H A Dfirmware_multiplebundle_unittest.cpp36 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 Dfirmware_state_updatepending_unittest.cpp57 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 Dfirmware_state_updatestarted_unittest.cpp68 {updateBlobId, hashBlobId, activeImageBlobId, staticLayoutBlobId})); in TEST_F()
115 std::vector<std::string> testBlobs = {staticLayoutBlobId, hashBlobId}; in TEST_F()
H A Dfirmware_state_updatecompleted_unittest.cpp124 std::vector<std::string> testBlobs = {staticLayoutBlobId, hashBlobId}; in TEST_F()
197 {updateBlobId, hashBlobId, activeImageBlobId, staticLayoutBlobId})); in TEST_F()
H A Dfirmware_stat_unittest.cpp29 blobs.emplace_back(hashBlobId, std::make_unique<ImageHandlerMock>()); in TEST()
H A Dfirmware_canhandle_unittest.cpp28 blobs.emplace_back(hashBlobId, std::make_unique<ImageHandlerMock>()); in TEST()
H A Dfirmware_state_verificationstarted_unittest.cpp56 {activeImageBlobId, staticLayoutBlobId, hashBlobId, in TEST_F()
196 std::vector<std::string> testBlobs = {staticLayoutBlobId, hashBlobId}; in TEST_F()
H A Dfirmware_state_verificationcompleted_unittest.cpp95 {verifyBlobId, hashBlobId, activeImageBlobId, staticLayoutBlobId})); in TEST_F()
142 std::vector<std::string> testBlobs = {staticLayoutBlobId, hashBlobId}; in TEST_F()
H A Dfirmware_open_unittest.cpp29 blobs.emplace_back(hashBlobId, std::make_unique<ImageHandlerMock>()); in TEST_P()
/openbmc/phosphor-ipmi-flash/tools/test/
H A Dtools_updater_unittest.cpp372 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 Dutil.hpp10 inline constexpr char hashBlobId[] = "/flash/hash"; variable
/openbmc/phosphor-ipmi-flash/bmc/firmware-handler/
H A Dfirmware_handler.cpp65 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 Dmain.cpp120 std::move(CreateFileHandlerPack(hashBlobId, HASH_FILENAME))); in createHandler()
/openbmc/phosphor-ipmi-flash/tools/
H A Dupdater.cpp79 updater->sendFile(ipmi_flash::hashBlobId, signaturePath); in updaterMain()