Commit Graph

2625 Commits

Author SHA1 Message Date
Abseil Team
30a8ce53d8 Googletest export
Refactor the `Invoke` and `InvokeWithoutArgs` actions:
 - Replace pump'd classes and functions with templates.
 - Make the polymorphic actions be polymorphic functors instead.
 - Fix Invoke(Callback*) to work with subclasses of the callbacks, instead of trying to diagnose that in gmock_doctor.

PiperOrigin-RevId: 229604112
2019-01-17 14:41:08 -05:00
misterg
c0d3d9bdf6 Googletest export
Change remaining samples to use new Test Suite API

PiperOrigin-RevId: 229231566
2019-01-14 17:02:11 -05:00
Abseil Team
d3bcc36a0b Googletest export
Add move-only argument support to almost all remaining matchers.

PiperOrigin-RevId: 229030728
2019-01-14 17:02:03 -05:00
Abseil Team
e09cb4a368 Googletest export
Deduplicate testing::ReferenceWrapper with std::reference_wrapper.
Minor cleanups in matchers_test.

PiperOrigin-RevId: 229022872
2019-01-14 17:01:56 -05:00
misterg
b22872e0c6 Googletest export
Change tests to use new Test Suite API

PiperOrigin-RevId: 228908894
2019-01-11 13:59:22 -05:00
Gennadiy Civil
00f6cb423f Workaround homebrew issue 2019-01-10 18:20:44 -05:00
Gennadiy Civil
a89722a6b7 Merge branch 'master' of github.com:google/googletest 2019-01-10 16:33:42 -05:00
Abseil Team
107087b81e Googletest export
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
2019-01-10 16:32:37 -05:00
Abseil Team
3c46167352 Googletest export
...text exposed to GitHub repo https://www.github.com/google/googletest

PiperOrigin-RevId: 228573333
2019-01-10 16:18:48 -05:00
gennadiycivil
bd3d66c5f4 Merge pull request #2051 from enptfb55:master
PiperOrigin-RevId: 228337465
2019-01-08 11:51:17 -05:00
misterg
b04ba50ca8 Googletest export
Replace testing::internal::ImplicitlyConvertible with std::is_convertible
Fixes #2054

PiperOrigin-RevId: 228334305
2019-01-08 11:51:05 -05:00
Abseil Team
7958cbe199 Googletest export
Drop generated file gmock-generated-internal-utils.h.

PiperOrigin-RevId: 228232195
2019-01-08 11:50:56 -05:00
gennadiycivil
2c1a7a3d4f Merge pull request #2048 from ciband:chore/clang_tidy
PiperOrigin-RevId: 228173023
2019-01-07 12:09:34 -05:00
Abseil Team
4b698248e5 Googletest export
Fix GTEST_IS_NULL_LITERAL_ for types that have magic implicit conversions.

PiperOrigin-RevId: 227879345
2019-01-07 12:09:25 -05:00
Sal Amato
3c8d42f063 fixing build errors for unused parameter 2019-01-06 06:24:26 -05:00
Chris
a553f5d0cd clang-tidy: modernize-deprecated-headers 2019-01-05 11:21:56 -06:00
Gennadiy Civil
71da7e24ff Merge pull request #2042 from gennadiycivil/master
Update Docs TestCase->TestSuite
2019-01-03 21:36:19 -05:00
Gennadiy Civil
a04e432539 Merge branch 'master' of https://github.com/google/googletest 2019-01-03 17:18:32 -05:00
Gennadiy Civil
03b6431044 Update docs, TestCase->TestSuite 2019-01-03 17:18:03 -05:00
misterg
0346c06158 Googletest export
Fixes #1261

PiperOrigin-RevId: 227740670
2019-01-03 16:40:27 -05:00
misterg
94b4464c9e Googletest export
TestCase->TestSuite refactoring

PiperOrigin-RevId: 227702164
2019-01-03 16:40:20 -05:00
Gennadiy Civil
b58444a0c7 Update README.md 2019-01-03 11:41:41 -05:00
Gennadiy Civil
8b5a2d8713 Update README.md 2019-01-03 11:41:17 -05:00
Gennadiy Civil
c4b07267e5 Update README.md 2019-01-03 11:40:37 -05:00
Gennadiy Civil
4d41005af2 Merge pull request #2026 from justin6case/example_makefile_improvements
Example/sample makefile improvements
2019-01-03 11:38:47 -05:00
Gennadiy Civil
c8670a646b Merge pull request #2037 from ciband:chore/fix_library_json
PiperOrigin-RevId: 227615222
2019-01-02 21:39:36 -05:00
misterg
92feb4d617 Googletest export
Internal Change

PiperOrigin-RevId: 227575279
2019-01-02 16:51:40 -05:00
Abseil Team
cb1ea717e7 Googletest export
Remove the #ifs for old, unsupported and buggy compilers:
* old versions of GCC & MSVC
* Symbian

PiperOrigin-RevId: 227116941
2019-01-02 16:51:33 -05:00
Gennadiy Civil
fa932da32c Merge pull request #2039 from gennadiycivil/master
Remove outdated scripts
2019-01-02 16:23:06 -05:00
Gennadiy Civil
58773fddc9 Remove outdated scripts 2019-01-02 16:03:50 -05:00
Gennadiy Civil
0df5bb4e75 Revert "test, please ignore"
This reverts commit 4665eee10a.
2019-01-02 16:02:34 -05:00
Gennadiy Civil
572992fd01 Merge branch 'master' of https://github.com/google/googletest 2019-01-02 15:49:22 -05:00
Chris
ed5c9db012 Merge branch 'chore/fix_library_json' of https://github.com/ciband/googletest into chore/fix_library_json 2018-12-29 12:57:33 -06:00
Chris
06873c4125 fix: Add additional source and include directories.
This is still a work in progress.
2018-12-29 12:57:04 -06:00
Gennadiy Civil
1c1007b4d9 Merge pull request #2035 from syohex/update-xcode-project-file
Update Xcode project file
2018-12-28 11:21:32 -05:00
Syohei YOSHIDA
c57f579557 Update Xcode project file
Remove files which no longer exist.
2018-12-28 13:23:44 +09:00
Ryohei Machida
1fa32f72a8 Merge #2002
PiperOrigin-RevId: 227030722
2018-12-27 15:31:14 -05:00
Gennadiy Civil
7bc5f845d3 Update README.md 2018-12-27 12:04:11 -05:00
Gennadiy Civil
08c2388f9a Merge pull request #2027 from ciband:chore/fix_library_json
PiperOrigin-RevId: 227028806
2018-12-27 11:52:54 -05:00
Chris Johnson
a77bcf110a fix: Correct GitHub paths 2018-12-21 12:44:54 -06:00
Gennadiy Civil
136913ef22 Update README.md 2018-12-21 13:24:39 -05:00
Gennadiy Civil
2667a13253 Merge pull request #2013 from ciband:chore/fix_library_json
PiperOrigin-RevId: 226493373
2018-12-21 11:30:27 -05:00
Abseil Team
9162c72aeb Googletest export
Get rid of code generation for NiceMock / StrictMock.
They got small enough that it doesn't make sense to generate them.

PiperOrigin-RevId: 226455689
2018-12-21 11:30:20 -05:00
Case, Matt
9793b2ae13 Improvements have been made to the example/sample makefiles for both googlemock
and googletest.
Library files are now created and named like versions produced
by Cmake.
2018-12-20 20:58:56 -06:00
Abseil Team
cd8400d7ce Googletest export
Add public entry point testing::RegisterTest.

PiperOrigin-RevId: 226350937
2018-12-20 14:09:52 -05:00
Abseil Team
fd2d6ad71b Googletest export
Use std::function to implement type erasure in Action, wrapping the legacy
ActionInterface if necessary.

This makes functors / std::function the primary way to implement Action; the
existing ActionInterface implementations are handled through ActionAdaptor.
The existing actions are not (yet) migrated though; they'll pay the cost of one
additional indirection - but that should be negligible.

PiperOrigin-RevId: 226126137
2018-12-20 14:09:39 -05:00
Abseil Team
4645a8b271 Googletest export
Unifdef c++11-related macros from googletest now that it requires C++11.

PiperOrigin-RevId: 225905601
2018-12-20 14:09:31 -05:00
misterg
1290dc93f3 Googletest export
Suppress C4503 for MCVS , again

PiperOrigin-RevId: 225895719
2018-12-17 17:57:39 -05:00
misterg
40d846897d Googletest export
Suppress C4503 for MCVS

PiperOrigin-RevId: 225871050
2018-12-17 15:37:31 -05:00
Gennadiy Civil
0a8b3eb3d6 Update README.md
Update build badge to point to the correct location
2018-12-17 14:03:51 -05:00