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
10ade847
Commit
10ade847
authored
Aug 11, 2020
by
Abseil Team
Committed by
Gennadiy Rozental
Aug 12, 2020
Browse files
Googletest export
internal change PiperOrigin-RevId: 326080000
parent
6c655699
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
0 deletions
+10
-0
googlemock/docs/cheat_sheet.md
googlemock/docs/cheat_sheet.md
+2
-0
googlemock/docs/cook_book.md
googlemock/docs/cook_book.md
+2
-0
googlemock/docs/for_dummies.md
googlemock/docs/for_dummies.md
+2
-0
googlemock/docs/gmock_faq.md
googlemock/docs/gmock_faq.md
+2
-0
googlemock/docs/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 @@
...
@@ -2,6 +2,8 @@
<!-- GOOGLETEST_CM0019 DO NOT DELETE -->
<!-- GOOGLETEST_CM0019 DO NOT DELETE -->
<!-- GOOGLETEST_CM0035 DO NOT DELETE -->
<!-- GOOGLETEST_CM0033 DO NOT DELETE -->
<!-- GOOGLETEST_CM0033 DO NOT DELETE -->
## Defining a Mock Class
## 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
...
@@ -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
name
`Foo`
defined by gMock. We omit such
`using`
statements in this section for
brevity, but you should do it in your own code.
brevity, but you should do it in your own code.
<!-- GOOGLETEST_CM0035 DO NOT DELETE -->
## Creating Mock Classes
## Creating Mock Classes
Mock classes are defined as normal classes, using the
`MOCK_METHOD`
macro to
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 @@
...
@@ -2,6 +2,8 @@
<!-- GOOGLETEST_CM0013 DO NOT DELETE -->
<!-- GOOGLETEST_CM0013 DO NOT DELETE -->
<!-- GOOGLETEST_CM0035 DO NOT DELETE -->
## What Is gMock?
## What Is gMock?
When you write a prototype or test, often it's not feasible or wise to rely on
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 @@
...
@@ -2,6 +2,8 @@
<!-- GOOGLETEST_CM0021 DO NOT DELETE -->
<!-- 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?
### 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
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.
<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
# The Problem
Template and macro libraries often need to define many classes, functions, or
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