Commit Graph

2523 Commits

Author SHA1 Message Date
Abseil Team
2df8281cef Googletest export
Validate spec modifiers.

PiperOrigin-RevId: 221810235
2018-11-20 13:29:40 -05:00
Abseil Team
907699bb31 Googletest export
Point IWYU at an existent path.

PiperOrigin-RevId: 221797154
2018-11-20 13:29:32 -05:00
durandal
064abddc5f Googletest export
Move the Matcher<T> interface to googletest so I can use it to extend death test regex matching in a subsequent change.

PiperOrigin-RevId: 221675910
2018-11-20 13:29:20 -05:00
Abseil Team
03ab019046 Googletest export
Upgrade WithArgs family of actions to C++11.

PiperOrigin-RevId: 221671690
2018-11-20 13:29:12 -05:00
Abseil Team
792e898e09 Googletest export
Unify implementation of GMOCK_PP_REPEAT and GMOCK_PP_FOREACH.

PiperOrigin-RevId: 221659669
2018-11-20 13:29:02 -05:00
Abseil Team
4b79fb3001 Googletest export
One macro to rule them all.

PiperOrigin-RevId: 221462515
2018-11-15 16:11:19 -05:00
Gennadiy Civil
6c29db256f Merge pull request #1961 from coppered/patch-1
Update README.md
2018-11-13 21:13:21 -05:00
Gennadiy Civil
60941c0f3b Merge pull request #1959 from robinlinden:remove-msvc-workarounds
PiperOrigin-RevId: 221356626
2018-11-13 21:10:42 -05:00
Gennadiy Civil
2d827ac14a Merge branch 'master' into patch-1 2018-11-13 10:52:25 -05:00
Abseil Team
84059939ef Googletest export
Include type_traits header

ElementsAre, UnorderedElementsAre, AllOf, and AnyOf are all defined in terms of std::decay, which is in the type_traits header.

PiperOrigin-RevId: 220818637
2018-11-13 09:20:47 -05:00
Oleksandr Dyakov
f832072208 Update README.md
added -std=c++11
2018-11-13 02:29:46 +01:00
Robin Lindén
45e41f7769 Add back warning suppression that shouldn't have been removed 2018-11-10 16:14:19 +01:00
Robin Lindén
cbbd367bc1 Define GTEST_DISABLE_MSC_WARNINGS_PUSH/POP for all compilers 2018-11-10 15:40:57 +01:00
Robin Lindén
9ebcf21e76 Remove GTEST_HAS_HASH_SET/MAP check 2018-11-10 15:27:33 +01:00
Robin Lindén
1f17e0376a Remove workarounds for unsupported MSVC versions 2018-11-10 15:20:26 +01:00
Abseil Team
e8153f252b Googletest export
Move FunctionMocker and MockFunction out of the pump file and implement with variadic templates.

PiperOrigin-RevId: 220640265
2018-11-08 14:49:12 -05:00
krzysio
b6a0bb1499 Googletest export
Improve Bazel build files.

New target gtest_prod allows access to the FRIEND_TEST macro without depending on the entirety of GTest in production executables. Additionally, duplicate config_setting rules were removed and formatting was adjusted.

PiperOrigin-RevId: 220279205
2018-11-07 14:37:18 -05:00
Gennadiy Civil
176f8da102 Merge pull request #1950 from benjamincarman/makefix
Updating Sample Makefile to Specify C++11
2018-11-02 14:19:07 -04:00
Gennadiy Civil
81fdef678b Merge branch 'master' into makefix 2018-11-01 10:45:47 -04:00
misterg
175c9191df Googletest export
Adding GTEST_INTERNAL_DEPRECATED ability to mark deprecated

PiperOrigin-RevId: 219515184
2018-11-01 10:42:23 -04:00
Benjamin Carman
dd9476fce1 Added line to sample Makefile in googletest/googletest/make to specify use of C++11 in CXXFLAGS as required by the system 2018-11-01 02:25:08 -04:00
Gennadiy Civil
b29ffa4d17 Merge pull request #1948 from jerryturcios08/master
Correct grammatical error in googlemock's README.md file
2018-10-31 13:21:47 -04:00
Jerry Turcios
2fefe5aaf1 Correct grammatical error in README.md 2018-10-31 12:56:21 -04:00
Jerry Turcios
f2ce0f6d84 Merge branch 'master' of https://github.com/google/googletest 2018-10-31 10:16:27 -04:00
Abseil Team
5be427175e Googletest export
[Fuchsia] Create the death test child process in a separate job.

This creates a separate job to launch the child process into. The
exception port can then be attached to the new job before the child
process is launched, solving a potential race condition.

PiperOrigin-RevId: 219366531
2018-10-30 21:20:50 -04:00
misterg
3b4c2f167b Googletest export
Remove scoped_ptr replace with std::unique_ptr

PiperOrigin-RevId: 219291284
2018-10-30 21:20:43 -04:00
Abseil Team
f734e05aff Googletest export
Fix broken Fuchsia cc_test.

PiperOrigin-RevId: 219170936
2018-10-30 21:20:35 -04:00
Gennadiy Civil
a4f77cd8dd Merge pull request #1945 from akonradi/optional-matcher-doc
Add Optional() to the cheat sheet doc.
2018-10-30 09:34:35 -04:00
Jerry Turcios
c8fcdb1227 Merge branch 'master' of https://github.com/google/googletest 2018-10-29 21:09:25 -04:00
Alex Konradi
58ac249104 Add Optional() to the cheat sheet doc.
The Optional() matcher is otherwise undocumented except in the source.
This patch adds it to the cheat sheet for better visibility.
2018-10-29 17:19:53 -04:00
misterg
791a44ae89 Googletest export
Remove last traces of gtest-linked_ptr.h

PiperOrigin-RevId: 219164781
2018-10-29 14:43:07 -04:00
Gennadiy Civil
53bd2a5119 Merge pull request #1941 from barkovv:master
PiperOrigin-RevId: 219134349
2018-10-29 13:46:24 -04:00
misterg
7e9920053e Googletest export
Remove linked_ptr and use std::shared_ptr instead

PiperOrigin-RevId: 219129336
2018-10-29 13:46:16 -04:00
Jerry Turcios
1b8945fbac Merge branch 'master' of https://github.com/google/googletest 2018-10-28 14:17:19 -04:00
Vadim Barkov
dbe9230f64 Replaced all NULLs with nullptr in googlemock 2018-10-28 03:27:51 +03:00
Vadim Barkov
042ea715d2 Replaced all NULLs with nullptr in googletest 2018-10-28 03:10:37 +03:00
Abseil Team
a9f01c2104 Googletest export
[Fuchsia] Make the child process stderr redirection use a socket.

This changes the stderr redirection mechanism for the child process in Fuchsia death tests to use a Zircon socket rather than fd redirection. This should improve performance and reliability of the redirection process.
This also includes some minor style cleanups.

PiperOrigin-RevId: 218903196
2018-10-26 16:23:59 -04:00
Abseil Team
63ad9ec911 Googletest export
Remove linked_ptr and use std::shared_ptr instead

PiperOrigin-RevId: 218618184
2018-10-26 14:19:59 -04:00
misterg
55c37984f7 Googletest export
Remove linked_ptr and use std::shared_ptr instead

PiperOrigin-RevId: 218571466
2018-10-26 14:19:51 -04:00
Jerry Turcios
a2f7ed57f9 Merge branch 'master' of https://github.com/google/googletest 2018-10-24 23:18:50 -04:00
Gennadiy Civil
2a44a30c6a Merge pull request #1934 from jeffvandyke/patch-2
Change CMake googletest download location in docs
2018-10-24 19:00:57 -04:00
Jeff VanDyke
780ebf0979 Change CMake googletest download location in docs
Change CMAKE_BINARY_DIR to CMAKE_CURRENT_BINARY_DIR
Able to use in a subfolder's CMakeLists.txt
2018-10-24 16:41:14 -04:00
Gennadiy Civil
d441e05e8b Merge pull request #1890 from peterjc123:clang_fix
PiperOrigin-RevId: 218515152
2018-10-24 11:26:24 -04:00
durandal
4e7e4cb6e5 Googletest export
Honor GTEST_SKIP() in SetUp().

PiperOrigin-RevId: 218387359
2018-10-24 11:26:16 -04:00
Jerry Turcios
40c2e717ea Merge branch 'master' of https://github.com/google/googletest 2018-10-24 10:59:24 -04:00
peter
2335a54cb3 Disable extensions and force standard 2018-10-24 12:17:06 +08:00
peter
c3f5e8c3d4 Revert previous changes 2018-10-24 12:06:00 +08:00
peter
207fc9bedc Fix -std=c++11 flag 2018-10-24 12:03:07 +08:00
Gennadiy Civil
0a78ff41d2 Merge pull request #1929 from goatshriek/cmake-cxx11-flag
add documentation of manual c++11 specification
2018-10-23 22:32:15 -04:00
Jerry Turcios
68d0d76159 Merge branch 'master' of https://github.com/google/googletest 2018-10-23 20:57:38 -04:00