summaryrefslogtreecommitdiffstats
path: root/googletest
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | Compile clang with `-Wall -Wshadow -Werror`refs/pull/2120/headEnji Cooper2019-02-131-0/+4
| |/ / / | | | | | | | | | | | | | | | | | | | | It was not compiling any of the code with warnings prior to this. Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
* | | | Merge pull request #2113 from knuto:pr/set_old_gtest_verGennadiy Civil2019-02-132-5/+8
|\ \ \ \ | |/ / / |/| | | | | | | PiperOrigin-RevId: 233748252
| * | | Set gtest version correctly for older cmake versionsrefs/pull/2113/headKnut Omang2019-02-111-0/+4
| |/ / | | | | | | | | | Signed-off-by: Knut Omang <knut.omang@oracle.com>
* | | Googletest exportmisterg2019-02-121-0/+68
| | | | | | | | | | | | | | | | | | Internal Change PiperOrigin-RevId: 233614147
* | | Merge pull request #2101 from MaEtUgR:fix-cmake-cygwinGennadiy Civil2019-02-121-4/+5
|\ \ \ | | | | | | | | | | | | PiperOrigin-RevId: 233096223
* | | | Googletest exportAbseil Team2019-02-121-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Internal changes. PiperOrigin-RevId: 232953166
* | | | Googletest exportAbseil Team2019-02-121-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Googletest exportAbseil Team2019-02-121-68/+0
| |/ / |/| | | | | | | | | | | | | | Internal change PiperOrigin-RevId: 232362580
* | | Fix an invalid example of JSON report in advanced.mdrefs/pull/2103/headKeiichi Watanabe2019-02-051-5/+4
| | | | | | | | | | | | | | | | | | | | | 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>
* | | Googletest exportmisterg2019-02-043-27/+35
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Googletest exportmisterg2019-02-045-22/+63
| | | | | | | | | | | | | | | | | | Mark legacy _TEST_CASE_ macros as deprecated PiperOrigin-RevId: 232303251
* | | Googletest exportAbseil Team2019-02-041-4/+4
| | | | | | | | | | | | | | | | | | | | | Update example code in gtest.h to prefer override over virtual now that it is widely available in C++11. PiperOrigin-RevId: 232057792
* | | Merge pull request #2098 from ciband:feat/finish_platformio_supportGennadiy Civil2019-02-041-2/+3
|\ \ \ | |/ / |/| | | | | PiperOrigin-RevId: 232028696
| * | fix: Add Arduino to embedded platform listChris2019-02-011-2/+2
|/ / | | | | | | | | Added Arduino to the embedded platform list to allow for a stubbed out version of GetCurrentDir.
* | Fix README.md broken linkrefs/pull/2092/headBilly SU2019-01-311-1/+1
| | | | | | Fix the **include/gtest/internal/gtest-port.h** link in the `Tweaking Google Test` title
* | Repeat #2090 refs/pull/2091/headGennadiy Civil2019-01-301-1/+1
| | | | | | Testing
* | Merge pull request #2063 from mathbunnyru:masterAshley Hedberg2019-01-303-17/+30
|\ \ | | | | | | | | | PiperOrigin-RevId: 231456275
* | | Update advanced.md casing in examplerefs/pull/2090/headKelly Walker2019-01-301-1/+1
| | | | | | | | | Updated the example that says not to use SetupTestSuite with a small 'u' to actually use a small 'u'
* | | Merge pull request #2063 from mathbunnyru:masterGennadiy Civil2019-01-292-29/+16
|\ \ \ | |/ / | | | | | | PiperOrigin-RevId: 231434457
| * | Fix INSTANTIATE_TEST_CASE_P with zero variadic argumentsAyaz Salikhov2019-01-182-7/+32
| | |
* | | Avoid dynamic/static runtime linking (LNK4098) by properly replacing ↵refs/pull/2086/headHugo Lindström2019-01-281-0/+2
| | | | | | | | | | | | MD(d)->MT(d) in both C and CXX flags, resolves 2074
* | | Fixed "make dist"refs/pull/2079/headAdam Cozzette2019-01-241-12/+13
| | | | | | | | | | | | | | | | | | 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.
* | | Merge pull request #2041 from ciband:chore/fix_library_jsonGennadiy Civil2019-01-233-7/+21
|\ \ \ | |/ / |/| | | | | PiperOrigin-RevId: 230554814
| * | fix: Add Arduino setup()/loop() functions backChris2019-01-071-0/+14
| | | | | | | | | | | | Added setup()/loop() functions back to *_main.cc files to support compiling in CI. Future features could enable this for the end user.
| * | misc: Reapply Arduino functionsChris2019-01-041-0/+14
| | |
| * | misc: Revert formatting changes.Chris2019-01-041-157/+176
| | |
| * | Merge branch 'master' into chore/fix_library_jsonChris Johnson2019-01-0446-1630/+1930
| |\ \
| * | | fix: Remove Arduino entry pointsChris2019-01-032-210/+169
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Googletest exportmisterg2019-01-143-12/+11
| | | | | | | | | | | | | | | | | | | | | | | | Change remaining samples to use new Test Suite API PiperOrigin-RevId: 229231566
* | | | Googletest exportAbseil Team2019-01-141-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | Add move-only argument support to almost all remaining matchers. PiperOrigin-RevId: 229030728
* | | | Googletest exportAbseil Team2019-01-142-8/+11
| |_|/ |/| | | | | | | | | | | | | | | | | Deduplicate testing::ReferenceWrapper with std::reference_wrapper. Minor cleanups in matchers_test. PiperOrigin-RevId: 229022872
* | | Googletest exportmisterg2019-01-1124-494/+486
| | | | | | | | | | | | | | | | | | Change tests to use new Test Suite API PiperOrigin-RevId: 228908894
* | | Googletest exportAbseil Team2019-01-101-8/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge pull request #2051 from enptfb55:mastergennadiycivil2019-01-086-120/+136
|\ \ \ | | | | | | | | | | | | PiperOrigin-RevId: 228337465
| * | | fixing build errors for unused parameterrefs/pull/2051/headrefs/pull/2050/headSal Amato2019-01-061-6/+6
| | |/ | |/|
* | | Googletest exportmisterg2019-01-084-83/+5
| | | | | | | | | | | | | | | | | | | | | Replace testing::internal::ImplicitlyConvertible with std::is_convertible Fixes #2054 PiperOrigin-RevId: 228334305
* | | Merge pull request #2048 from ciband:chore/clang_tidygennadiycivil2019-01-076-131/+115
|\ \ \ | | | | | | | | | | | | PiperOrigin-RevId: 228173023
| * | | clang-tidy: modernize-deprecated-headersrefs/pull/2048/headChris2019-01-051-1/+1
| | | |
* | | | Googletest exportAbseil Team2019-01-072-8/+45
| |/ / |/| | | | | | | | | | | | | | Fix GTEST_IS_NULL_LITERAL_ for types that have magic implicit conversions. PiperOrigin-RevId: 227879345
* | | Merge branch 'master' of https://github.com/google/googletestrefs/pull/2042/headGennadiy Civil2019-01-0321-1115/+1498
|\ \ \
| * | | Googletest exportmisterg2019-01-033-38/+48
| | | | | | | | | | | | | | | | | | | | | | | | Fixes #1261 PiperOrigin-RevId: 227740670
| * | | Googletest exportmisterg2019-01-0319-1077/+1450
| | | | | | | | | | | | | | | | | | | | | | | | TestCase->TestSuite refactoring PiperOrigin-RevId: 227702164
* | | | Update docs, TestCase->TestSuiteGennadiy Civil2019-01-033-108/+106
|/ / /
* | | Merge pull request #2026 from justin6case/example_makefile_improvementsGennadiy Civil2019-01-031-6/+12
|\ \ \ | | | | | | | | Example/sample makefile improvements
| * | | Improvements have been made to the example/sample makefiles for both googlemockrefs/pull/2026/headCase, Matt2018-12-211-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | and googletest. Library files are now created and named like versions produced by Cmake.
* | | | Merge pull request #2037 from ciband:chore/fix_library_jsonGennadiy Civil2019-01-035-0/+1718
|\ \ \ \ | | |_|/ | |/| | | | | | PiperOrigin-RevId: 227615222
* | | | Googletest exportmisterg2019-01-0223-89/+1
| | | | | | | | | | | | | | | | | | | | | | | | Internal Change PiperOrigin-RevId: 227575279
* | | | Googletest exportAbseil Team2019-01-0212-165/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the #ifs for old, unsupported and buggy compilers: * old versions of GCC & MSVC * Symbian PiperOrigin-RevId: 227116941
* | | | Remove outdated scriptsrefs/pull/2039/headGennadiy Civil2019-01-024-1706/+0
| |_|/ |/| |
* | | Update Xcode project filerefs/pull/2035/headSyohei YOSHIDA2018-12-281-12/+0
| | | | | | | | | | | | Remove files which no longer exist.