Derek Mauro
96f51426e4
Remove support for C++11
...
v1.12.x is the last branch to support C++11
Future releases will require at least C++14
PiperOrigin-RevId: 458250106
Change-Id: Ibee2248649ff3c13daaa179135887848bf730f3f
2022-06-30 09:53:51 -07:00
Derek Mauro
219af0d535
Update version number in CMakeLists.txt
...
Note that this is 1.12.1 as there will be a patch release to fix this
PiperOrigin-RevId: 458216994
Change-Id: Ibca52a8db22ed06cb1a1adc4832be67fce69459a
2022-06-30 07:10:22 -07:00
Abseil Team
d9335595b4
Add support of 17-member structs to gmock UnpackStructImpl.
...
PiperOrigin-RevId: 458018249
Change-Id: I7df8f75ef5b5a6478e7301f959c221810ff9f0b3
2022-06-29 11:10:54 -07:00
Abseil Team
9406a60c78
Mark internal-only function as having internal linkage.
...
PiperOrigin-RevId: 457550818
Change-Id: I9046801b64ce4581d742d650451332fd56489632
2022-06-27 13:16:09 -07:00
Copybara-Service
cdbed602b9
Merge pull request #3912 from jarkenau:main
...
PiperOrigin-RevId: 457479731
Change-Id: Ia883186c01886196f23c3957381566eab3d76c5f
2022-06-27 07:55:52 -07:00
assafpr
dd72ed19fe
Update gtest.cc
...
fix a broken link
2022-06-27 09:59:06 +03:00
assafpr
d0af91ead3
Update gmock-matchers.h
...
branch master changed to main on link
2022-06-27 09:56:59 +03:00
assafpr
1547c2acc8
Update gmock-actions.h
...
master branch changed to main in links
2022-06-27 09:55:28 +03:00
assafpr
66d2463610
Update gmock-spec-builders_test.cc
...
master branch changed to main in link
2022-06-27 09:53:40 +03:00
assafpr
64df55449a
Update gtest-death-test.cc
2022-06-27 09:51:44 +03:00
assafpr
dfa990f942
Update gmock-spec-builders.cc
2022-06-27 09:50:36 +03:00
assafpr
df4b8edee0
Update advanced.md
...
master branch changed to main branch in links
2022-06-27 09:48:05 +03:00
Jérôme Travert
5eaa113903
Avoid implicit conversion from int to char
2022-06-26 19:01:00 +02:00
Jérôme Travert
72901486ba
Avoid implicit conversion from int to char
2022-06-26 18:59:46 +02:00
Julian Arkenau
b9d2e1f62f
docs: update googletest README for release 1.12.0
2022-06-25 14:41:57 +02:00
Derek Mauro
5376968f69
Update README.md for release 1.12.0
...
PiperOrigin-RevId: 456833286
Change-Id: Iefcc6a71f5da9bb710f112b668cddcd1683a10ae
2022-06-23 12:18:54 -07:00
Derek Mauro
15460959cb
Update versions of WORKSPACE dependencies
...
PiperOrigin-RevId: 456532035
Change-Id: I60fa4d4e7827516d317ce893377d1f72e49c6a2f
2022-06-22 09:23:46 -07:00
assafpr
fde6af6790
documentation, change mater branch to main
2022-06-22 16:21:35 +03:00
assafpr
b59ae848d1
Update faq.md
2022-06-22 16:12:54 +03:00
assafpr
f2f099fb70
Update CONTRIBUTING.md
2022-06-22 16:09:54 +03:00
assafpr
1b772a9bc4
documentation, change mater branch to main
2022-06-22 14:36:10 +03:00
assafpr
358a3f6e3e
documentation, change mater branch to main
2022-06-22 14:31:03 +03:00
assafpr
b3f3819a62
Update gmock_output_test_golden.txt
2022-06-22 14:21:07 +03:00
assafpr
3d1dcac4c4
change link from master to main in documentation
...
since master branch was changed to main, the links should be changed accordingly.
2022-06-22 14:15:53 +03:00
Derek Mauro
7df7853ea0
Update GCC floor container used by CI to fix the Bazel cache error
...
PiperOrigin-RevId: 456323043
Change-Id: I86e3d52b72b51c2d4e96f536daa7f84a52c598f5
2022-06-21 12:27:37 -07:00
Derek Mauro
86add13493
Disable warning C4251 around refactored code
...
PiperOrigin-RevId: 455452553
Change-Id: I1dc3772ae61daf6d2d39484a0b1aad7eb0134525
2022-06-16 13:18:32 -07:00
Copybara-Service
191ca1f3a9
Merge pull request #3863 from eidosmontreal:fix_unused-variable_warning
...
PiperOrigin-RevId: 454940948
Change-Id: Ic87dadfe9c6fc8882b0f425aa2056f0cc7a90b55
2022-06-14 13:24:55 -07:00
Abseil Team
8b521aa43a
gmock_cook_book.md: Delete superfluous statement from 2014.
...
PiperOrigin-RevId: 454677195
Change-Id: I7a1419e22d617db41a5c310bc6f6158ba4cec1ab
2022-06-13 12:51:26 -07:00
Copybara-Service
b644b4fbbf
Merge pull request #3866 from eidosmontreal:simplify_shouldusecolor
...
PiperOrigin-RevId: 454616721
Change-Id: I33b5671646ec027da48cc941baf84b4ddc722e07
2022-06-13 08:38:29 -07:00
Gaspard Petit
fe735a6986
Move declaration of kStdOutFileNo and kStdErrFileno
...
Move declaration of kStdOutFileNo and kStdErrFileno closer to where they are used to avoid having to guard for GTEST_HAS_STREAM_REDIRECTION twice
2022-06-11 10:26:41 -04:00
Abseil Team
b1f84bf176
Update googletest docs to indicate that RE2 is now used for regexp implementation when building with Bazel and using Abseil.
...
PiperOrigin-RevId: 454012698
Change-Id: I3a9df78368ffe3cb7cf3d315001125b97b1aebbe
2022-06-09 14:25:17 -07:00
Abseil Team
49c6185ae7
Remove undefined internal function.
...
Fixes #3856
PiperOrigin-RevId: 453992227
Change-Id: I5f3330a454bdcd6b0522ebba4cdfe2c888f8e638
2022-06-09 12:57:51 -07:00
Derek Mauro
0320f517fd
Work around a maybe-uninitialized warning under GCC 12
...
Some Mock constructors insert the pointer to the Mock itself into a
global registry. Since GCC cannot see how the pointer is used (only as
an identifier), it cannot tell that the object doesn't need to be
initialized at that point at all. Work around this by using uintptr_t
instead.
PiperOrigin-RevId: 452380347
Change-Id: Ia5a493057ed90719de1d0efab71de9a8a08ddf8b
2022-06-01 14:08:04 -07:00
Gaspard Petit
a86777edf9
Fix for undefined symbol: testing::internal::Random::kMaxRange
2022-05-31 17:35:34 -04:00
Abseil Team
548b13dc3c
Fix internal files
...
PiperOrigin-RevId: 452053766
Change-Id: I9498e8809f5e66e42cfa365199a5bbc41462a533
2022-05-31 08:33:31 -07:00
Gaspard Petit
3727a90075
Merge branch 'google:main' into simplify_shouldusecolor
2022-05-30 22:01:15 -04:00
Gaspard Petit
900c3f9cd5
Merge branch 'google:main' into fix_unused-variable_warning
2022-05-30 22:00:02 -04:00
Aaron Jacobs
e649993a40
gmock-spec-builders: remove the name for an unused parameter.
...
This fixes unused parameter errors under both MSVC and clang (when
`-Werror=unused-parameter` is used, as reported
[here](9d21db9e0a (r74769946)
)).
Fixes #3858
PiperOrigin-RevId: 451907906
Change-Id: Ic07da19ea6a547eb1797fbbab19cd57cc2a83fe8
2022-05-30 12:46:59 -07:00
Gaspard Petit
59006287cd
Simplify ColoredPrintf to rely on ShouldUseColor
...
Use ShouldUseColor to set use_color instead of having a separate check for the windows mobile cases; these cases are now moved directly to `DoIsATTY`
2022-05-30 14:19:50 -04:00
Gaspard Petit
410e5f9e04
Fix "unused variable" warning
...
Fix "unused variable" warning when GTEST_HAS_STREAM_REDIRECTION is set to false in gtest-port.cc
2022-05-30 11:04:54 -04:00
Aaron Jacobs
9d21db9e0a
gmock-spec-builders: add support for non-moveable types.
...
Do this by ripping out the "untyped perform action" machinery, which isn't
necessary: we can simply template the entry point on the result type, and use
RAII to avoid the need to special case void. This makes it easier to understand
the code and harder to introduce type-related undefined behavior, to boot.
PiperOrigin-RevId: 451493451
Change-Id: I225305f83164752ca92f2916721972eafba33168
2022-05-27 15:25:37 -07:00
elixir
6cd3823783
Clarify that this->
is needed to access members of type-parameterized tests.
...
PiperOrigin-RevId: 451439108
Change-Id: I8929df21d53cbe6c42e38653e1bb0cac72fc36f9
2022-05-27 11:32:10 -07:00
Aaron Jacobs
28356773cb
gmock-actions: properly support non-moveable results in is_callable_r
.
...
Previously this excluded callables that return non-moveable types. This is the
same as the
[libc++ std::is_invocable_r bug](https://github.com/llvm/llvm-project/issues/55346 )
fixed by
[this commit](https://github.com/llvm/llvm-project/commit/c3a24882903d ): it's
wrong to use std::is_convertible for checking the return type, since (despite
its name) that doesn't check the standard-defined notion of "implicitly
convertible". Instead we must base the check on whether the source type can be
used as an argument to a function that accepts the destination type.
PiperOrigin-RevId: 451341205
Change-Id: I2530051312a0361ea7a2ce26993ae973c9242089
2022-05-27 02:23:49 -07:00
Aaron Jacobs
56246cdb94
gmock-spec-builders: move a method to the header.
...
In order to make the diff more readable in an upcoming commit that requires the
method to be templated on the action's result type.
PiperOrigin-RevId: 451157029
Change-Id: I57beb7544efccd0459efb3a1f039ea45cd7c7602
2022-05-26 07:25:17 -07:00
Abseil Team
cf942a5d69
Update GoogleTest documentation's spelling of "GoogleTest".
...
PiperOrigin-RevId: 451067898
Change-Id: I658ab92c4ea616736f0170ac4d1548bb15a944e2
2022-05-25 19:18:09 -07:00
Abseil Team
7041051488
Clarify the pitfalls of EXPECT_THAT and highlight it's best practices
...
PiperOrigin-RevId: 450721917
Change-Id: I34d63a65b7158975abd46a9a14cded75439e7e7f
2022-05-24 10:57:53 -07:00
Axel Kohlmeyer
6f3f9a9e61
set -utf-8 flag only for real MSVC compilers. E.g. not Intel's icx.exe
2022-05-18 15:51:33 -04:00
Dino Radakovic
8d51dc50eb
gmock-internal-utils.cc: Avoid implicit conversion from int to char
...
Fixes #3832
PiperOrigin-RevId: 449158813
Change-Id: Ibe85239ab1f123097b2c1b61616c9d611e5b90d0
2022-05-17 01:37:27 -07:00
Aaron Jacobs
5126f71661
gmock-actions: add support for move-only values to Return.
...
`Return(x)` can now be used directly with `WillOnce` (the only place it makes
sense in the type system), without using `ByMove`.
PiperOrigin-RevId: 448380066
Change-Id: Ia71cc60ccbc3b99720662731a2d309735a5ce7c8
2022-05-12 17:55:11 -07:00
Abseil Team
8a011b8a38
Add clarifying comments about when to use EXPECT_NONFATAL_FAILURE vs. EXPECT_FATAL_FAILURE.
...
PiperOrigin-RevId: 448237839
Change-Id: Id6242f278912f8c47cf19e3ea8c061f8b18ba832
2022-05-12 06:58:02 -07:00