| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Fixed issue: 2471
|
|
|
|
|
|
| |
Added IsNan matcher
PiperOrigin-RevId: 275473218
|
|
|
|
|
|
|
|
| |
Addressing https://github.com/google/googletest/issues/2502
Add MOCK_METHOD support for returning function pointers.
PiperOrigin-RevId: 275323671
|
|
|
|
|
|
| |
Added IsNan matcher
PiperOrigin-RevId: 275278634
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Mark more functions with "override" keyword, just like
it was done in commit 2460f97152c.
This should prevent compiler from complaining while compiling both
user code, and the googletest code itself with the -Wsuggest-override
option turned on; with the exception of:
* calls to new MOCK_METHOD() in test/gmock-function-mocker_test.cc
* calls to old MOCK_METHODx()/MOCK_CONST_METHODx() in other
unit test files.
Closes #2493
|
|\
| |
| |
| | |
PiperOrigin-RevId: 274155281
|
|\|
| |
| |
| | |
PiperOrigin-RevId: 274097989
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
Fix the O(n^2) number of instantiations in ElemFromList.
It is now O(n). It still has O(1) instantiation depth.
PiperOrigin-RevId: 273980821
|
|\ \
| |/
|/|
| | |
PiperOrigin-RevId: 273585026
|
| |
| |
| |
| |
| | |
This fixes up ab8f346b (a manual merge) that has abandoned some things
from PR #2395.
|
|/
|
|
|
|
| |
Makes testing::ResultOf() work with non-copyable arguments.
PiperOrigin-RevId: 271222632
|
|
|
|
|
|
|
|
|
| |
Merge 3bdefdb473d304803d2a38e2a2cd5cdc1827c3bd into fb49e6c164490a227bbb7cf5223b846c836a0305
Closes #2407
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/googletest/pull/2407 from kuzkry:StaticAssertTypeEq 3bdefdb473d304803d2a38e2a2cd5cdc1827c3bd
PiperOrigin-RevId: 269255328
|
|\
| |
| |
| | |
PiperOrigin-RevId: 268693457
|
| |
| |
| |
| |
| | |
Due to confusion arisen from "iff" standing for "if and only if",
this commit uses the latter.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Merge 4c9ef099b29d2c840c04643cd9662fd7be712f7b into 565f1b848215b77c3732bca345fe76a0431d8b34
Closes #2403
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/googletest/pull/2403 from IYP-Programer-Yeah:remove-compile-assert-type-equal 4c9ef099b29d2c840c04643cd9662fd7be712f7b
PiperOrigin-RevId: 268681883
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Merge 7f4f58da20e1066a888d3e4bcbef541db798a605 into 90a443f9c2437ca8a682a1ac625eba64e1d74a8a
Closes #2395
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/googletest/pull/2395 from kuzkry:custom-type-traits-remove_reference 7f4f58da20e1066a888d3e4bcbef541db798a605
PiperOrigin-RevId: 266189044
|
|\ \
| | |
| | |
| | | |
PiperOrigin-RevId: 265785837
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | | |
PiperOrigin-RevId: 265730482
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Add tuple version of Optional() matches. This allows Optional() to be used in Pointwise matchers.
PiperOrigin-RevId: 265501882
|
| |/ /
|/| |
| | |
| | |
| | |
| | | |
Add tuple version of Optional() matches. This allows Optional() to be used in Pointwise matchers.
PiperOrigin-RevId: 265110864
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Merge b8ca465e73ac0954a0c9eec2a84bdd8913d5763b into 90a443f9c2437ca8a682a1ac625eba64e1d74a8a
Closes #2396
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/googletest/pull/2396 from kuzkry:custom-type-traits-true/false_type-and-bool_constant b8ca465e73ac0954a0c9eec2a84bdd8913d5763b
PiperOrigin-RevId: 265064856
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | | |
kuzkry:custom-type-traits-duplication-of-custom-index_sequence
PiperOrigin-RevId: 264863984
|
| |/ / |
|
|\ \ \
| |_|/
|/| |
| | | |
PiperOrigin-RevId: 264652890
|
| |/ |
|
|\ \
| | |
| | |
| | | |
PiperOrigin-RevId: 264193098
|
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Remove legacy support for signed wchar_t and unsigned wchar_t.
Clang now errors out on these types as well by default. Rather than making the
condition for these types even more complicated, just remove the tests covering
these types since they don't seem to justify the maintenance burden. We
can reasonably expect these types to work in compilers that support them
without needing specific tests for them since they are treated as standard
integral types.
PiperOrigin-RevId: 263577673
|
|/ |
|
|\
| |
| |
| | |
PiperOrigin-RevId: 261947085
|
| |
| |
| |
| |
| | |
MockFunction's private member cannot be reached from outside and all its
non-static member functions are not const.
|
|\ \
| | |
| | |
| | | |
PiperOrigin-RevId: 261343928
|
| | | |
|
| |/
|/|
| |
| |
| |
| | |
Fix ON_CALL/EXPECT_CALL example comment
PiperOrigin-RevId: 261150884
|
| | |
|
|/
|
|
|
|
| |
Add copyright.
PiperOrigin-RevId: 259997211
|
|
|
|
|
|
|
| |
gmock-spec-builders.h uses std::function (in MockFunction) but did
not include <functional> to provide it. Apparently, it worked since
the header must have been included by something else but better be
safe than sorry.
|
|
|
|
|
|
| |
Fix documentation links
PiperOrigin-RevId: 258389329
|
|
|
|
|
|
| |
Update a broken link in a comment.
PiperOrigin-RevId: 257493975
|
|
|
|
| |
for including documentation in sync process
|
| |
|
|
|
|
|
|
| |
Remove special case for protocol buffers. It is no longer needed.
PiperOrigin-RevId: 246550795
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Per the MSVC documentation the warning is new as of Visual Studio 2017,
version 15.8.
https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/c5046?view=vs-2019
GTest users building on MSVC 2015 or older versions of 2017 will, when
C4616 is enabled, see a warning like:
[...]gtest-matchers.h(53): error C2220: warning treated as error - no 'object' file generated
[...]gtest-matchers.h(53): warning C4619: #pragma warning: there is no warning number '5046'
Guard the mention of 5046 by an _MSC_VER check. VS2017 15.8 corresponds
to an _MSC_VER of 1915.
https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=vs-2019
|
|
|
|
|
|
|
|
| |
Remove support for "global" ::string and ::wstring types.
This support existed for legacy codebases that existed from before namespaces
where a thing. It is no longer necessary.
PiperOrigin-RevId: 241335738
|
|
|
|
|
|
| |
Remove mention of unused type ProtocolMessage.
PiperOrigin-RevId: 239242706
|
|
|
|
|
|
| |
Action helpers need to pass by const& so that they can work with unique_ptr.
PiperOrigin-RevId: 239062671
|