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
2eb43960
Commit
2eb43960
authored
Jul 20, 2018
by
杜修杏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace "…" with "..."(three dots) to fix warning C4819 in Visual Studio
parent
5b19054b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
CookBook.md
googlemock/docs/CookBook.md
+2
-2
gmock-generated-function-mockers.h.pump
...ock/include/gmock/gmock-generated-function-mockers.h.pump
+2
-2
No files found.
googlemock/docs/CookBook.md
View file @
2eb43960
...
@@ -2247,7 +2247,7 @@ enum class AccessLevel { kInternal, kPublic };
...
@@ -2247,7 +2247,7 @@ enum class AccessLevel { kInternal, kPublic };
class
Buzz
{
class
Buzz
{
public
:
public
:
explicit
Buzz
(
AccessLevel
access
)
{
…
}
explicit
Buzz
(
AccessLevel
access
)
{
...
}
...
...
};
};
...
@@ -2320,7 +2320,7 @@ Note that `ByMove()` is essential here - if you drop it, the code won’t compil
...
@@ -2320,7 +2320,7 @@ Note that `ByMove()` is essential here - if you drop it, the code won’t compil
Quiz time! What do you think will happen if a
`Return(ByMove(...))`
action is
Quiz time! What do you think will happen if a
`Return(ByMove(...))`
action is
performed more than once (e.g. you write
performed more than once (e.g. you write
`
…
.WillRepeatedly(Return(ByMove(...)));`
)? Come think of it, after the first
`.WillRepeatedly(Return(ByMove(...)));`
)? Come think of it, after the first
time the action runs, the source value will be consumed (since it’s a move-only
time the action runs, the source value will be consumed (since it’s a move-only
value), so the next time around, there’s no value to move from -- you’ll get a
value), so the next time around, there’s no value to move from -- you’ll get a
run-time error that
`Return(ByMove(...))`
can only be run once.
run-time error that
`Return(ByMove(...))`
can only be run once.
...
...
googlemock/include/gmock/gmock-generated-function-mockers.h.pump
View file @
2eb43960
...
@@ -114,7 +114,7 @@ class FunctionMocker<R($As)> : public
...
@@ -114,7 +114,7 @@ class FunctionMocker<R($As)> : public
//
//
// class MockClass {
// class MockClass {
// // Overload 1
// // Overload 1
// MockSpec<string&()> gmock_GetName() {
…
}
// MockSpec<string&()> gmock_GetName() {
...
}
// // Overload 2. Declared const so that the compiler will generate an
// // Overload 2. Declared const so that the compiler will generate an
// // error when trying to resolve between this and overload 4 in
// // error when trying to resolve between this and overload 4 in
// // 'gmock_GetName(WithoutMatchers(), nullptr)'.
// // 'gmock_GetName(WithoutMatchers(), nullptr)'.
...
@@ -125,7 +125,7 @@ class FunctionMocker<R($As)> : public
...
@@ -125,7 +125,7 @@ class FunctionMocker<R($As)> : public
// }
// }
//
//
// // Overload 3
// // Overload 3
// const string& gmock_GetName() const {
…
}
// const string& gmock_GetName() const {
...
}
// // Overload 4
// // Overload 4
// MockSpec<const string&()> gmock_GetName(
// MockSpec<const string&()> gmock_GetName(
// const WithoutMatchers&, const Function<const string&()>*) const {
// const WithoutMatchers&, const Function<const string&()>*) const {
...
...
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