| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This will help ensure that test coverage isn't missed when changes that
can impact OSX with clang are submitted. Although not perfect, testing
changes on OSX with clang is an ok proxy [for now] for testing changes on
FreeBSD with clang (testing on FreeBSD is non-trivial, as Travis CI doesn't
support operating systems other than Linux and OSX).
In order to support this, install the packages via homebrew using a
`addons::homebrew::packages` block (similar to `addons::apt::packages`
for Ubuntu), as documented in the Travis CI docs
( https://docs.travis-ci.com/user/installing-dependencies/ ). While
here, try pushing apt* calls into the Travis config for Ubuntu, instead
of delaying the equivalent calls in the `ci/*.sh` scripts. Keep the
`ci/*.sh` scripts for ease of testing locally (and extend the OSX one to
install gcc 4.9 and llvm 3.9, like the travis config does).
In order to accomodate this change (and because the homebrew package for
llvm@3.9 doesn't automatically add clang*-3.9 to `$PATH`), `$PATH` needs
to be adjusted to find the llvm@3.9 toolchain.
Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
|
|
|
|
|
|
| |
Fix stack overflow in AnyOfArray tests.
PiperOrigin-RevId: 231881125
|
|\
| |
| | |
Fix README.md broken link
|
|/
|
| |
Fix the **include/gtest/internal/gtest-port.h** link in the `Tweaking Google Test` title
|
|\
| |
| | |
Repeat #2090
|
|/
|
| |
Testing
|
|\
| |
| |
| | |
PiperOrigin-RevId: 231456275
|
|\ \
| | |
| | | |
Update advanced.md casing in example
|
|/ /
| |
| | |
Updated the example that says not to use SetupTestSuite with a small 'u' to actually use a small 'u'
|
| |
| |
| | |
This is inspired by work in http://go/gh/google/googletest/pull/2063 but in a separate commit
|
|\|
| |
| |
| | |
PiperOrigin-RevId: 231434457
|
| | |
|
|\ \
| | |
| | |
| | | |
PiperOrigin-RevId: 231286700
|
|/ /
| |
| |
| | |
MD(d)->MT(d) in both C and CXX flags, resolves 2074
|
|\ \
| | |
| | |
| | | |
PiperOrigin-RevId: 230902623
|
|/ /
| |
| |
| |
| |
| | |
I made a few updates to the Makefile.am files so that "make dist"
succeeds and produces a usable tarball. We need this for protobuf
because the protobuf tarballs include a bundled copy of googletest.
|
|\ \
| | |
| | |
| | | |
PiperOrigin-RevId: 230554814
|
| | |
| | |
| | |
| | | |
Added setup()/loop() functions back to *_main.cc files to support compiling in CI. Future features could enable this for the end user.
|
| | | |
|
| | | |
|
| |\ \
| | | |
| | | |
| | | | |
https://github.com/ciband/googletest into chore/fix_library_json
|
| | |\ \ |
|
| | | | | |
|
| |/ / / |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Improved flexibility by removing the Arduino entry points in favor of manual calls to setup/loop that the user can call from their entry point. This is the more common use case for Arudino.
Also added the gtest/gmock_main files to the PlatformIO ignore list since we are not supporting that feature.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
|/ / / |
|