| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Internal Change
PiperOrigin-RevId: 233614147
|
|\
| |
| |
| | |
PiperOrigin-RevId: 233096223
|
| |
| |
| |
| |
| |
| | |
Internal changes.
PiperOrigin-RevId: 232953166
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Fix matcher comparisons for std::reference_wrapper.
The googletest docs indicate that std::reference_wrapper should be used to for
objects that should not be copied by the matcher (in fact, the ByRef() function
is basically the same as a call to std::cref).
However, for many types (such as std::string), the overloaded operator== will
not resolve correctly. Specifically, this is problematic if operator== depends
on template argument deduction, where the same type is named on LHS and RHS.
Because template argument deduction happens before any implict conversions for
purposes of overload resolution, attempting to compare T with
std::reference_wrapper<T> simply looks like a comparison of unlike types.
For exapmle, std::reference_wrapper<std::string> is implicitly convertible to
'const std::string&', which would be able to choose an overload specialization
of operator==. However, the implicit conversion can only happen after template
argument deduction for operator==, so a specialization that would other be an
applicable overload is never considered.
Note also that this change only affects matchers. There are good reasons that
matchers may need to transparently hold a std::reference_wrapper. Other
comparisons (like EXPECT_EQ, et. al.) don't need to capture a reference: they
don't need to defer evaluation (as in googlemock), and they don't need to avoid
copies (as the call chain of matchers does).
PiperOrigin-RevId: 232499175
|
| |
| |
| |
| |
| |
| | |
Internal change
PiperOrigin-RevId: 232362580
|
| |
| |
| |
| |
| |
| |
| | |
This is just a mistake in the document. Google Test doesn't output
such an invalid JSON report.
Signed-off-by: Keiichi Watanabe <keiichiw@chromium.org>
|
| |
| |
| |
| |
| |
| |
| |
| | |
Address -Wgnu-zero-variadic-macro-arguments
Originally in OSS PR #2063 https://github.com/google/googletest/pull/2063
Fix regression in INSTANTIATE_TEST_SUITE_P macro to accept function pointers properly.
PiperOrigin-RevId: 232316698
|
| |
| |
| |
| |
| |
| | |
Mark legacy _TEST_CASE_ macros as deprecated
PiperOrigin-RevId: 232303251
|
| |
| |
| |
| |
| |
| |
| | |
Update example code in gtest.h to prefer override over virtual now
that it is widely available in C++11.
PiperOrigin-RevId: 232057792
|
|\ \
| |/
|/|
| | |
PiperOrigin-RevId: 232028696
|
|/
|
|
|
| |
Added Arduino to the embedded platform list to allow for a stubbed out version
of GetCurrentDir.
|
|
|
| |
Fix the **include/gtest/internal/gtest-port.h** link in the `Tweaking Google Test` title
|
|
|
| |
Testing
|
|\
| |
| |
| | |
PiperOrigin-RevId: 231456275
|
| |
| |
| | |
Updated the example that says not to use SetupTestSuite with a small 'u' to actually use a small 'u'
|
|\ \
| |/
| |
| | |
PiperOrigin-RevId: 231434457
|
| | |
|
| |
| |
| |
| | |
MD(d)->MT(d) in both C and CXX flags, resolves 2074
|
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| | |
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \
| | | |
| | | |
| | | | |
PiperOrigin-RevId: 228173023
|
| | | | |
|
| |/ /
|/| |
| | |
| | |
| | |
| | | |
Fix GTEST_IS_NULL_LITERAL_ for types that have magic implicit conversions.
PiperOrigin-RevId: 227879345
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Internal Change
PiperOrigin-RevId: 227575279
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Remove the #ifs for old, unsupported and buggy compilers:
* old versions of GCC & MSVC
* Symbian
PiperOrigin-RevId: 227116941
|
| |_|/
|/| | |
|
| | |
| | |
| | |
| | | |
Remove files which no longer exist.
|
| |/
|/|
| |
| | |
PiperOrigin-RevId: 227030722
|
| |
| |
| |
| |
| |
| | |
Add public entry point testing::RegisterTest.
PiperOrigin-RevId: 226350937
|
| |
| |
| |
| |
| |
| | |
Unifdef c++11-related macros from googletest now that it requires C++11.
PiperOrigin-RevId: 225905601
|