Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
9c047902
Unverified
Commit
9c047902
authored
Mar 17, 2021
by
Austin Sullivan
Committed by
GitHub
Mar 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update nicestrictnaggy gmock cook_book links
An incorrect link is output to the user when these conditions are met.
parent
b7d472f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
gmock-nice-strict.h
googlemock/include/gmock/gmock-nice-strict.h
+6
-6
No files found.
googlemock/include/gmock/gmock-nice-strict.h
View file @
9c047902
...
@@ -141,8 +141,8 @@ class GTEST_INTERNAL_EMPTY_BASE_CLASS NiceMock
...
@@ -141,8 +141,8 @@ class GTEST_INTERNAL_EMPTY_BASE_CLASS NiceMock
!
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://github.com/google/googletest/blob/master/
googlemock/
docs/"
"https://github.com/google/googletest/blob/master/docs/"
"cook_book.md#the-nice-the-strict-and-the-naggy-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"
);
...
@@ -181,8 +181,8 @@ class GTEST_INTERNAL_EMPTY_BASE_CLASS NaggyMock
...
@@ -181,8 +181,8 @@ class GTEST_INTERNAL_EMPTY_BASE_CLASS NaggyMock
!
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://github.com/google/googletest/blob/master/
googlemock/
docs/"
"https://github.com/google/googletest/blob/master/docs/"
"cook_book.md#the-nice-the-strict-and-the-naggy-nicestrictnaggy"
);
"
gmock_
cook_book.md#the-nice-the-strict-and-the-naggy-nicestrictnaggy"
);
public
:
public
:
NaggyMock
()
:
MockClass
()
{
NaggyMock
()
:
MockClass
()
{
...
@@ -224,8 +224,8 @@ class GTEST_INTERNAL_EMPTY_BASE_CLASS StrictMock
...
@@ -224,8 +224,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://github.com/google/googletest/blob/master/
googlemock/
docs/"
"https://github.com/google/googletest/blob/master/docs/"
"cook_book.md#the-nice-the-strict-and-the-naggy-nicestrictnaggy"
);
"
gmock_
cook_book.md#the-nice-the-strict-and-the-naggy-nicestrictnaggy"
);
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