summaryrefslogtreecommitdiffstats
path: root/googlemock/include/gmock
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2019-03-19 19:13:51 (GMT)
committerGennadiy Civil <misterg@google.com>2019-03-21 14:43:06 (GMT)
commitf1883b1824109338db40837bdb61f0150e395bb7 (patch)
treed2682cb7ff7c76f9f159bd92e69dfb6117dbd855 /googlemock/include/gmock
parenta4b63e7efbb276bb0a3caafa91b5c2c6a9104988 (diff)
downloadgoogletest-f1883b1824109338db40837bdb61f0150e395bb7.zip
googletest-f1883b1824109338db40837bdb61f0150e395bb7.tar.gz
googletest-f1883b1824109338db40837bdb61f0150e395bb7.tar.bz2
Googletest export
Remove mention of unused type ProtocolMessage. PiperOrigin-RevId: 239242706
Diffstat (limited to 'googlemock/include/gmock')
-rw-r--r--googlemock/include/gmock/gmock-actions.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/googlemock/include/gmock/gmock-actions.h b/googlemock/include/gmock/gmock-actions.h
index 2f936a1..8513e01 100644
--- a/googlemock/include/gmock/gmock-actions.h
+++ b/googlemock/include/gmock/gmock-actions.h
@@ -773,8 +773,8 @@ class SetErrnoAndReturnAction {
// Implements the SetArgumentPointee<N>(x) action for any function
// whose N-th argument (0-based) is a pointer to x's type. The
-// template parameter kIsProto is true iff type A is ProtocolMessage,
-// proto2::Message, or a sub-class of those.
+// template parameter kIsProto is true iff type A is
+// proto2::Message or a sub-class of it.
template <size_t N, typename A, bool kIsProto>
class SetArgumentPointeeAction {
public:
@@ -798,9 +798,7 @@ template <size_t N, typename Proto>
class SetArgumentPointeeAction<N, Proto, true> {
public:
// Constructs an action that sets the variable pointed to by the
- // N-th function argument to 'proto'. Both ProtocolMessage and
- // proto2::Message have the CopyFrom() method, so the same
- // implementation works for both.
+ // N-th function argument to 'proto'.
explicit SetArgumentPointeeAction(const Proto& proto) : proto_(new Proto) {
proto_->CopyFrom(proto);
}