Commit Graph

32 Commits

Author SHA1 Message Date
Abseil Team
210aab09de Googletest export
gMock Cookbook: Slight rewording

Remove "I" because documentation can have multiple authors. And remove unnecessary "guy".

PiperOrigin-RevId: 314533746
2020-06-05 03:56:49 -04:00
Abseil Team
6b08b41e5f Googletest export
Spell out namespace for absl::Notification.

PiperOrigin-RevId: 312300192
2020-05-28 19:54:10 -04:00
Abseil Team
373d72b698 Googletest export
Fix link to "After clause". Sorry, reader, but this heading is in another document!

PiperOrigin-RevId: 305947971
2020-04-16 13:32:42 -04:00
Abseil Team
cfb5ef4e7d Googletest export
Remove public buganizer reference from googletest cookbook.

It also seems that this bug is obsolete.

PiperOrigin-RevId: 298598298
2020-03-17 17:19:51 -04:00
Abseil Team
fd538161f4 Googletest export
Allow construction of an Action from a callable of zero args

Action already allows construction from a callable with the same args as the mocked function, without needing to wrap the callable in Invoke. However, if you don't care about the arguments to the mocked function you need to either accept all of them or wrap your callable in InvokeWithoutArgs. This change makes both of those unnecessary, since it allows you to pass a no-args callable to Action directly.

PiperOrigin-RevId: 296117034
2020-02-28 16:40:53 -05:00
Abseil Team
153909f096 Googletest export
Fix typo in example.

PiperOrigin-RevId: 287212448
2020-01-02 16:49:14 -05:00
krzysio
0a0c826629 Googletest export
Don't use fully qualified ::std types in code examples.

Having a nested user-defined 'std' namespace anywhere in a program is a minefield and shouldn't be either explicitly supported or implicitly condoned.

PiperOrigin-RevId: 285790182
2019-12-16 16:03:51 -05:00
Abseil Team
a783ade7c2 Googletest export
Updates headings.

PiperOrigin-RevId: 271148974
2019-09-27 16:48:26 -04:00
Abseil Team
076c46198f Googletest export
Remove unnecessary full qualifications from std types.

PiperOrigin-RevId: 270101485
2019-09-27 16:48:09 -04:00
Shaindel Schwartz
c7a03daa99 Merge pull request #2387 from kuzkry:iff
PiperOrigin-RevId: 268693457
2019-09-12 12:10:51 -04:00
Krystian Kuzniarek
7bd4a7f3e9 restore mistakenly removed iffs in their explicit form
Due to confusion arisen from "iff" standing for "if and only if",
this commit uses the latter.
2019-08-20 12:14:22 +02:00
misterg
eb78ee170a Googletest export
Fix broken link at beginning of "Mocking Non-virtual Methods" section.

PiperOrigin-RevId: 263772074
2019-08-16 11:23:59 -04:00
misterg
976b37fe93 Googletest export
Internal Change

PiperOrigin-RevId: 263768422
2019-08-16 11:23:51 -04:00
misterg
e9d5f427b5 Googletest export
Internal changes

PiperOrigin-RevId: 263636027
2019-08-15 17:34:42 -04:00
Abseil Team
a92e4a8e92 Googletest export
Internal changes

PiperOrigin-RevId: 262994110
2019-08-15 17:33:52 -04:00
Abseil Team
f8f5fcab3b Googletest export
Fix broken links.

PiperOrigin-RevId: 262123510
2019-08-07 11:57:22 -04:00
Abseil Team
dd5402d9d4 Googletest export
Add general explanation of MOCK_METHOD, including list of supported qualifiers.

PiperOrigin-RevId: 262077180
2019-08-07 11:57:13 -04:00
Abseil Team
6a2adc0eed Googletest export
Remove markdown extension which isn't supported on github.

PiperOrigin-RevId: 261321329
2019-08-02 11:32:23 -04:00
Gennadiy Civil
9311242db4 Merge pull request #2356 from kuzkry:typos
PiperOrigin-RevId: 260786935
2019-07-30 18:47:55 -04:00
Krystian Kuzniarek
bf6df7eaee fix typos 2019-07-30 12:52:27 +02:00
Gennadiy Civil
bb481d2da6 Manual docs tweaks still in preparation for including docs with code pushes 2019-07-29 10:53:47 -04:00
Gennadiy Civil
15756aa0c8 Manual docs tweaks still in preparation for including docs with code pushes 2019-07-18 11:39:49 -04:00
Gennadiy Civil
34ddfff946 Manual docs tweaks still in preparation for including docs with code pushes 2019-07-18 11:34:17 -04:00
Gennadiy Civil
947aeab281 Preparation for including docs in round-trip with OSS 2019-07-15 16:01:38 -04:00
Gennadiy Civil
5af948b30e Preparation for including docs in round-trip with OSS 2019-07-15 16:01:12 -04:00
Gennadiy Civil
073a2da403 Preparation for including docs in round-trip with OSS 2019-07-15 15:58:44 -04:00
Gennadiy Civil
31ff597888 Preparation for including docs in round-trip with OSS 2019-07-15 15:42:09 -04:00
Gennadiy Civil
5c4d53fd52
Merge pull request #2326 from kuzkry/missing-references-to-documentation
Add missing references to documentation
2019-07-15 13:29:29 -04:00
Krystian Kuzniarek
92d92f2f55 rename and apply snake_case on ForDummies.md 2019-07-13 08:09:11 +02:00
Krystian Kuzniarek
275bbc7884 rename and apply snake_case on CheatSheet.md 2019-07-13 07:47:14 +02:00
Sam Sobell
ee3aa83117 Fix bad advice in cook book (#2308)
This line directly contradicts the warning that google mock spits out on unused mock calls:
```
NOTE: You can safely ignore the above warning unless this call should not happen.  Do not suppress it by blindly adding an EXPECT_CALL() if you don't mean to enforce the call.  See https://github.com/google/googletest/blob/master/googlemock/docs/CookBook.md#knowing-when-to-expect for details.
```
One or the other should be changed, and I believe the advice in this file is incorrect.
2019-07-10 10:37:57 -04:00
Gennadiy Civil
152c7dfd06 missed the actual file in previous commit 2019-06-19 16:50:19 -04:00