diff options
author | Abseil Team <absl-team@google.com> | 2019-01-16 20:23:44 (GMT) |
---|---|---|
committer | Alex Strelnikov <strel@google.com> | 2019-01-17 19:41:08 (GMT) |
commit | 0adeadd2830211f827fd2908e4621f6a4afa810c (patch) | |
tree | 1a620e576ad423e1931a00dfe1f9448932f62e41 /googlemock/include/gmock/internal/gmock-internal-utils.h | |
parent | eb9225ce361affe561592e0912320b9db84985d0 (diff) | |
download | googletest-0adeadd2830211f827fd2908e4621f6a4afa810c.zip googletest-0adeadd2830211f827fd2908e4621f6a4afa810c.tar.gz googletest-0adeadd2830211f827fd2908e4621f6a4afa810c.tar.bz2 |
Googletest export
Refactor the `Invoke` and `InvokeWithoutArgs` actions:
- Replace pump'd classes and functions with templates.
- Make the polymorphic actions be polymorphic functors instead.
- Fix Invoke(Callback*) to work with subclasses of the callbacks, instead of trying to diagnose that in gmock_doctor.
PiperOrigin-RevId: 229604112
Diffstat (limited to 'googlemock/include/gmock/internal/gmock-internal-utils.h')
-rw-r--r-- | googlemock/include/gmock/internal/gmock-internal-utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/googlemock/include/gmock/internal/gmock-internal-utils.h b/googlemock/include/gmock/internal/gmock-internal-utils.h index 661c835..093b465 100644 --- a/googlemock/include/gmock/internal/gmock-internal-utils.h +++ b/googlemock/include/gmock/internal/gmock-internal-utils.h @@ -42,6 +42,7 @@ #include <stdio.h> #include <ostream> // NOLINT #include <string> +#include <type_traits> #include "gmock/internal/gmock-port.h" #include "gtest/gtest.h" |