diff options
author | Abseil Team <absl-team@google.com> | 2019-03-18 21:32:54 (GMT) |
---|---|---|
committer | Gennadiy Civil <misterg@google.com> | 2019-03-21 14:42:58 (GMT) |
commit | a4b63e7efbb276bb0a3caafa91b5c2c6a9104988 (patch) | |
tree | 5879afbf0908f288df01cbafd83f3466aea18701 /googlemock/include/gmock/gmock-generated-actions.h.pump | |
parent | f957bd0c25a288fdccbca5d8f506453ee3e802ce (diff) | |
download | googletest-a4b63e7efbb276bb0a3caafa91b5c2c6a9104988.zip googletest-a4b63e7efbb276bb0a3caafa91b5c2c6a9104988.tar.gz googletest-a4b63e7efbb276bb0a3caafa91b5c2c6a9104988.tar.bz2 |
Googletest export
Action helpers need to pass by const& so that they can work with unique_ptr.
PiperOrigin-RevId: 239062671
Diffstat (limited to 'googlemock/include/gmock/gmock-generated-actions.h.pump')
-rw-r--r-- | googlemock/include/gmock/gmock-generated-actions.h.pump | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/googlemock/include/gmock/gmock-generated-actions.h.pump b/googlemock/include/gmock/gmock-generated-actions.h.pump index 1e9549f..87c580c 100644 --- a/googlemock/include/gmock/gmock-generated-actions.h.pump +++ b/googlemock/include/gmock/gmock-generated-actions.h.pump @@ -200,7 +200,7 @@ $range k 0..n-1 #define GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_\ const args_type& args GTEST_ATTRIBUTE_UNUSED_ $for k [[, \ - arg$k[[]]_type arg$k GTEST_ATTRIBUTE_UNUSED_]] + const arg$k[[]]_type& arg$k GTEST_ATTRIBUTE_UNUSED_]] // Sometimes you want to give an action explicit template parameters @@ -402,7 +402,7 @@ $range k 0..n-1 }\ template <$for k, [[typename arg$k[[]]_type]]>\ return_type gmock_PerformImpl(const args_type& args[[]] -$for k [[, arg$k[[]]_type arg$k]]) const;\ +$for k [[, const arg$k[[]]_type& arg$k]]) const;\ GMOCK_INTERNAL_DEFN_##value_params\ private:\ GTEST_DISALLOW_ASSIGN_(gmock_Impl);\ @@ -467,7 +467,7 @@ $var param_field_decls2 = [[$for j $var params = [[$for j, [[p$j]]]] $var param_types = [[$if i==0 [[]] $else [[<$for j, [[p$j##_type]]>]]]] $var typename_arg_types = [[$for k, [[typename arg$k[[]]_type]]]] -$var arg_types_and_names = [[$for k, [[arg$k[[]]_type arg$k]]]] +$var arg_types_and_names = [[$for k, [[const arg$k[[]]_type& arg$k]]]] $var macro_name = [[$if i==0 [[ACTION]] $elif i==1 [[ACTION_P]] $else [[ACTION_P$i]]]] |