- 05 Mar, 2019 1 commit
-
-
Abseil Team authored
Build gmock cleanly with clang -Wextra-semi and -Wextra-semi-stmt Extends 56ef07a2 to take -Wc++98-compat-extra-semi (https://reviews.llvm.org/D43162) and -Wextra-semi-stmt (https://reviews.llvm.org/D52695) into account. For https://crbug.com/926235. PiperOrigin-RevId: 236643095
-
- 01 Mar, 2019 2 commits
-
-
Abseil Team authored
Let embedders customize GTEST_INTERNAL_DEPRECATED(). GTEST_INTERNAL_DEPRECATED is currently used to nudge googletest users to migrate off old TEST_CASE macros to the new TEST_SUITE macros. This move is non-trivial for Chromium (see https://crbug.com/925652), and might be difficult for other big projects with many dependencies. This CL facilitates moving off of deprecated APIs by making it possible for an embedder to define GTEST_INTERNAL_DEPRECATED() in gtest/internal/custom/gtest-port.h. Example usage: 1) #define GTEST_INTERNAL_DEPRECATED() to nothing, to disable deprecation warnings while migrating off googletest's deprecated APIs. This can be preferable to having to disable all deprecation warnings (-Wno-error=deprecated or -Wno-deprecated-declarations). 2) #define GTEST_INTERNAL_DEPRECATED() for an unsupported compiler. PiperOrigin-RevId: 236171043
-
Abseil Team authored
Build gmock cleanly with clang -Wextra-semi For https://crbug.com/926235. From https://github.com/google/googletest/pull/2139. Fixes https://github.com/google/googletest/issues/2138. PiperOrigin-RevId: 235832527
-
- 25 Feb, 2019 3 commits
-
-
Abseil Team authored
Replace more pump'd code with variadic templates. PiperOrigin-RevId: 235584585
-
Gennadiy Civil authored
Fix grammatical error in primer.md
-
Ryan Sinnet authored
-
- 22 Feb, 2019 2 commits
-
-
Gennadiy Civil authored
PiperOrigin-RevId: 235248114
-
Gennadiy Civil authored
PiperOrigin-RevId: 235220570
-
- 21 Feb, 2019 2 commits
-
-
Enji Cooper authored
Due to some caveats in the FreeBSD build system and the fact that the source file is used to compile 2 different death tests with different flags, I needed (as a shortterm workaround) to copy the test to 2 differently named files. While this works for compiling the test, as I discovered, this doesn't work with running `CxxExceptionDeathTest.PrintsMessageForStdException`, as the testcase hardcodes `googletest-death-test_ex_test.cc`. Use `__FILE__` when looking for failures, as opposed to looking for the hardcoded name as it can vary depending on how the test was built. Signed-off-by:Enji Cooper <yaneurabeya@gmail.com>
-
Gennadiy Civil authored
PiperOrigin-RevId: 235012245
-
- 20 Feb, 2019 6 commits
-
-
Gennadiy Civil authored
PiperOrigin-RevId: 234845565
-
Gennadiy Civil authored
PiperOrigin-RevId: 234844287
-
Gennadiy Civil authored
PiperOrigin-RevId: 234840107
-
misterg authored
Internal Change PiperOrigin-RevId: 234823465
-
Abseil Team authored
Update gtest-death-test to use new Fuchsia API Fuchsia has renamed this API and removed the need for several parameters. We now use the newer, simpler API. PiperOrigin-RevId: 234617715
-
Gennadiy Civil authored
Avoid array index out of range
-
- 19 Feb, 2019 2 commits
-
-
Diomidis Spinellis authored
Issue: #2140
-
Enji Cooper authored
clang++ compilation when `-Wsign-conversion` is currently broken and the issues within the code are varied and widespread. For the time being ignore `-Wsign-conversion` issues, even though some of them are valid and bleed over into issues that would be found with `-Wtautological-compare`, et al. Signed-off-by:Enji Cooper <yaneurabeya@gmail.com>
-
- 13 Feb, 2019 13 commits
-
-
Enji Cooper authored
Comment out unused method parameters in their relevant definitions. Signed-off-by:Enji Cooper <yaneurabeya@gmail.com>
-
Enji Cooper authored
`DescribeTo(..)` and `MatchAndExplain(..)` in `gmock-matchers_test` both override virtual methods. Remove the `virtual` keyword and apply `override` to them instead. Signed-off-by:Enji Cooper <yaneurabeya@gmail.com>
-
Enji Cooper authored
`DescribeTo(..)` and `MatchAndExplain(..)` in `gmock-matchers_test` both override virtual methods. Remove the `virtual` keyword and apply `override` to them instead. Signed-off-by:Enji Cooper <yaneurabeya@gmail.com>
-
Enji Cooper authored
Signed-off-by:Enji Cooper <yaneurabeya@gmail.com>
-
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
-