From 2cfbc27b4f6baacd0daee5836eca7b776de3bccf Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Sun, 16 May 2021 15:58:40 -0700 Subject: [PATCH] Fix some deprecated copy ops in google mock --- .../googlemock/include/gmock/gmock-generated-actions.h | 6 ++++-- .../unittest/googlemock/include/gmock/gmock-spec-builders.h | 2 -- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/unittest/googlemock/include/gmock/gmock-generated-actions.h b/utils/unittest/googlemock/include/gmock/gmock-generated-actions.h index 9b5b78b165b..c538dce8d27 100644 --- a/utils/unittest/googlemock/include/gmock/gmock-generated-actions.h +++ b/utils/unittest/googlemock/include/gmock/gmock-generated-actions.h @@ -657,6 +657,10 @@ class ActionHelper { public:\ explicit GMOCK_ACTION_CLASS_(name, value_params)\ GMOCK_INTERNAL_INIT_##value_params {}\ + GMOCK_ACTION_CLASS_(name, value_params)(\ + const GMOCK_ACTION_CLASS_(name, value_params)&) noexcept = default;\ + GMOCK_ACTION_CLASS_(name, value_params)(\ + GMOCK_ACTION_CLASS_(name, value_params)&&) noexcept = default;\ template \ class gmock_Impl : public ::testing::ActionInterface {\ public:\ @@ -688,8 +692,6 @@ class ActionHelper { new gmock_Impl(GMOCK_INTERNAL_LIST_##value_params));\ }\ GMOCK_INTERNAL_DEFN_##value_params\ - private:\ - GTEST_DISALLOW_ASSIGN_(GMOCK_ACTION_CLASS_(name, value_params));\ };\ template \ diff --git a/utils/unittest/googlemock/include/gmock/gmock-spec-builders.h b/utils/unittest/googlemock/include/gmock/gmock-spec-builders.h index 7df6c87a4c3..4fc4a546ef2 100644 --- a/utils/unittest/googlemock/include/gmock/gmock-spec-builders.h +++ b/utils/unittest/googlemock/include/gmock/gmock-spec-builders.h @@ -1297,8 +1297,6 @@ class MockSpec { internal::FunctionMocker* const function_mocker_; // The argument matchers specified in the spec. ArgumentMatcherTuple matchers_; - - GTEST_DISALLOW_ASSIGN_(MockSpec); }; // class MockSpec // Wrapper type for generically holding an ordinary value or lvalue reference.