Commit Graph

870 Commits

Author SHA1 Message Date
kosak
6b81780310 Makes DoubleNear() print the diff between the actual and the expected value when the match fails.
Also fix bogus MSVC warning about "alignment of a member was sensitive to packing".
Also bring in gtest 701.
2015-01-08 02:38:14 +00:00
kosak
c2101c2877 Change an example to use 'override' rather than 'virtual'. Add missing headers for 'connect' and 'socket'. 2015-01-08 02:35:11 +00:00
kosak
102b50483a Noop changes to suppress compile-time warnings in WINDOWS code paths. 2014-11-17 02:56:14 +00:00
kosak
61adbcc5c6 Add support for C++11 explicitly defaulted and deleted special member functions in the gmock generator. 2014-11-17 02:49:22 +00:00
kosak
055b6b17d2 Prevent gmock_gen from returning exit code zero on a failure to parse. 2014-11-17 02:46:37 +00:00
kosak
f58b49a2b1 Handle parameters without variable names when the type includes *, & or []. 2014-11-17 02:42:33 +00:00
kosak
40be033887 Remove special support for GTEST_OS_IOS_SIMULATOR. 2014-11-17 02:38:21 +00:00
kosak
e330b754cb Strip trailing whitespace when stringifying type lists. 2014-11-17 02:28:09 +00:00
kosak
6e87b780d3 Update gmock_doctor to accept static_assert output. 2014-11-17 02:22:20 +00:00
kosak
cd99eb0bbd Fix gmock-matchers_test's ConstIter. 2014-11-17 02:18:28 +00:00
kosak
074ed8c8ea Clang-on-Windows can support GTEST_ATTRIBUTE_UNUSED_. 2014-11-17 02:11:23 +00:00
kosak
7123d83132 Fix gmock Action behaviour when return type is Wrapper 2014-11-17 02:04:46 +00:00
kosak
506340a66b Generate relational matchers (Eq,Lt, etc) with CRTP instead of macro. 2014-11-17 01:47:54 +00:00
kosak
d370f85b02 Call move() by qualified name (::testing::internal::move() or just internal::move()).
Pull in gtest 696.
2014-11-17 01:14:16 +00:00
kosak
71271d2c95 Call move() by qualified name (::testing::internal::move() or just internal::move()). 2014-11-17 01:13:37 +00:00
kosak
389bad61e2 Silence a signedness-comparison warning in gmock-actions_test.
include <functional> when using std::function in gmock.
2014-11-17 01:08:51 +00:00
kosak
3d1c78b2bf Add ByMove() modifier for the Return() action. Pull in gtest 695. 2014-11-17 00:56:52 +00:00
kosak
d3d142ef1c Add ByMove() modifier for the Return() action. 2014-11-17 00:55:43 +00:00
kosak
5b9cbbb16d Distinguish between C++11 language and library support for std::function, std::begin, std::end, and std::move in gtest and gmock.
Bring in gtest 694.
2014-11-17 00:28:55 +00:00
kosak
6aa0422e85 Distinguish between C++11 language and library support for std::function, std::begin, std::end, and std::move in gtest and gmock. 2014-11-17 00:27:28 +00:00
kosak
6884259b7d Reduce the stack frame size for CmpHelper* functions by moving the failure path into their own functions. 2014-11-17 00:06:22 +00:00
kosak
64df8e349f Mock out GetCurrentDir in NaCl. 2014-07-29 00:30:10 +00:00
kosak
2336e9c171 Defines the UnorderedPointwise(m, container) matcher, which is like Pointwise(m, container) but ignores the order of the elements. 2014-07-28 22:57:30 +00:00
kosak
b54098a9ab Expand equality failure messages with a by-line diff. 2014-07-28 21:54:50 +00:00
kosak
06678924fa Allows {Unordered,}ElementsAreArray() to accept any STL-style container as the parameter. 2014-07-28 20:01:28 +00:00
kosak
bd263344f9 Additional changes, to add support for Windows Phone and Windows RT 2014-06-18 21:31:01 +00:00
kosak
96ddffe8fd Reduce the number of occurrences of gendered pronouns in gtest. 2014-06-18 00:22:42 +00:00
kosak
a9e02a9178 Add MockFunction::AsStdFunction(). Also pull in gtest 688. 2014-06-17 23:19:54 +00:00
kosak
21ee8a2e72 Disable asan instrumentation for StackGrowsDown(). 2014-06-17 23:16:37 +00:00
billydonahue
1f5fdea417 Push several shanges:
Make single argument constructors explicit in macros.

    Remove NOMINMAX macro.

    Add macros for disabling Microsoft Visual C++ warnings.

    Add WhenDynamicCastTo<T> matcher.
    A matcher that matches a pointer that matches inner_matcher when
    dynamic_cast<T> is applied.

    Add IWYU export pragmas to the tuple include lines.

    Fix NativeArray to not require a copy constructor unless we ask for one.
    This allows ElementsAre() to support non-copyable types.

    Examine WINAPI_FAMILY_PARTITION macros to better distinguish windows platforms.
    Author: martin@martin.st
    From: https://codereview.appspot.com/57220043/
2014-05-19 17:54:51 +00:00
billydonahue
8120f66c32 Push upstream to SVN. 2014-05-15 19:42:15 +00:00
kosak
bd0188320d Export tuple and friends in the ::testing namespace. 2014-04-02 20:30:00 +00:00
kosak
5df87d70b6 Export tuple and friends in the ::testing namespace. 2014-04-02 20:26:07 +00:00
kosak
15d61e42bd Implement threading support for gmock on Windows.
Replace U+2013 with U+002D in comment lines.
Pull in gtest 681.
2014-03-24 22:08:24 +00:00
kosak
a6340420b9 Implement threading support for gtest on Windows.
Also, stop using localtime(). Instead, use localtime_r() on most systems, localtime_s() on Windows.
2014-03-24 21:58:25 +00:00
kosak
c26f969579 Make the gmock generator work with the 'override' keyword. Also pull in gtest 680. 2014-03-12 23:27:35 +00:00
kosak
ffea2d6040 Add annotations to suppress ThreadSanitizer failures due to gunit/gmock printer. 2014-03-12 22:55:56 +00:00
kosak
c82282819c Remove code referencing Google protocol buffers version 1. 2014-03-12 22:51:07 +00:00
kosak
b6a348862b Introduce a BeginEndDistanceIs matcher for containers such as std::forward_list
which lack a size() member.

Also pull in gtest 678.
2014-03-12 21:06:46 +00:00
kosak
134389c044 Standards compliance changes to fix QNX build. 2014-03-12 21:03:35 +00:00
kosak
fc4aa1d718 Suppress "Conditional expression is constant" warning on Visual Studio. 2014-01-29 07:30:13 +00:00
kosak
41a8bc67ab Suppress "Conditional expression is constant" warning on Visual Studio. 2014-01-29 07:29:19 +00:00
kosak
b5c81098a8 Support mocking methods with move-only return types. 2014-01-29 06:41:44 +00:00
kosak
35956659ea Add GTEST_MOVE macro, to support mocking methods with move-only return types.
Add GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_
2014-01-29 06:34:44 +00:00
kosak
b93d0f10d5 Make Google Mock build cleanly on Visual Studio 2010, 2012, 2013. 2014-01-13 22:28:01 +00:00
kosak
7d1051ce2b Make Google Test build cleanly on Visual Studio 2010, 2012, 2013.
Also improve an error message in gtest_test_utils.py.
2014-01-13 22:24:15 +00:00
kosak
04ce8521f4 Adds a note in the "uninteresting mock method call" warning to advise people how to handle the warning.
Clarifies the purpose of utilities in gmock-port.h and adds guidance w.r.t. gmock-port.h vs gtest-port.h.
Pulls in gtest r674.
2014-01-12 23:42:34 +00:00
kosak
6576c64903 Fix a couple of typos in Google Test's README. 2014-01-12 23:29:39 +00:00
kosak
ccf8e33bc5 Define specialization of PrintTo(...) for ::std::tuple. 2014-01-12 19:59:41 +00:00
kosak
d3eb97f321 Improves documentation on gtest's macros.
Adds script to automate releasing new version of wiki docs.
2014-01-12 18:51:09 +00:00