| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
Add AllOfArray matcher that verifies a value matches all member of some array/container/list/set/..., e.g:
EXPECT_THAT(1, AnyOfArray({1, 2, 3}))
In the simplest form this is identical to AnyOf(1, 2, 3). But unlike that one it works on containers.
Add AnyOfArray matcher that verifies a value matches any member of some
array/container/list/set/...
PiperOrigin-RevId: 230403653
|
|
|
|
|
|
| |
Make internal FunctionMocker class final
PiperOrigin-RevId: 230332778
|
|
|
|
|
|
|
|
|
|
| |
Fix mocking method arguments with templated copy constructors.
A previous change removed workarounds for old compilers from googletest and googlemock. Unfortunately, a bit of code that started as a workaround for Symbian's C++ compiler is still needed to avoid copy/move constructor ambiguity when mocking functions with certain argument types.
The test case added by this CL is extracted from Chrome's codebase, and was discovered while attempting to roll googletest.
PiperOrigin-RevId: 229801765
|
|
|
|
|
|
|
|
|
| |
Refactor the `Invoke` and `InvokeWithoutArgs` actions:
- Replace pump'd classes and functions with templates.
- Make the polymorphic actions be polymorphic functors instead.
- Fix Invoke(Callback*) to work with subclasses of the callbacks, instead of trying to diagnose that in gmock_doctor.
PiperOrigin-RevId: 229604112
|
|
|
|
|
|
| |
Change remaining samples to use new Test Suite API
PiperOrigin-RevId: 229231566
|
|
|
|
|
|
| |
Add move-only argument support to almost all remaining matchers.
PiperOrigin-RevId: 229030728
|
|
|
|
|
|
|
| |
Deduplicate testing::ReferenceWrapper with std::reference_wrapper.
Minor cleanups in matchers_test.
PiperOrigin-RevId: 229022872
|
|
|
|
|
|
| |
Change tests to use new Test Suite API
PiperOrigin-RevId: 228908894
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| | |
...text exposed to GitHub repo https://www.github.com/google/googletest
PiperOrigin-RevId: 228573333
|
|/
|
|
|
|
|
|
|
|
| |
Fix warning about deprecation of implicit operations such as copy constructors or assignment operators.
Specifically:
MatcherBase's default copy constructor, assignment operator, move operator, and move assignment operator are now declared explicitly rather than depending on the compiler implicit generation (which is disallowed/warned against due to MatcherBase's declaration of the destructor).
PiperOrigin-RevId: 228573333
|
|\
| |
| |
| | |
PiperOrigin-RevId: 228337465
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
Replace testing::internal::ImplicitlyConvertible with std::is_convertible
Fixes #2054
PiperOrigin-RevId: 228334305
|
| |
| |
| |
| |
| |
| | |
Drop generated file gmock-generated-internal-utils.h.
PiperOrigin-RevId: 228232195
|
|\ \
| | |
| | |
| | | |
PiperOrigin-RevId: 228173023
|
| | | |
|
| |/
|/|
| |
| |
| |
| | |
Fix GTEST_IS_NULL_LITERAL_ for types that have magic implicit conversions.
PiperOrigin-RevId: 227879345
|
|\ \
| | |
| | | |
Update Docs TestCase->TestSuite
|
| |\ \
| |/ /
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Fixes #1261
PiperOrigin-RevId: 227740670
|
| | |
| | |
| | |
| | |
| | |
| | | |
TestCase->TestSuite refactoring
PiperOrigin-RevId: 227702164
|
|/ / |
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Example/sample makefile improvements
|
| | |
| | |
| | |
| | |
| | |
| | | |
and googletest.
Library files are now created and named like versions produced
by Cmake.
|
|\ \ \
| | | |
| | | |
| | | | |
PiperOrigin-RevId: 227615222
|
| |\ \ \
| | | | |
| | | | |
| | | | | |
https://github.com/ciband/googletest into chore/fix_library_json
|
| | | | |
| | | | |
| | | | |
| | | | | |
This is still a work in progress.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Internal Change
PiperOrigin-RevId: 227575279
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Remove the #ifs for old, unsupported and buggy compilers:
* old versions of GCC & MSVC
* Symbian
PiperOrigin-RevId: 227116941
|
|\ \ \ \ \
| |_|_|_|/
|/| | | | |
Remove outdated scripts
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
This reverts commit 4665eee10a1d495aec9970fddf6231cf2339b1b7.
|
| |\ \ \ \
| |/ / / /
|/| | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Update Xcode project file
|
|/ / / / /
| | | | |
| | | | |
| | | | | |
Remove files which no longer exist.
|
| | | | |
| | | | |
| | | | |
| | | | | |
PiperOrigin-RevId: 227030722
|
| | | | | |
|
|\ \ \ \ \
| | |_|/ /
| |/| | |
| | | | | |
PiperOrigin-RevId: 227028806
|
| | |/ /
| |/| | |
|
| | | | |
|
|\| | |
| | | |
| | | |
| | | | |
PiperOrigin-RevId: 226493373
|
| | | | |
|
| | | | |
|
| |_|/
|/| |
| | |
| | |
| | |
| | |
| | | |
Get rid of code generation for NiceMock / StrictMock.
They got small enough that it doesn't make sense to generate them.
PiperOrigin-RevId: 226455689
|
| | |
| | |
| | |
| | |
| | |
| | | |
Add public entry point testing::RegisterTest.
PiperOrigin-RevId: 226350937
|