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
10ade847
Commit
10ade847
authored
Aug 11, 2020
by
Abseil Team
Committed by
Gennadiy Rozental
Aug 12, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Googletest export
internal change PiperOrigin-RevId: 326080000
parent
6c655699
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
0 deletions
+10
-0
cheat_sheet.md
googlemock/docs/cheat_sheet.md
+2
-0
cook_book.md
googlemock/docs/cook_book.md
+2
-0
for_dummies.md
googlemock/docs/for_dummies.md
+2
-0
gmock_faq.md
googlemock/docs/gmock_faq.md
+2
-0
pump_manual.md
googlemock/docs/pump_manual.md
+2
-0
No files found.
googlemock/docs/cheat_sheet.md
View file @
10ade847
...
...
@@ -2,6 +2,8 @@
<!-- GOOGLETEST_CM0019 DO NOT DELETE -->
<!-- GOOGLETEST_CM0035 DO NOT DELETE -->
<!-- GOOGLETEST_CM0033 DO NOT DELETE -->
## Defining a Mock Class
...
...
googlemock/docs/cook_book.md
View file @
10ade847
...
...
@@ -10,6 +10,8 @@ recommended to write `using ::testing::Foo;` once in your file before using the
name
`Foo`
defined by gMock. We omit such
`using`
statements in this section for
brevity, but you should do it in your own code.
<!-- GOOGLETEST_CM0035 DO NOT DELETE -->
## Creating Mock Classes
Mock classes are defined as normal classes, using the
`MOCK_METHOD`
macro to
...
...
googlemock/docs/for_dummies.md
View file @
10ade847
...
...
@@ -2,6 +2,8 @@
<!-- GOOGLETEST_CM0013 DO NOT DELETE -->
<!-- GOOGLETEST_CM0035 DO NOT DELETE -->
## What Is gMock?
When you write a prototype or test, often it's not feasible or wise to rely on
...
...
googlemock/docs/gmock_faq.md
View file @
10ade847
...
...
@@ -2,6 +2,8 @@
<!-- GOOGLETEST_CM0021 DO NOT DELETE -->
<!-- GOOGLETEST_CM0035 DO NOT DELETE -->
### When I call a method on my mock object, the method for the real object is invoked instead. What's the problem?
In order for a method to be mocked, it must be
*virtual*
, unless you use the
...
...
googlemock/docs/pump_manual.md
View file @
10ade847
<b>
P
</b>
ump is
<b>
U
</b>
seful for
<b>
M
</b>
eta
<b>
P
</b>
rogramming.
<!-- GOOGLETEST_CM0035 DO NOT DELETE -->
# The Problem
Template and macro libraries often need to define many classes, functions, or
...
...
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