/openbmc/phosphor-ipmi-flash/bmc/version-handler/test/ |
H A D | version_open_unittest.cpp | 25 std::unique_ptr<blobs::GenericBlobInterface> h; 35 EXPECT_TRUE(h->open(defaultSessionNumber, blobs::read, "blob0")); in TEST_F() 48 EXPECT_TRUE(h->open(i++, blobs::read, blob)); in TEST_F() 55 EXPECT_TRUE(h->open(defaultSessionNumber, blobs::read, "blob0")); in TEST_F() 61 EXPECT_TRUE(h->open(defaultSessionNumber, blobs::read, "blob0")); in TEST_F() 67 EXPECT_TRUE(h->open(0, blobs::read, "blob1")); in TEST_F() 68 EXPECT_TRUE(h->open(1, blobs::read, "blob1")); in TEST_F() 69 EXPECT_TRUE(h->open(2, blobs::read, "blob1")); in TEST_F() 75 EXPECT_FALSE(h->open(0, blobs::read, "blob1")); in TEST_F() 77 EXPECT_TRUE(h->open(0, blobs::read, "blob1")); in TEST_F() [all …]
|
H A D | version_createhandler_unittest.cpp | 14 constexpr std::array blobs{"blob0", "blob1"}; in TEST() local 15 VersionBlobHandler handler(createMockVersionConfigs(blobs)); in TEST() 17 testing::UnorderedElementsAreArray(blobs)); in TEST() 22 constexpr std::array blobs{"blob0"}; in TEST() local 23 auto configs = createMockVersionConfigs(blobs); in TEST() 24 configs.push_back(createMockVersionConfig(blobs[0])); in TEST() 27 testing::UnorderedElementsAreArray(blobs)); in TEST()
|
H A D | version_stat_unittest.cpp | 26 EXPECT_TRUE(h->open(0, blobs::read, "blob0")); in SetUp() 28 blobs::BlobMeta meta; in SetUp() 30 EXPECT_EQ(blobs::StateFlags::committing, meta.blobState); in SetUp() 33 std::unique_ptr<blobs::GenericBlobInterface> h; 45 blobs::BlobMeta meta; in TEST_F() 47 EXPECT_EQ(blobs::StateFlags::commit_error, meta.blobState); in TEST_F() 66 blobs::BlobMeta meta; in TEST_P() 68 EXPECT_EQ(blobs::StateFlags::committed | blobs::StateFlags::open_read, in TEST_P()
|
H A D | version_close_unittest.cpp | 25 std::unique_ptr<blobs::GenericBlobInterface> h; 34 EXPECT_TRUE(h->open(0, blobs::read, "blob0")); in TEST_F() 42 EXPECT_TRUE(h->open(0, blobs::read, "blob0")); in TEST_F() 43 EXPECT_TRUE(h->open(1, blobs::read, "blob0")); in TEST_F() 57 EXPECT_TRUE(h->open(0, blobs::read, "blob0")); in TEST_F() 66 EXPECT_TRUE(h->open(0, blobs::read, "blob0")); in TEST_F() 75 EXPECT_TRUE(h->open(0, blobs::read, "blob0")); in TEST_F()
|
/openbmc/phosphor-ipmi-flash/bmc/log-handler/test/ |
H A D | log_open_unittest.cpp | 39 std::unique_ptr<blobs::GenericBlobInterface> h; 49 EXPECT_TRUE(h->open(defaultSessionNumber, blobs::read, "blob0")); in TEST_F() 62 EXPECT_TRUE(h->open(i++, blobs::read, blob)); in TEST_F() 69 EXPECT_TRUE(h->open(defaultSessionNumber, blobs::read, "blob0")); in TEST_F() 75 EXPECT_TRUE(h->open(defaultSessionNumber, blobs::read, "blob0")); in TEST_F() 81 EXPECT_TRUE(h->open(0, blobs::read, "blob1")); in TEST_F() 82 EXPECT_TRUE(h->open(1, blobs::read, "blob1")); in TEST_F() 83 EXPECT_TRUE(h->open(2, blobs::read, "blob1")); in TEST_F() 89 EXPECT_FALSE(h->open(0, blobs::read, "blob1")); in TEST_F() 91 EXPECT_TRUE(h->open(0, blobs::read, "blob1")); in TEST_F() [all …]
|
H A D | log_createhandler_unittest.cpp | 28 constexpr std::array blobs{"blob0", "blob1"}; in TEST() local 29 LogBlobHandler handler(createMockLogConfigs(blobs)); in TEST() 31 testing::UnorderedElementsAreArray(blobs)); in TEST() 36 constexpr std::array blobs{"blob0"}; in TEST() local 37 auto configs = createMockLogConfigs(blobs); in TEST() 38 configs.push_back(createMockLogConfig(blobs[0])); in TEST() 41 testing::UnorderedElementsAreArray(blobs)); in TEST()
|
H A D | log_stat_unittest.cpp | 40 EXPECT_TRUE(h->open(0, blobs::read, "blob0")); in SetUp() 42 blobs::BlobMeta meta; in SetUp() 44 EXPECT_EQ(blobs::StateFlags::committing, meta.blobState); in SetUp() 47 std::unique_ptr<blobs::GenericBlobInterface> h; 59 blobs::BlobMeta meta; in TEST_F() 61 EXPECT_EQ(blobs::StateFlags::commit_error, meta.blobState); in TEST_F() 80 blobs::BlobMeta meta; in TEST_P() 82 EXPECT_EQ(blobs::StateFlags::committed | blobs::StateFlags::open_read, in TEST_P()
|
H A D | log_close_unittest.cpp | 39 std::unique_ptr<blobs::GenericBlobInterface> h; 48 EXPECT_TRUE(h->open(0, blobs::read, "blob0")); in TEST_F() 56 EXPECT_TRUE(h->open(0, blobs::read, "blob0")); in TEST_F() 57 EXPECT_TRUE(h->open(1, blobs::read, "blob0")); in TEST_F() 71 EXPECT_TRUE(h->open(0, blobs::read, "blob0")); in TEST_F() 80 EXPECT_TRUE(h->open(0, blobs::read, "blob0")); in TEST_F() 89 EXPECT_TRUE(h->open(0, blobs::read, "blob0")); in TEST_F()
|
/openbmc/phosphor-ipmi-flash/bmc/firmware-handler/test/ |
H A D | firmware_handler_unittest.cpp | 33 std::vector<HandlerPack> blobs; in TEST() local 34 blobs.emplace_back(hashBlobId, std::make_unique<ImageHandlerMock>()); in TEST() 35 blobs.emplace_back("asdf", std::make_unique<ImageHandlerMock>()); in TEST() 38 std::move(blobs), std::vector<DataHandlerPack>(), in TEST() 50 std::vector<HandlerPack> blobs; in TEST() local 51 blobs.emplace_back("asdf", std::make_unique<ImageHandlerMock>()); in TEST() 52 blobs.emplace_back(hashBlobId, std::make_unique<ImageHandlerMock>()); in TEST() 57 std::move(blobs), std::move(data), std::move(emptyMap)); in TEST() 71 std::vector<HandlerPack> blobs; in TEST() local 72 blobs.emplace_back(hashBlobId, std::make_unique<ImageHandlerMock>()); in TEST() [all …]
|
H A D | firmware_state_verificationstarted_unittest.cpp | 54 auto blobs = handler->getBlobIds(); in TEST_F() local 55 EXPECT_THAT(blobs, UnorderedElementsAreArray( in TEST_F() 59 for (const auto& blob : blobs) in TEST_F() 75 blobs::BlobMeta meta, expectedMeta = {}; in TEST_F() 77 expectedMeta.blobState = flags | blobs::StateFlags::committing; in TEST_F() 92 blobs::BlobMeta meta, expectedMeta = {}; in TEST_F() 94 expectedMeta.blobState = flags | blobs::StateFlags::committing; in TEST_F() 112 blobs::BlobMeta meta, expectedMeta = {}; in TEST_F() 114 expectedMeta.blobState = flags | blobs::StateFlags::commit_error; in TEST_F() 133 blobs::BlobMeta meta, expectedMeta = {}; in TEST_F() [all …]
|
H A D | firmware_unittest.hpp | 37 blobs.emplace_back(hashBlobId, std::move(image)); in SetUp() 41 blobs.emplace_back(staticLayoutBlobId, std::move(image)); in SetUp() 67 std::move(blobs), std::move(data), std::move(packs)); in SetUp() 147 blobs::BlobMeta meta; in getToVerificationCompleted() 175 blobs::BlobMeta meta; in getToUpdateCompleted() 182 std::vector<HandlerPack> blobs; member in ipmi_flash::__anona6df8a240111::IpmiOnlyFirmwareStaticTest 184 std::unique_ptr<blobs::GenericBlobInterface> handler; 191 std::uint16_t flags = static_cast<std::uint16_t>(blobs::OpenFlags::write) | 194 blobs::BlobMeta expectedIdleMeta = {0xff00, 0, {}}; 203 std::vector<HandlerPack> blobs; member in ipmi_flash::__anona6df8a240111::IpmiOnlyFirmwareTest [all …]
|
H A D | firmware_open_unittest.cpp | 28 std::vector<HandlerPack> blobs; in TEST_P() local 29 blobs.emplace_back(hashBlobId, std::make_unique<ImageHandlerMock>()); in TEST_P() 30 blobs.emplace_back("asdf", std::make_unique<ImageHandlerMock>()); in TEST_P() 33 std::move(blobs), std::move(data), CreateActionMap("asdf")); in TEST_P() 45 static_cast<std::uint16_t>(blobs::OpenFlags::write) | 0b000 << 8, 50 static_cast<std::uint16_t>(blobs::OpenFlags::write) | 0b110 << 8, 51 static_cast<std::uint16_t>(blobs::OpenFlags::write) | 0b101 << 8, 52 static_cast<std::uint16_t>(blobs::OpenFlags::write) | 0b011 << 8,
|
H A D | firmware_state_verificationcompleted_unittest.cpp | 58 auto blobs = handler->getBlobIds(); in TEST_F() local 59 for (const auto& b : blobs) in TEST_F() 107 blobs::BlobMeta meta; in TEST_F() 133 blobs::BlobMeta meta; in TEST_F() 147 blobs::BlobMeta meta = {}; in TEST_F() 166 blobs::BlobMeta meta, expectedMeta = {}; in TEST_F() 168 expectedMeta.blobState = flags | blobs::StateFlags::committed; in TEST_F() 183 blobs::BlobMeta meta, expectedMeta = {}; in TEST_F() 185 expectedMeta.blobState = flags | blobs::StateFlags::commit_error; in TEST_F() 202 auto blobs = handler->getBlobIds(); in TEST_F() local [all …]
|
H A D | firmware_state_updatestarted_unittest.cpp | 81 auto blobs = handler->getBlobIds(); in TEST_F() local 82 for (const auto& b : blobs) in TEST_F() 97 blobs::BlobMeta meta; in TEST_F() 107 blobs::BlobMeta meta; in TEST_F() 120 blobs::BlobMeta meta = {}; in TEST_F() 176 blobs::BlobMeta meta, expectedMeta = {}; in TEST_F() 178 expectedMeta.blobState = flags | blobs::StateFlags::committing; in TEST_F() 194 blobs::BlobMeta meta, expectedMeta = {}; in TEST_F() 196 expectedMeta.blobState = flags | blobs::StateFlags::commit_error; in TEST_F() 212 blobs::BlobMeta meta, expectedMeta = {}; in TEST_F() [all …]
|
H A D | firmware_commit_unittest.cpp | 25 std::vector<HandlerPack> blobs; member in ipmi_flash::__anon44632bc70111::FirmwareHandlerCommitTest 33 blobs.emplace_back(hashBlobId, std::move(image)); in SetUp() 37 blobs.emplace_back("asdf", std::move(image)); in SetUp() 49 std::move(blobs), std::move(data), CreateActionMap("asdf")); in TEST_F() 56 static_cast<std::uint16_t>(blobs::OpenFlags::write) | in TEST_F() 69 std::move(blobs), std::move(data), CreateActionMap("asdf")); in TEST_F() 76 static_cast<std::uint16_t>(blobs::OpenFlags::write) | in TEST_F()
|
H A D | firmware_stat_unittest.cpp | 28 std::vector<HandlerPack> blobs; in TEST() local 29 blobs.emplace_back(hashBlobId, std::make_unique<ImageHandlerMock>()); in TEST() 30 blobs.emplace_back("asdf", std::make_unique<ImageHandlerMock>()); in TEST() 36 std::move(blobs), std::move(data), CreateActionMap("asdf")); in TEST() 38 blobs::BlobMeta meta; in TEST()
|
H A D | firmware_canhandle_unittest.cpp | 27 std::vector<HandlerPack> blobs; in TEST() local 28 blobs.emplace_back(hashBlobId, std::make_unique<ImageHandlerMock>()); in TEST() 29 blobs.emplace_back("asdf", std::make_unique<ImageHandlerMock>()); in TEST() 30 blobs.emplace_back("bcdf", std::make_unique<ImageHandlerMock>()); in TEST() 36 std::move(blobs), std::move(data), CreateActionMap("asdf")); in TEST()
|
H A D | firmware_state_updatecompleted_unittest.cpp | 69 blobs::BlobMeta meta, expectedMeta = {}; in TEST_F() 71 expectedMeta.blobState = flags | blobs::StateFlags::committed; in TEST_F() 86 blobs::BlobMeta meta, expectedMeta = {}; in TEST_F() 88 expectedMeta.blobState = flags | blobs::StateFlags::commit_error; in TEST_F() 106 blobs::BlobMeta meta; in TEST_F() 116 blobs::BlobMeta meta; in TEST_F() 129 blobs::BlobMeta meta = {}; in TEST_F() 241 auto blobs = handler->getBlobIds(); in TEST_F() local 242 for (const auto& b : blobs) in TEST_F()
|
H A D | firmware_sessionstat_unittest.cpp | 32 static_cast<std::uint16_t>(blobs::OpenFlags::write) | in TEST_F() 39 blobs::BlobMeta meta; in TEST_F() 42 static_cast<std::uint16_t>(blobs::OpenFlags::write) | in TEST_F() 59 static_cast<std::uint16_t>(blobs::OpenFlags::write) | in TEST_F() 68 blobs::BlobMeta meta; in TEST_F() 71 static_cast<std::uint16_t>(blobs::OpenFlags::write) | in TEST_F()
|
/openbmc/smbios-mdr/src/smbios-ipmi-blobs/test/ |
H A D | handler_statclose_unittest.cpp | 10 namespace blobs namespace 16 blobs::BlobMeta meta; 19 blobs::BlobMeta expected_meta_session = {}; 20 blobs::BlobMeta expected_meta_path = {}; 32 EXPECT_TRUE(handler.open(session, blobs::OpenFlags::write, expectedBlobId)); in TEST_F() 35 expected_meta_session.blobState = blobs::StateFlags::open_write; in TEST_F() 39 expected_meta_path.blobState = blobs::StateFlags::open_write; in TEST_F() 48 EXPECT_TRUE(handler.open(session, blobs::OpenFlags::write, expectedBlobId)); in TEST_F() 54 expected_meta_session.blobState = blobs::StateFlags::open_write; in TEST_F() 59 expected_meta_path.blobState = blobs::StateFlags::open_write; in TEST_F()
|
H A D | handler_readwrite_unittest.cpp | 13 namespace blobs namespace 42 EXPECT_TRUE(handler.open(session, blobs::OpenFlags::write, expectedBlobId)); in TEST_F() 50 EXPECT_TRUE(handler.open(session, blobs::OpenFlags::write, expectedBlobId)); in TEST_F() 58 EXPECT_TRUE(handler.open(session, blobs::OpenFlags::write, expectedBlobId)); in TEST_F() 66 EXPECT_TRUE(handler.open(session, blobs::OpenFlags::write, expectedBlobId)); in TEST_F() 74 EXPECT_TRUE(handler.open(session, blobs::OpenFlags::write, expectedBlobId)); in TEST_F() 82 EXPECT_TRUE(handler.open(session, blobs::OpenFlags::write, expectedBlobId)); in TEST_F() 91 EXPECT_TRUE(handler.open(session, blobs::OpenFlags::write, expectedBlobId)); in TEST_F()
|
H A D | handler_open_unittest.cpp | 7 namespace blobs namespace 17 EXPECT_FALSE(handler.open(session, blobs::OpenFlags::read, expectedBlobId)); in TEST_F() 22 EXPECT_TRUE(handler.open(session, blobs::OpenFlags::write, expectedBlobId)); in TEST_F() 27 EXPECT_TRUE(handler.open(session, blobs::OpenFlags::write, expectedBlobId)); in TEST_F() 29 handler.open(session, blobs::OpenFlags::write, expectedBlobId)); in TEST_F()
|
/openbmc/smbios-mdr/src/smbios-ipmi-blobs/ |
H A D | handler.cpp | 24 namespace blobs namespace 99 if (flags & blobs::OpenFlags::read) in open() 131 if (!(blobPtr->state & blobs::StateFlags::open_write)) in write() 187 (blobs::StateFlags::committing | blobs::StateFlags::committed)) in commit() 193 blobPtr->state &= ~blobs::StateFlags::commit_error; in commit() 210 blobPtr->state |= blobs::StateFlags::commit_error; in commit() 221 blobPtr->state |= blobs::StateFlags::commit_error; in commit() 233 blobPtr->state |= blobs::StateFlags::committing; in commit() 240 blobPtr->state |= blobs::StateFlags::commit_error; in commit() 246 blobPtr->state &= ~blobs::StateFlags::committing; in commit() [all …]
|
/openbmc/phosphor-ipmi-flash/bmc/firmware-handler/ |
H A D | firmware_handler.cpp | 38 std::unique_ptr<blobs::GenericBlobInterface> 58 std::vector<std::string> blobs; in CreateFirmwareBlobHandler() local 59 blobs.reserve(firmwares.size()); in CreateFirmwareBlobHandler() 61 [&blobs](const auto& blob) { in CreateFirmwareBlobHandler() 62 blobs.emplace_back(blob.blobName); in CreateFirmwareBlobHandler() 65 if (0 == std::count(blobs.begin(), blobs.end(), hashBlobId)) in CreateFirmwareBlobHandler() 71 std::move(firmwares), blobs, std::move(transports), in CreateFirmwareBlobHandler() 128 bool FirmwareBlobHandler::stat(const std::string& path, blobs::BlobMeta* meta) in stat() 199 bool FirmwareBlobHandler::stat(uint16_t session, blobs::BlobMeta* meta) in stat() 237 item->second->flags &= ~blobs::StateFlags::committing; in stat() [all …]
|
/openbmc/qemu/contrib/gitdm/ |
H A D | filetypes.txt | 36 order build,interface,tests,code,documentation,devel-doc,blobs 72 # Test related blobs (unfortunately we can't filter out test code) 126 # Misc blobs 128 filetype blobs \.bin$ 129 filetype blobs \.dtb$ 130 filetype blobs \.dts$ 131 filetype blobs \.rom$ 132 filetype blobs \.img$ 133 filetype blobs \.ndrv$ 134 filetype blobs \.bmp$ [all …]
|