Jonathan Wakely
99d74cf9f8
Stop TestInfo::Run() calling a function through null pointer
...
If the object was never created then trying to call &Test::DeleteSelf_
will dereference a null pointer, with undefined behaviour.
Fixes #845
2019-02-11 20:15:30 +01:00
Keiichi Watanabe
f87f054960
Fix an invalid example of JSON report in advanced.md
...
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>
2019-02-05 21:05:16 +09:00
misterg
88d9e949af
Googletest export
...
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
2019-02-04 14:19:58 -05:00
misterg
0ff4c74a41
Googletest export
...
Mark legacy _TEST_CASE_ macros as deprecated
PiperOrigin-RevId: 232303251
2019-02-04 14:19:50 -05:00
Abseil Team
3c5f5ccf61
Googletest export
...
Update example code in gtest.h to prefer override over virtual now
that it is widely available in C++11.
PiperOrigin-RevId: 232057792
2019-02-04 14:19:41 -05:00
Gennadiy Civil
fb14dae5ef
Merge pull request #2098 from ciband:feat/finish_platformio_support
...
PiperOrigin-RevId: 232028696
2019-02-04 14:19:31 -05:00
Chris
2036304cf1
fix: Add Arduino to embedded platform list
...
Added Arduino to the embedded platform list to allow for a stubbed out version
of GetCurrentDir.
2019-01-31 21:56:34 -06:00
Billy SU
6c540f5a4e
Fix README.md broken link
...
Fix the **include/gtest/internal/gtest-port.h** link in the `Tweaking Google Test` title
2019-01-31 08:23:15 +08:00
Gennadiy Civil
9ece74a3f5
Repeat #2090
...
Testing
2019-01-30 14:44:27 -05:00
Ashley Hedberg
658ce0249a
Merge pull request #2063 from mathbunnyru:master
...
PiperOrigin-RevId: 231456275
2019-01-30 14:26:14 -05:00
Kelly Walker
1df0bda868
Update advanced.md casing in example
...
Updated the example that says not to use SetupTestSuite with a small 'u' to actually use a small 'u'
2019-01-30 09:01:58 -06:00
Gennadiy Civil
b911be4d84
Merge pull request #2063 from mathbunnyru:master
...
PiperOrigin-RevId: 231434457
2019-01-29 14:32:06 -05:00
Hugo Lindström
5a2dbef4f5
Avoid dynamic/static runtime linking (LNK4098) by properly replacing MD(d)->MT(d) in both C and CXX flags, resolves 2074
2019-01-28 21:07:41 +01:00
Adam Cozzette
b69cb84b9a
Fixed "make dist"
...
I made a few updates to the Makefile.am files so that "make dist"
succeeds and produces a usable tarball. We need this for protobuf
because the protobuf tarballs include a bundled copy of googletest.
2019-01-24 14:51:40 -08:00
Gennadiy Civil
961e2e91d2
Merge pull request #2041 from ciband:chore/fix_library_json
...
PiperOrigin-RevId: 230554814
2019-01-23 13:27:16 -05:00
Ayaz Salikhov
2caf28e9c2
Fix INSTANTIATE_TEST_CASE_P with zero variadic arguments
2019-01-18 14:53:56 +03: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
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
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
Chris
9536b82e87
fix: Add Arduino setup()/loop() functions back
...
Added setup()/loop() functions back to *_main.cc files to support compiling in CI. Future features could enable this for the end user.
2019-01-07 12:37:34 -06: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
Chris
d0e06a89e7
misc: Reapply Arduino functions
2019-01-03 21:23:06 -06:00
Chris
f656a435f1
misc: Revert formatting changes.
2019-01-03 21:22:00 -06:00
Chris Johnson
8d9f5e665a
Merge branch 'master' into chore/fix_library_json
2019-01-03 21:13:20 -06: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
Chris
53527583a8
fix: Remove Arduino entry points
...
Improved flexibility by removing the Arduino entry points in favor of manual calls to setup/loop that the user can call from their entry point. This is the more common use case for Arudino.
Also added the gtest/gmock_main files to the PlatformIO ignore list since we are not supporting that feature.
2019-01-03 12:12:19 -06: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
58773fddc9
Remove outdated scripts
2019-01-02 16:03:50 -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
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
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
d7445e77d8
Googletest export
...
Internal Change
PiperOrigin-RevId: 225849972
2018-12-17 13:53:46 -05:00
Abseil Team
592a6c675d
Googletest export
...
Remove GTEST_REFERENCE_TO_CONST_ usage from GMock. In C++11, it's redundant.
PiperOrigin-RevId: 225719210
2018-12-17 13:53:39 -05:00
Gennadiy Civil
56b0a0a840
Merge pull request #2000 from ciband:feat/add_support_platformio
...
PiperOrigin-RevId: 225552792
2018-12-14 13:54:43 -05:00
Abseil Team
641ed7cca4
Googletest export
...
Support skipped in XML and JSON output
PiperOrigin-RevId: 225386540
2018-12-13 16:00:21 -05:00