diff options
author | Andy Soffer <asoffer@google.com> | 2020-01-02 21:49:07 (GMT) |
---|---|---|
committer | Andy Soffer <asoffer@google.com> | 2020-01-02 21:49:07 (GMT) |
commit | fbe34cecf4ff34e0bed76aefb2b4d31f7b1f6819 (patch) | |
tree | 32657cef25abba46ad27500f6070f5d64b11a717 /googletest/include/gtest/internal/gtest-internal.h | |
parent | a13a0626188b4e7d22d63a4c9fcfe9f441c81e4a (diff) | |
parent | bf31ed376ab1ae181dfa2bb0383f7710229b0d14 (diff) | |
download | googletest-fbe34cecf4ff34e0bed76aefb2b4d31f7b1f6819.zip googletest-fbe34cecf4ff34e0bed76aefb2b4d31f7b1f6819.tar.gz googletest-fbe34cecf4ff34e0bed76aefb2b4d31f7b1f6819.tar.bz2 |
Merge pull request #2639 from trzecieu:trzeci/move_ctor_assign
PiperOrigin-RevId: 286896167
Diffstat (limited to 'googletest/include/gtest/internal/gtest-internal.h')
-rw-r--r-- | googletest/include/gtest/internal/gtest-internal.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/googletest/include/gtest/internal/gtest-internal.h b/googletest/include/gtest/internal/gtest-internal.h index 57ebbda..41c94f4 100644 --- a/googletest/include/gtest/internal/gtest-internal.h +++ b/googletest/include/gtest/internal/gtest-internal.h @@ -1405,12 +1405,15 @@ constexpr bool InstantiateTypedTestCase_P_IsDeprecated() { return true; } : public parent_class { \ public: \ GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)() {} \ + ~GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)() = default; \ + GTEST_DISALLOW_COPY_AND_ASSIGN_(GTEST_TEST_CLASS_NAME_(test_suite_name, \ + test_name)); \ + GTEST_DISALLOW_MOVE_AND_ASSIGN_(GTEST_TEST_CLASS_NAME_(test_suite_name, \ + test_name)); \ \ private: \ void TestBody() override; \ static ::testing::TestInfo* const test_info_ GTEST_ATTRIBUTE_UNUSED_; \ - GTEST_DISALLOW_COPY_AND_ASSIGN_(GTEST_TEST_CLASS_NAME_(test_suite_name, \ - test_name)); \ }; \ \ ::testing::TestInfo* const GTEST_TEST_CLASS_NAME_(test_suite_name, \ |