aboutsummaryrefslogtreecommitdiffstats
path: root/googlemock/include
diff options
context:
space:
mode:
authorGennadiy Civil <gennadiycivil@users.noreply.github.com>2018-04-12 14:41:48 -0400
committerGitHub <noreply@github.com>2018-04-12 14:41:48 -0400
commit6fb65b8215610ee7c447526784eeace091164b90 (patch)
tree4fd1471e2a7f6ee81956388c3f8a8aa382411a8f /googlemock/include
parent3ccd6e380902da48bd9a11c7f6090b958e0d097f (diff)
parenta79851f2c26755324bf0340eed3538d3a047b7a7 (diff)
downloadgoogletest-6fb65b8215610ee7c447526784eeace091164b90.tar.gz
googletest-6fb65b8215610ee7c447526784eeace091164b90.tar.bz2
googletest-6fb65b8215610ee7c447526784eeace091164b90.zip
Merge pull request #1567 from gennadiycivil/master
merging
Diffstat (limited to 'googlemock/include')
-rw-r--r--googlemock/include/gmock/gmock-generated-nice-strict.h15
-rw-r--r--googlemock/include/gmock/gmock-generated-nice-strict.h.pump5
2 files changed, 20 insertions, 0 deletions
diff --git a/googlemock/include/gmock/gmock-generated-nice-strict.h b/googlemock/include/gmock/gmock-generated-nice-strict.h
index 5e1386b4..8e568730 100644
--- a/googlemock/include/gmock/gmock-generated-nice-strict.h
+++ b/googlemock/include/gmock/gmock-generated-nice-strict.h
@@ -80,6 +80,11 @@ class NiceMock : public MockClass {
}
#if GTEST_LANG_CXX11
+ // Ideally, we would inherit base class's constructors through a using
+ // declaration, which would preserve their visibility. However, many existing
+ // tests rely on the fact that current implementation reexports protected
+ // constructors as public. These tests would need to be cleaned up first.
+
// Single argument constructor is special-cased so that it can be
// made explicit.
template <typename A>
@@ -193,6 +198,11 @@ class NaggyMock : public MockClass {
}
#if GTEST_LANG_CXX11
+ // Ideally, we would inherit base class's constructors through a using
+ // declaration, which would preserve their visibility. However, many existing
+ // tests rely on the fact that current implementation reexports protected
+ // constructors as public. These tests would need to be cleaned up first.
+
// Single argument constructor is special-cased so that it can be
// made explicit.
template <typename A>
@@ -306,6 +316,11 @@ class StrictMock : public MockClass {
}
#if GTEST_LANG_CXX11
+ // Ideally, we would inherit base class's constructors through a using
+ // declaration, which would preserve their visibility. However, many existing
+ // tests rely on the fact that current implementation reexports protected
+ // constructors as public. These tests would need to be cleaned up first.
+
// Single argument constructor is special-cased so that it can be
// made explicit.
template <typename A>
diff --git a/googlemock/include/gmock/gmock-generated-nice-strict.h.pump b/googlemock/include/gmock/gmock-generated-nice-strict.h.pump
index 2e50e982..2f443ae0 100644
--- a/googlemock/include/gmock/gmock-generated-nice-strict.h.pump
+++ b/googlemock/include/gmock/gmock-generated-nice-strict.h.pump
@@ -92,6 +92,11 @@ class $clazz : public MockClass {
}
#if GTEST_LANG_CXX11
+ // Ideally, we would inherit base class's constructors through a using
+ // declaration, which would preserve their visibility. However, many existing
+ // tests rely on the fact that current implementation reexports protected
+ // constructors as public. These tests would need to be cleaned up first.
+
// Single argument constructor is special-cased so that it can be
// made explicit.
template <typename A>