Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
c3fc92f0
Commit
c3fc92f0
authored
Apr 09, 2021
by
Abseil Team
Committed by
Dino Radaković
Apr 12, 2021
Browse files
Googletest export
Update docs to point to the github.io pages. PiperOrigin-RevId: 367711335
parent
ec7fa96f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
14 deletions
+12
-14
googlemock/include/gmock/gmock-nice-strict.h
googlemock/include/gmock/gmock-nice-strict.h
+12
-14
No files found.
googlemock/include/gmock/gmock-nice-strict.h
View file @
c3fc92f0
...
@@ -137,12 +137,11 @@ class GTEST_INTERNAL_EMPTY_BASE_CLASS NiceMock
...
@@ -137,12 +137,11 @@ class GTEST_INTERNAL_EMPTY_BASE_CLASS NiceMock
:
private
internal
::
NiceMockImpl
<
MockClass
>
,
:
private
internal
::
NiceMockImpl
<
MockClass
>
,
public
MockClass
{
public
MockClass
{
public:
public:
static_assert
(
static_assert
(
!
internal
::
HasStrictnessModifier
<
MockClass
>
(),
!
internal
::
HasStrictnessModifier
<
MockClass
>
(),
"Can't apply NiceMock to a class hierarchy that already has a "
"Can't apply NiceMock to a class hierarchy that already has a "
"strictness modifier. See "
"strictness modifier. See "
"https://google.github.io/googletest/"
"https://github.com/google/googletest/blob/master/docs/"
"gmock_cook_book.html#NiceStrictNaggy"
);
"gmock_cook_book.md#the-nice-the-strict-and-the-naggy-nicestrictnaggy"
);
NiceMock
()
:
MockClass
()
{
NiceMock
()
:
MockClass
()
{
static_assert
(
sizeof
(
*
this
)
==
sizeof
(
MockClass
),
static_assert
(
sizeof
(
*
this
)
==
sizeof
(
MockClass
),
"The impl subclass shouldn't introduce any padding"
);
"The impl subclass shouldn't introduce any padding"
);
...
@@ -177,12 +176,11 @@ template <class MockClass>
...
@@ -177,12 +176,11 @@ template <class MockClass>
class
GTEST_INTERNAL_EMPTY_BASE_CLASS
NaggyMock
class
GTEST_INTERNAL_EMPTY_BASE_CLASS
NaggyMock
:
private
internal
::
NaggyMockImpl
<
MockClass
>
,
:
private
internal
::
NaggyMockImpl
<
MockClass
>
,
public
MockClass
{
public
MockClass
{
static_assert
(
static_assert
(
!
internal
::
HasStrictnessModifier
<
MockClass
>
(),
!
internal
::
HasStrictnessModifier
<
MockClass
>
(),
"Can't apply NaggyMock to a class hierarchy that already has a "
"Can't apply NaggyMock to a class hierarchy that already has a "
"strictness modifier. See "
"strictness modifier. See "
"https://google.github.io/googletest/"
"https://github.com/google/googletest/blob/master/docs/"
"gmock_cook_book.html#NiceStrictNaggy"
);
"gmock_cook_book.md#the-nice-the-strict-and-the-naggy-nicestrictnaggy"
);
public:
public:
NaggyMock
()
:
MockClass
()
{
NaggyMock
()
:
MockClass
()
{
...
@@ -224,8 +222,8 @@ class GTEST_INTERNAL_EMPTY_BASE_CLASS StrictMock
...
@@ -224,8 +222,8 @@ class GTEST_INTERNAL_EMPTY_BASE_CLASS StrictMock
!
internal
::
HasStrictnessModifier
<
MockClass
>
(),
!
internal
::
HasStrictnessModifier
<
MockClass
>
(),
"Can't apply StrictMock to a class hierarchy that already has a "
"Can't apply StrictMock to a class hierarchy that already has a "
"strictness modifier. See "
"strictness modifier. See "
"https://g
ithub.com/google/googletest/blob/master/docs
/"
"https://g
oogle.github.io/googletest
/"
"gmock_cook_book.
md#the-nice-the-strict-and-the-naggy-n
ice
s
trict
n
aggy"
);
"gmock_cook_book.
html#N
ice
S
trict
N
aggy"
);
StrictMock
()
:
MockClass
()
{
StrictMock
()
:
MockClass
()
{
static_assert
(
sizeof
(
*
this
)
==
sizeof
(
MockClass
),
static_assert
(
sizeof
(
*
this
)
==
sizeof
(
MockClass
),
"The impl subclass shouldn't introduce any padding"
);
"The impl subclass shouldn't introduce any padding"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment