style: s/FirmwareUpdateFlags/UpdateFlags/g
Change the enum's name from FirmwareUpdateFlags to UpdateFlags as it now
lives in the FirmwareBlobHandler class and therefore the name can be
reduced to be less specific.
Change-Id: If1e99525d100c1f43e611fd344f3cba665fdd038
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/test/firmware_writemeta_unittest.cpp b/test/firmware_writemeta_unittest.cpp
index 0a795c9..b2338c1 100644
--- a/test/firmware_writemeta_unittest.cpp
+++ b/test/firmware_writemeta_unittest.cpp
@@ -20,8 +20,8 @@
DataHandlerMock dataMock;
std::vector<DataHandlerPack> data = {
- {FirmwareBlobHandler::FirmwareUpdateFlags::ipmi, nullptr},
- {FirmwareBlobHandler::FirmwareUpdateFlags::lpc, &dataMock},
+ {FirmwareBlobHandler::UpdateFlags::ipmi, nullptr},
+ {FirmwareBlobHandler::UpdateFlags::lpc, &dataMock},
};
auto handler = FirmwareBlobHandler::CreateFirmwareBlobHandler(blobs, data);
@@ -29,8 +29,7 @@
EXPECT_CALL(imageMock2, open("asdf")).WillOnce(Return(true));
EXPECT_TRUE(handler->open(
- 0, OpenFlags::write | FirmwareBlobHandler::FirmwareUpdateFlags::ipmi,
- "asdf"));
+ 0, OpenFlags::write | FirmwareBlobHandler::UpdateFlags::ipmi, "asdf"));
std::vector<std::uint8_t> bytes = {0xaa, 0x55};
@@ -48,8 +47,8 @@
DataHandlerMock dataMock;
std::vector<DataHandlerPack> data = {
- {FirmwareBlobHandler::FirmwareUpdateFlags::ipmi, nullptr},
- {FirmwareBlobHandler::FirmwareUpdateFlags::lpc, &dataMock},
+ {FirmwareBlobHandler::UpdateFlags::ipmi, nullptr},
+ {FirmwareBlobHandler::UpdateFlags::lpc, &dataMock},
};
auto handler = FirmwareBlobHandler::CreateFirmwareBlobHandler(blobs, data);
@@ -57,8 +56,7 @@
EXPECT_CALL(imageMock2, open("asdf")).WillOnce(Return(true));
EXPECT_TRUE(handler->open(
- 0, OpenFlags::write | FirmwareBlobHandler::FirmwareUpdateFlags::lpc,
- "asdf"));
+ 0, OpenFlags::write | FirmwareBlobHandler::UpdateFlags::lpc, "asdf"));
std::vector<std::uint8_t> bytes = {0x01, 0x02, 0x03, 0x04};