Abseil Team
d61d4d8e64
Support std::reference_wapper as a smart pointer type in gmock
...
PiperOrigin-RevId: 413963503
Change-Id: I33440780bf087698f4e4325399227405885430b3
2021-12-03 10:14:13 -08:00
Krystian Kuzniarek
dfc3675361
fix a typo
2021-11-16 09:18:03 +01:00
Taylor Cramer
1a3e2a265f
Clarify "Times() after X" error message
...
The previous error message could be misinterpreted to mean that `Times` could not be
used in combination with `WillRepeatedly`, when in fact the call to `Times` just needs to happen *first*.
PiperOrigin-RevId: 410070405
Change-Id: I747d34a4334cf2e56d589dcad3a08a8f322d77c8
2021-11-15 13:48:12 -08:00
Abseil Team
1b18723e87
Fix typo in gmock-matchers_test.cc: CanDescribeNegationOfExpectingOneElment => CanDescribeNegationOfExpectingOneElement
...
PiperOrigin-RevId: 409484263
Change-Id: I7448d6f04a9868602e0bc8dec40ea3eb63d3e387
2021-11-12 13:09:59 -08:00
Raul Tambre
5d1e4af673
Replace use of deprecated std::iterator
...
This was deprecated by P0174 in C++17.
2021-11-05 13:01:19 +02:00
Abseil Team
b3062166a1
Googletest export
...
Internal change
PiperOrigin-RevId: 405710296
2021-11-03 13:45:46 -04:00
Deniz Bahadir
64f19a9fc3
CMake: Fix values of INTERFACE_INCLUDE_DIRECTORIES property
...
Replace semicolon by `$<SEMICOLON>` in generator-expressions of target
property `INTERFACE_INCLUDE_DIRECTORIES` of CMake targets `gtest`,
`gtest_main`, `gmock` and `gmock_main`.
Fixes : #3616
Signed-off-by: Deniz Bahadir <deniz@code.bahadir.email>
2021-10-19 15:14:44 +02:00
dinord
075810f7a2
Merge pull request #3581 from cclauss:codespell
...
PiperOrigin-RevId: 400792845
2021-10-05 10:59:42 -04:00
Abseil Team
ab36804e42
Googletest export
...
Ensure `.what()` is printed in `ThrowsMessage(...)` to address https://github.com/google/googletest/issues/3582
Closes #3582
PiperOrigin-RevId: 399462851
2021-09-28 16:33:40 -04:00
Christian Clauss
ee1be03b43
Fix remaining typos discovered by codespell
2021-09-24 08:09:32 +02:00
dinord
e4717df71a
Merge pull request #3195 from Inujel:fix-3194
...
PiperOrigin-RevId: 398271948
2021-09-23 23:31:42 +00:00
dinord
319a9d19bc
Merge pull request #3574 from Vertexwahn:switch_to_native_cc_rules
...
PiperOrigin-RevId: 397995447
2021-09-23 23:31:25 +00:00
Abseil Team
de34ef4e4c
Internal change
...
PiperOrigin-RevId: 397651677
2021-09-23 23:31:03 +00:00
Vertexwahn
277e0a0168
Remove bazelbuild/rules_cc dependency
2021-09-17 10:04:26 +02:00
dmauro
8aa657ee39
Googletest export
...
Delete unsupported/deprecated scripts
PiperOrigin-RevId: 396847020
2021-09-15 13:34:06 -04:00
Abseil Team
314adcd40e
Googletest export
...
gmock-internal-utils.cc: Use `static_cast` instead of implicit conversion between signed and unsigned types
Fixes #3550
PiperOrigin-RevId: 396826071
2021-09-15 13:34:00 -04:00
dmauro
4ea61b9669
Googletest export
...
Rollback delete of unsupported/deprecated scripts
PiperOrigin-RevId: 396699187
2021-09-15 13:33:54 -04:00
dmauro
7ee2683007
Googletest export
...
Delete unsupported/deprecated scripts
PiperOrigin-RevId: 396685976
2021-09-15 13:33:48 -04:00
Abseil Team
6202251f09
Googletest export
...
Introduce GMOCK_FLAG_GET and GMOCK_FLAG_SET macros.
PiperOrigin-RevId: 396649214
2021-09-15 13:33:42 -04:00
Abseil Team
6204633979
Googletest export
...
Bump `cmake_minimum_required` to 3.5.
Delete conditional branches exclusive to older versions.
Notable dependents:
- github.com/grpc/grpc >= 3.5.1
- github.com/abseil/abseil-cpp >= 3.5
- github.com/googleapis/google-cloud-cpp >= 3.5
On the other hand, github.com/protocolbuffers/protobuf is >= 3.1.3, but it only depends on GoogleTest 1.10.
Fixes #3523
PiperOrigin-RevId: 392073834
2021-08-24 12:28:58 -04:00
Derek Mauro
0134d73a49
Merge pull request #3504 from duianto:patch-1
...
PiperOrigin-RevId: 390486428
2021-08-13 12:42:35 -04:00
Abseil Team
21514e0be7
Googletest export
...
Identify bad specs of the type (const something, ...).
PiperOrigin-RevId: 390346843
2021-08-13 12:42:17 -04:00
Abseil Team
aefb45469e
Internal change
...
PiperOrigin-RevId: 389163232
2021-08-06 15:28:29 -04:00
Abseil Team
652ec31f9f
Googletest export
...
Introduce a new matcher for unescaping Base-64 strings to gmock.
PiperOrigin-RevId: 388471904
2021-08-04 13:54:39 -04:00
duianto
97ff0fec11
Typo, double "the"
2021-07-29 20:32:48 +02:00
slowy07
2f3e2e39cc
fix: typo codespelling comment
2021-07-24 17:38:47 +07:00
Abseil Team
96f4ce02a3
Googletest export
...
Delete GOOGLETEST_CM.* tags from C++ code.
PiperOrigin-RevId: 386268534
2021-07-22 14:54:03 -04:00
Abseil Team
43cf52911a
Googletest export
...
Suppress a clang-tidy warning in the MATCHER(name, description) macro.
PiperOrigin-RevId: 383587271
2021-07-09 09:28:04 -04:00
Abseil Team
8306020a3e
Googletest export
...
Add `Conditional` wrapper to gtest
This follows an initial proposal for an 'EqIff` matcher. `Conditional` was considered more precise as an EqIff() matcher may suffer from `Iff` not being universally understood.
PiperOrigin-RevId: 383407665
2021-07-07 14:34:28 -04:00
Abseil Team
977cffc442
Googletest export
...
Introduce GTEST_FLAG_GET and GTEST_FLAG_SET macros.
PiperOrigin-RevId: 382808313
2021-07-07 14:34:19 -04:00
Abseil Team
4ec4cd23f4
Googletest export
...
Implement 'Contains(e).Times(n)' matcher modifier which allows to test for arbitrary occurrences including absence with Times(0).
PiperOrigin-RevId: 382210276
2021-06-30 13:33:57 -04:00
Manuel Binna
4281d2149c
Don't link pthread on QNX
...
On QNX, pthread is part of libc [1]. There's no separate pthread library
to link.
[1] https://www.qnx.com/developers/docs/7.1/index.html#com.qnx.doc.neutrino.lib_ref/topic/p/pthread_create.html
2021-06-26 13:26:20 +02:00
CJ Johnson
7153098229
Merge pull request #3429 from 1KoT1:master
...
PiperOrigin-RevId: 379625931
2021-06-17 12:52:27 -04:00
Vasilii Pochkaenko
5ef9f63a72
feat: make a matcher ElementsAreArray applicable for std ranges
2021-06-15 16:42:40 +07:00
dmauro
8ceecc27c7
Googletest export
...
Updates Linux docker image to use Bazel 4.1.0 and GCC 11.1
Updates Bazel dependencies
Removes the last usage of the deprecated and removed Python2
PiperOrigin-RevId: 375759184
2021-06-02 17:54:36 -04:00
Abseil Team
662fe38e44
Googletest export
...
Support templating MockFunction over function objects besides std::function.
PiperOrigin-RevId: 373586967
2021-05-13 15:08:57 -04:00
John Bampton
050b517518
chore: fix spelling
2021-04-15 11:53:53 +10:00
Abseil Team
c3fc92f0b7
Googletest export
...
Update docs to point to the github.io pages.
PiperOrigin-RevId: 367711335
2021-04-12 20:14:19 -07:00
Austin Sullivan
9c047902ac
Update nicestrictnaggy gmock cook_book links
...
An incorrect link is output to the user when these conditions are met.
2021-03-17 10:33:19 -04:00
Abseil Team
98ca420679
Googletest export
...
Internal change
PiperOrigin-RevId: 362040448
2021-03-16 09:50:49 -04:00
Abseil Team
861d535e25
Googletest export
...
Update READMEs and issue template
PiperOrigin-RevId: 361931644
2021-03-10 08:49:32 -08:00
Abseil Team
bf465ff05d
Internal change
...
PiperOrigin-RevId: 361213113
2021-03-09 10:59:19 -08:00
Abseil Team
e7e591764b
Googletest export
...
Format WORKSPACE and googlemock/test/BUILD.bazel using buildifier
PiperOrigin-RevId: 360913861
2021-03-04 12:07:39 -05:00
Abseil Team
5893778716
Googletest export
...
Update stale links to `gmock_cook_book.md`.
I'm a new googletest user and found these links broken when reading the documentation.
PiperOrigin-RevId: 357786392
2021-02-18 13:27:00 -05:00
Abseil Team
0a3a3a845e
Googletest export
...
Make include guards conform with https://google.github.io/styleguide/cppguide.html#The__define_Guard , attempt #2
PiperOrigin-RevId: 357056902
2021-02-18 13:26:24 -05:00
Abseil Team
eac6a02cc2
Googletest export
...
Mark move constructor noexcept
PiperOrigin-RevId: 356772642
2021-02-11 12:49:46 -05:00
Abseil Team
d4144d4ee2
Googletest export
...
Revert include guard fix
PiperOrigin-RevId: 356588893
2021-02-11 12:49:24 -05:00
Andy Soffer
e165773418
Merge pull request #3262 from platisd:master
...
PiperOrigin-RevId: 356568444
2021-02-11 12:49:08 -05:00
Abseil Team
9c2293af06
Googletest export
...
Fix build for MinGW + clang
In [1], empty_bases "is only supported when using the Microsoft C++ ABI." Disable it for MinGW.
https://clang.llvm.org/docs/AttributeReference.html#empty-bases
PiperOrigin-RevId: 356373782
2021-02-11 12:48:52 -05:00
Abseil Team
36b7792047
Googletest export
...
Make include guards conform with https://google.github.io/styleguide/cppguide.html#The__define_Guard
PiperOrigin-RevId: 355882793
2021-02-11 12:48:43 -05:00