bugfix: test: use explicit string matcher
Use a typed matcher to avoid ambiguous overload matcher.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I45035102ceb4109c35b3b52dd6f4106979b1050f
diff --git a/test/tools_updater_unittest.cpp b/test/tools_updater_unittest.cpp
index 158ce47..46546fa 100644
--- a/test/tools_updater_unittest.cpp
+++ b/test/tools_updater_unittest.cpp
@@ -13,6 +13,7 @@
using ::testing::Eq;
using ::testing::Return;
using ::testing::StrEq;
+using ::testing::TypedEq;
TEST(UpdaterTest, NormalWalkthroughAllHappy)
{
@@ -36,7 +37,8 @@
EXPECT_CALL(blobMock, getBlobList()).WillOnce(Return(blobList));
- EXPECT_CALL(blobMock, getStat(Eq(expectedBlob))).WillOnce(Return(statObj));
+ EXPECT_CALL(blobMock, getStat(TypedEq<const std::string&>(expectedBlob)))
+ .WillOnce(Return(statObj));
EXPECT_CALL(handlerMock, supportedType())
.WillOnce(Return(blobs::FirmwareBlobHandler::UpdateFlags::lpc));