Abseil Team
6b08b41e5f
Googletest export
...
Spell out namespace for absl::Notification.
PiperOrigin-RevId: 312300192
2020-05-28 19:54:10 -04:00
Abseil Team
fe5300ebf1
Googletest export
...
Addresses https://github.com/google/googletest/pull/2784
PiperOrigin-RevId: 310902202
2020-05-13 00:39:40 -04:00
Abseil Team
3cfb4117f7
Googletest export
...
Fix link to "high-perf dependency injection technique".
PiperOrigin-RevId: 308893893
2020-05-01 17:12:19 -04:00
Abseil Team
1293297874
Googletest export
...
internal change
PiperOrigin-RevId: 308648034
2020-05-01 17:11:52 -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
749148f1ac
Googletest export
...
Internal change
PiperOrigin-RevId: 302048013
2020-03-20 20:15:32 -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
11d9834e98
Googletest export
...
...text exposed to GitHub repo https://www.github.com/google/googletest
PiperOrigin-RevId: 293438092
2020-02-07 13:35:19 -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
ae8d1fc81b
Googletest export
...
Clarify use of IsTrue and IsFalse matchers.
These matchers are subtle and confusing: what are they for?
The docs in the code are clear, but not very accessible.
googletest/googlemock/include/gmock/gmock-more-matchers.h
PiperOrigin-RevId: 283393275
2019-12-02 16:42:01 -05:00
Abseil Team
4bf466236d
Googletest export
...
Add a breadcrumb about nullopt comparison near the Optional() matcher.
Also add a note about how otherwise-spurious 'Eq()' may be needed in some cases. Without this, something like Field(&MyStruct::optional_field_without_equals_equals, absl::nullopt) doesn't work - it converts the nullopt to an optional<> of the non-equalable type, and fails to select the operator==(optional<>, nullopt_t) overload. The Eq() lets the type persist later into the match.
PiperOrigin-RevId: 281305519
2019-11-20 14:16:45 -05:00
Xiaoyi Zhang
8aedd597af
Merge pull request #2548 from kuzkry:update-pump-manual
...
PiperOrigin-RevId: 278702531
2019-11-05 17:08:27 -05:00
Krystian Kuzniarek
523ad489ef
update pump_manual.md
2019-11-02 01:08:24 +01:00
Abseil Team
a1f71dd56d
Googletest export
...
Remove badly formatted suggestion in gmock cheat sheet.
PiperOrigin-RevId: 277060475
2019-10-29 16:51:01 -04:00
Krystian Kuzniarek
002905f29f
move the pumping script to googlemock
2019-10-25 17:03:39 +02:00
Abseil Team
37f3227831
Googletest export
...
Add a matcher `testing::ReturnRoundRobin` which, on each call, returns the next element in the sequence, restarting at the beginning once it has reached the end.
PiperOrigin-RevId: 276312136
2019-10-23 15:54:45 -04:00
Abseil Team
011c4e23d5
Googletest export
...
Rolling forward IsNan() matcher with fixes in test for -Wconversion issues. Use
std::nanf and std::nanl where appropriate.
PiperOrigin-RevId: 275523003
2019-10-22 09:37:46 -04:00
misterg
f966ed1581
Googletest export
...
Added IsNan matcher
PiperOrigin-RevId: 275473218
2019-10-18 11:34:08 -04:00
Abseil Team
bbe4b7363b
Googletest export
...
Added IsNan matcher
PiperOrigin-RevId: 275278634
2019-10-17 13:08:00 -04:00
Andy Soffer
bdc29d5dc1
Merge pull request #2421 from kuzkry:cleanup-for-regex
...
PiperOrigin-RevId: 275058934
2019-10-16 14:32:31 -04:00
hyuk.myeong
51f7396d40
Fix typo in documents
2019-10-01 14:24:55 +09: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
Krystian Kuzniarek
90a8ab70a1
mention the existing support for wide strings in string matchers
2019-09-23 19:16:31 +02:00
Shaindel Schwartz
c7a03daa99
Merge pull request #2387 from kuzkry:iff
...
PiperOrigin-RevId: 268693457
2019-09-12 12:10:51 -04:00
Abseil Team
3a45039862
Googletest export
...
Move IsFalse/IsTrue to a more appropriate section in the gmock matchers cheat sheet.
I'm assuming their current placement within the "Container Matchers" list is a mistake -- they don't seem to be container related and would fit well with other generic matchers.
PiperOrigin-RevId: 268016027
2019-09-09 13:40:40 -04:00
Abseil Team
62a109a2ff
Googletest export
...
...text exposed to GitHub repo https://www.github.com/google/googletest
PiperOrigin-RevId: 267654546
2019-09-09 13:40:33 -04:00
Abseil Team
c2b2cd8883
Googletest export
...
...text exposed to GitHub repo https://www.github.com/google/googletest
PiperOrigin-RevId: 267617889
2019-09-09 13:40:25 -04:00
Abseil Team
d1ad644db4
Googletest export
...
Update broken links.
PiperOrigin-RevId: 264405918
2019-08-21 17:13:26 -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
Abseil Team
fcffabb5be
Googletest export
...
Fix broken link to regex syntax guide in cheat_sheet.md
PiperOrigin-RevId: 263840914
2019-08-19 14:19:50 -04:00
Abseil Team
410b52985e
Googletest export
...
Fix a broken link about selecting overloaded methods.
PiperOrigin-RevId: 263807775
2019-08-19 14:19:42 -04: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
3835e15d72
Googletest export
...
Fix a link to the guide for creating custom matchers.
PiperOrigin-RevId: 262572684
2019-08-15 17:33:28 -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
b4961ab1cb
Googletest export
...
Fix broken link.
PiperOrigin-RevId: 261940226
2019-08-06 13:14:56 -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
Abseil Team
8756ef9058
Googletest export
...
Add links to "sampleK_unittest.cc" examples. Fix some broken docs crosslinks.
PiperOrigin-RevId: 261169561
2019-08-01 16:06:11 -04:00
misterg
2221875d0b
Googletest export
...
Internal Change
PiperOrigin-RevId: 260939845
2019-08-01 16:05:33 -04:00
Gennadiy Civil
9311242db4
Merge pull request #2356 from kuzkry:typos
...
PiperOrigin-RevId: 260786935
2019-07-30 18:47:55 -04:00
Gennadiy Civil
4cd6e4d359
Merge pull request #2355 from kuzkry:markdown-numbering
...
PiperOrigin-RevId: 260782065
2019-07-30 18:47:37 -04:00
Krystian Kuzniarek
bf6df7eaee
fix typos
2019-07-30 12:52:27 +02:00
Krystian Kuzniarek
d384b8831f
fix numbering of ordered lists in Markdown
2019-07-30 11:16:21 +02:00
Abseil Team
3821ecd573
Googletest export
...
Fix broken link.
PiperOrigin-RevId: 260548004
2019-07-29 15:36:36 -04:00