- 19 Feb, 2019 1 commit
-
-
Diomidis Spinellis authored
Issue: #2140
-
- 13 Feb, 2019 9 commits
-
-
Gennadiy Civil authored
PiperOrigin-RevId: 233825166
-
Gennadiy Civil authored
PiperOrigin-RevId: 233789488
-
Gennadiy Civil authored
PiperOrigin-RevId: 233773676
-
Gennadiy Civil authored
PiperOrigin-RevId: 233762751
-
Gennadiy Civil authored
PiperOrigin-RevId: 233762520
-
Gennadiy Civil authored
PiperOrigin-RevId: 233748252
-
Enji Cooper authored
As noted in the patch description: * Add DragonFly and GNU/kFreeBSD support. * Implement GetThreadCount() for BSDs. 1. https://svnweb.freebsd.org/ports/head/devel/googletest/files/patch-bsd-defines?revision=488934 Signed-off-by:
Enji Cooper <yaneurabeya@gmail.com>
-
Enji Cooper authored
It was not compiling any of the code with warnings prior to this. Signed-off-by:Enji Cooper <yaneurabeya@gmail.com>
-
Enji Cooper authored
Provide dummy accessors for private values that are set in initializers, but not actually used. Signed-off-by:Enji Cooper <yaneurabeya@gmail.com>
-
- 12 Feb, 2019 6 commits
-
-
misterg authored
Internal Change PiperOrigin-RevId: 233614147
-
Gennadiy Civil authored
PiperOrigin-RevId: 233108234
-
Gennadiy Civil authored
PiperOrigin-RevId: 233096223
-
Abseil Team authored
Internal changes. PiperOrigin-RevId: 232953166
-
Abseil Team authored
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
-
Abseil Team authored
Internal change PiperOrigin-RevId: 232362580
-
- 11 Feb, 2019 3 commits
-
-
Knut Omang authored
Signed-off-by:Knut Omang <knut.omang@oracle.com>
-
Knut Omang authored
When building and using googletest from an install tree we want libtool to generate rpath in the dependent binaries to allow them to be executed from a build without a need for LD_LIBRARY_PATH or similar. For libtool based project this happens automatically as projects generates .la files and install them. Provide such a file for gtest as well to allow it to work smoothly with libtool based projects. Signed-off-by:Knut Omang <knut.omang@oracle.com>
-
Jonathan Wakely authored
If the object was never created then trying to call &Test::DeleteSelf_ will dereference a null pointer, with undefined behaviour. Fixes #845
-
- 05 Feb, 2019 4 commits
-
-
Chris Johnson authored
-
Gennadiy Civil authored
Test out changes with clang/OSX each PR using Travis CI
-
Gennadiy Civil authored
Fix an invalid example of JSON report in advanced.md
-
Keiichi Watanabe authored
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>
-
- 04 Feb, 2019 9 commits
-
-
Gennadiy Civil authored
-
Gennadiy Civil authored
-
Enji Cooper authored
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>
-
misterg authored
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
-
misterg authored
Mark legacy _TEST_CASE_ macros as deprecated PiperOrigin-RevId: 232303251
-
Abseil Team authored
Update example code in gtest.h to prefer override over virtual now that it is widely available in C++11. PiperOrigin-RevId: 232057792
-
Gennadiy Civil authored
PiperOrigin-RevId: 232028696
-
Matthias Grob authored
-
Matthias Grob authored
such that necessary cmake variables to detect Cygwin are defined when setting the C++ standard and we can distinguish.
-
- 01 Feb, 2019 4 commits
-
-
Abseil Team authored
Fix stack overflow in AnyOfArray tests. PiperOrigin-RevId: 231881125
-
Chris Johnson authored
-
Chris authored
Added Arduino to the embedded platform list to allow for a stubbed out version of GetCurrentDir.
-
Chris authored
Added [gmock|gtest]_all.cc to PIO ignore list to avoid getting duplicate symbols since PIO will compile the individual files.
-
- 31 Jan, 2019 2 commits
-
-
Gennadiy Civil authored
Fix README.md broken link
-
Billy SU authored
Fix the **include/gtest/internal/gtest-port.h** link in the `Tweaking Google Test` title
-
- 30 Jan, 2019 2 commits
-
-
Gennadiy Civil authored
Repeat #2090
-
Gennadiy Civil authored
Testing
-