aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Scull <ascull@google.com>2018-07-16 10:22:47 +0100
committerAndrew Scull <ascull@google.com>2018-07-16 10:22:47 +0100
commitaf23ae8dd8efc2edbf2295a7430a5bda9295c7a2 (patch)
treea8dbdde8e737cfd88daf02392002af2a339311c4
parent44fc3770cb30f64766b197a7d5253a10c0b66e70 (diff)
downloadgeneric-af23ae8dd8efc2edbf2295a7430a5bda9295c7a2.tar.gz
Conform to googletest API changes.
Matcher parameter types are now constant so that's got to be removed. Change-Id: I9a13d31c5a044beadf0ba9f74e4a16be183bf661
-rw-r--r--libnos/generator/test/test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnos/generator/test/test.cpp b/libnos/generator/test/test.cpp
index 75dd7f7..4542c88 100644
--- a/libnos/generator/test/test.cpp
+++ b/libnos/generator/test/test.cpp
@@ -45,7 +45,7 @@ MATCHER_P(ProtoMessageEq, msg, "") { return MessageDifferencer::Equals(arg, msg)
// Check the message is the same rather than the encoded bytes as different
// bytes could decode to the same message.
MATCHER_P(DecodesToProtoMessage, msg, "Vector does not decode to correct message") {
- decltype(msg) decoded;
+ typename std::remove_const<decltype(msg)>::type decoded;
return decoded.ParseFromArray(arg.data(), arg.size())
&& MessageDifferencer::Equals(decoded, msg);
}