diff options
author | Abseil Team <absl-team@google.com> | 2019-01-07 22:06:16 (GMT) |
---|---|---|
committer | gennadiycivil <misterg@google.com> | 2019-01-08 16:50:56 (GMT) |
commit | 216c37f057ae0fff38062984c890df912f40ccf6 (patch) | |
tree | 19bd4362670a0c0440f08b0360eaca8a5e44d9ed /googlemock/include/gmock/gmock-generated-function-mockers.h.pump | |
parent | 644319b9f06f6ca9bf69fe791be399061044bc3d (diff) | |
download | googletest-216c37f057ae0fff38062984c890df912f40ccf6.zip googletest-216c37f057ae0fff38062984c890df912f40ccf6.tar.gz googletest-216c37f057ae0fff38062984c890df912f40ccf6.tar.bz2 |
Googletest export
Drop generated file gmock-generated-internal-utils.h.
PiperOrigin-RevId: 228232195
Diffstat (limited to 'googlemock/include/gmock/gmock-generated-function-mockers.h.pump')
-rw-r--r-- | googlemock/include/gmock/gmock-generated-function-mockers.h.pump | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/googlemock/include/gmock/gmock-generated-function-mockers.h.pump b/googlemock/include/gmock/gmock-generated-function-mockers.h.pump index a5ec738..a56e132 100644 --- a/googlemock/include/gmock/gmock-generated-function-mockers.h.pump +++ b/googlemock/include/gmock/gmock-generated-function-mockers.h.pump @@ -124,7 +124,7 @@ using internal::FunctionMocker; // The type of argument N of the given function type. // INTERNAL IMPLEMENTATION - DON'T USE IN USER CODE!!! #define GMOCK_ARG_(tn, N, ...) \ - tn ::testing::internal::Function<__VA_ARGS__>::Argument##N + tn ::testing::internal::Function<__VA_ARGS__>::template Arg<N-1>::type // The matcher type for argument N of the given function type. // INTERNAL IMPLEMENTATION - DON'T USE IN USER CODE!!! @@ -149,11 +149,9 @@ $var anything_matchers = [[$for j, \ [[::testing::A<GMOCK_ARG_(tn, $j, __VA_ARGS__)>()]]]] // INTERNAL IMPLEMENTATION - DON'T USE IN USER CODE!!! #define GMOCK_METHOD$i[[]]_(tn, constness, ct, Method, ...) \ + static_assert($i == ::testing::internal::Function<__VA_ARGS__>::ArgumentCount, "MOCK_METHOD<N> must match argument count.");\ GMOCK_RESULT_(tn, __VA_ARGS__) ct Method( \ $arg_as) constness { \ - GTEST_COMPILE_ASSERT_((::std::tuple_size< \ - tn ::testing::internal::Function<__VA_ARGS__>::ArgumentTuple>::value == $i), \ - this_method_does_not_take_$i[[]]_argument[[$if i != 1 [[s]]]]); \ GMOCK_MOCKER_($i, constness, Method).SetOwnerAndName(this, #Method); \ return GMOCK_MOCKER_($i, constness, Method).Invoke($as); \ } \ |