Abseil Team
011c4e23d5
Googletest export
...
Rolling forward IsNan() matcher with fixes in test for -Wconversion issues. Use
std::nanf and std::nanl where appropriate.
PiperOrigin-RevId: 275523003
2019-10-22 09:37:46 -04:00
λtlas
f164a9e23c
Remove extra space
2019-10-19 11:46:52 -04:00
Sinclair-John
5f92697d46
Fix Issue 2418
2019-10-18 19:36:58 +02:00
misterg
f966ed1581
Googletest export
...
Added IsNan matcher
PiperOrigin-RevId: 275473218
2019-10-18 11:34:08 -04:00
Abseil Team
1f9edcd969
Googletest export
...
Addressing https://github.com/google/googletest/issues/2502
Add MOCK_METHOD support for returning function pointers.
PiperOrigin-RevId: 275323671
2019-10-18 11:33:59 -04:00
Abseil Team
bbe4b7363b
Googletest export
...
Added IsNan matcher
PiperOrigin-RevId: 275278634
2019-10-17 13:08:00 -04:00
Gennadiy Civil
2995ca563d
Merge pull request #2507 from roblub:master
...
PiperOrigin-RevId: 275076905
2019-10-17 13:07:51 -04:00
Alexey Spiridonov
cbf019de22
[googletest] Output skip message
...
Closes #2208
Previously, skip messages were invisible, so debugging skips was hard.
Now we have this:
```
$ ./googletest/gtest_skip_test
Running main() from /home/lesha/github/snarkmaster/googletest/googletest/src/gtest_main.cc
[==========] Running 3 tests from 2 test suites.
[----------] Global test environment set-up.
[----------] 1 test from SkipTest
[ RUN ] SkipTest.DoesSkip
/home/lesha/github/snarkmaster/googletest/googletest/test/gtest_skip_test.cc:38: Skipped
skipping single test
[ SKIPPED ] SkipTest.DoesSkip (0 ms)
[----------] 1 test from SkipTest (1 ms total)
...
```
2019-10-17 00:32:47 -07:00
Andy Soffer
bdc29d5dc1
Merge pull request #2421 from kuzkry:cleanup-for-regex
...
PiperOrigin-RevId: 275058934
2019-10-16 14:32:31 -04:00
Abseil Team
4c25e2b87f
Googletest export
...
Remove a test case rendered obsolete by disallowing empty argument for INSTANTIATE_TEST_SUITE_P.
Remove the code that it was testing.
PiperOrigin-RevId: 275040108
2019-10-16 14:32:23 -04:00
Andy Soffer
9e466f1eb0
Merge pull request #2510 from ciband:chore/update_pio_version
...
PiperOrigin-RevId: 274865328
2019-10-16 14:32:15 -04:00
Chris
778733f9ec
feat: Add ESP8266 support
...
* Added support for ESP8266
* Removed previous Arduino defines in favor
of GTEST_OS_* syntax
* Improved PlatformIO library file to be more
stable when consumed in client applications.
2019-10-13 21:39:54 -05:00
Joshua Cannon
e1b67b07f7
Avoid recursive macros
2019-10-11 17:13:24 -05:00
Robert Luberda
3cddd56e19
Add more override keywords
...
Mark more functions with "override" keyword, just like
it was done in commit 2460f97152c.
This should prevent compiler from complaining while compiling both
user code, and the googletest code itself with the -Wsuggest-override
option turned on; with the exception of:
* calls to new MOCK_METHOD() in test/gmock-function-mocker_test.cc
* calls to old MOCK_METHODx()/MOCK_CONST_METHODx() in other
unit test files.
Closes #2493
2019-10-11 23:45:31 +02:00
Chris Johnson
84a5ae8b85
Update to distinguish prelease purpose of this fork.
2019-10-11 14:31:59 -05:00
Joshua Cannon
3e813465a4
Removing extraneous parenthesis
2019-10-11 12:37:59 -05:00
Joshua Cannon
f8961b99f4
Evaluate and cat NARG in different macros
2019-10-11 12:13:15 -05:00
Chris Johnson
c2206b05aa
Add ESP8266 configs to PlatformIO build
...
Added various conditional compliations for ESP8266 to stub out
missing functionality.
2019-10-11 11:47:49 -05:00
Chris Johnson
40a6b96621
feat: Add support for ESP8266 platform
...
Added support for ESP8266 Arduino platform.
Refactored Arduino defines to use the GTEST_OS_* model.
2019-10-11 11:47:49 -05:00
Joshua Cannon
5fe5233612
Removing extraneous test
2019-10-11 11:28:00 -05:00
Joshua Cannon
fe112cfee7
Replace compile-test with preprocessor test
2019-10-11 10:58:59 -05:00
Joshua Cannon
d935e8e3ed
Fix preprocessor tests
2019-10-11 10:41:47 -05:00
Joshua Cannon
c1e8e71aab
Add a compile test
2019-10-11 09:34:01 -05:00
Joshua Cannon
c081ceebfb
Workaround MSVC VA_ARGS weirdness
2019-10-11 09:28:25 -05:00
Gennadiy Civil
ba513d2c95
Merge pull request #2498 from thejcannon:noexcept_spec
...
PiperOrigin-RevId: 274155281
2019-10-11 08:48:11 -04:00
misterg
a3ca5b9e0b
Googletest export
...
Updated release 1.10.0 link to point to
https://github.com/google/googletest/releases/tag/release-1.10.0 ( that has the
high level release info)
PiperOrigin-RevId: 274147093
2019-10-11 07:38:18 -04:00
Gennadiy Civil
eafd2a91bb
Merge pull request #2456 from kuzkry:gtest-port-clean-up_breaking-changes
...
PiperOrigin-RevId: 274100752
2019-10-11 07:07:21 -04:00
Gennadiy Civil
37905b9d8c
Merge pull request #2498 from thejcannon:noexcept_spec
...
PiperOrigin-RevId: 274097989
2019-10-11 07:07:12 -04:00
Abseil Team
a4a5a7c768
Googletest export
...
- Fix a bug in dealing with paramaterized tests where the name is it self a macro expansion.
- Add a compile time check to ensure that the parameters to TEST_P and INSTANTIATE_TEST_SUITE_P are not empty. The above fix causes some compilers to fail in that case and even where it works, it's likely to result in technically invalid code by virtue of creating reserved identifiers:
https://en.cppreference.com/w/cpp/language/identifiers
PiperOrigin-RevId: 274047249
2019-10-11 07:07:03 -04:00
Abseil Team
ed78e54f38
Googletest export
...
Fix the O(n^2) number of instantiations in ElemFromList.
It is now O(n). It still has O(1) instantiation depth.
PiperOrigin-RevId: 273980821
2019-10-11 07:06:56 -04:00
Krystian Kuzniarek
9b9700247d
clean-up broken paths for PlatformIO
2019-10-11 06:37:46 +02:00
Chris Johnson
31406d7909
chore: update version
...
Updated version from 1.8.1 to 1.10.0.
2019-10-10 12:28:02 -05:00
Joshua Cannon
bc996e0817
Made noexcept condition more exciting
2019-10-10 08:52:27 -05:00
Gennadiy Civil
58c7197761
Merge pull request #2505 from zebmason:cornichon
...
PiperOrigin-RevId: 273949529
2019-10-10 09:48:24 -04:00
Abseil Team
20b5b8ecc7
Googletest export
...
Add a compile time check to ensure that the parameters to TEST_P and INSTANTIATE_TEST_SUITE_P are not empty. Some compilers already fail in that case and, even where it works, it's likely to result in technically invalid code by virtue of creating reserved identifiers:
https://en.cppreference.com/w/cpp/language/identifiers
PiperOrigin-RevId: 273832263
2019-10-10 09:21:56 -04:00
Gennadiy Civil
5395345ca4
Merge pull request #2497 from thejcannon:handle_null_filename
...
PiperOrigin-RevId: 273585229
2019-10-10 09:21:47 -04:00
Gennadiy Civil
cb1d5db1a1
Merge pull request #2448 from kuzkry:bad-googletest-export
...
PiperOrigin-RevId: 273585026
2019-10-10 09:21:38 -04:00
Zebedee Mason
de69803b1e
Mention Cornichon as a related open source project
2019-10-09 10:44:03 +01:00
Gennadiy Civil
cd17fa2abd
Merge pull request #2475 from peterbarker:pr/google-add-override
...
PiperOrigin-RevId: 273379796
2019-10-08 14:13:46 -04:00
Joshua Cannon
20255e6f40
Use declval in noexcept expression
2019-10-07 16:27:11 -05:00
Joshua Cannon
7f8617a7c5
Switch to free function to avoid GCC bug
2019-10-07 15:49:52 -05:00
Joshua Cannon
872b9ceb60
Avoid comma operator
2019-10-07 15:12:51 -05:00
Joshua Cannon
0eadff8a93
Fix spacing
2019-10-07 14:37:39 -05:00
Joshua Cannon
10c1d8c4fa
Use the verbatim noexcept spec in MOCKED_METHOD
2019-10-07 14:30:10 -05:00
Gennadiy Civil
3f5a8c6ee6
Merge pull request #2495 from hyukmyeong:typo
...
PiperOrigin-RevId: 273346440
2019-10-07 15:16:08 -04:00
Joshua Cannon
2ed2211db9
Use FormatFileLocation for streaming file and line
2019-10-07 14:04:31 -05:00
Gennadiy Civil
4360e4267c
Merge pull request #2491 from SoapGentoo:fix-GNUInstallDirs-pkg-config
...
PiperOrigin-RevId: 273342665
2019-10-07 14:52:49 -04:00
David Seifert
b96832a44b
Add documentation for pkg-config in cross-compilation settings
2019-10-05 15:58:48 +02:00
David Seifert
5126ff48d9
Revert "Use pcfiledir for prefix in pkgconfig file"
...
The change makes implicit assumptions on the layout of the install
tree, which is going to break in many ways.
The correct solution is to use the `PKG_CONFIG_SYSROOT_DIR` variable
to inject the cross-compiled sysroot into `-I` and `-L` paths.
2019-10-05 15:58:45 +02:00
misterg
76a560c81c
Googletest export
...
Add an announcement about taking a dep on Abseil soon
PiperOrigin-RevId: 272683117
2019-10-03 13:19:18 -04:00
Abseil Team
703bd9caab
Googletest export
...
Release Googletest 1.10
PiperOrigin-RevId: 272658347
release-1.10.0
v1.10.x
2019-10-03 10:52:15 -04:00
Abseil Team
4105eb7263
Googletest export
...
Add a compile time check to ensure that the parameters to TEST and TEST_F are not empty
Some compilers may already fail in that case and even where it works, it's likely to result in technically invalid code by virtue of creating reserved identifiers:
https://en.cppreference.com/w/cpp/language/identifiers
PiperOrigin-RevId: 272543242
2019-10-03 10:52:07 -04:00
misterg
68319c19eb
Googletest export
...
Remove outdated CppCon announcement
PiperOrigin-RevId: 271866311
2019-10-03 10:51:59 -04:00
hyuk.myeong
51f7396d40
Fix typo in documents
2019-10-01 14:24:55 +09:00
misterg
dc1ca9ae4c
Googletest export
...
fix OSS Travis Builds -remove hardcoded updated package from brew
PiperOrigin-RevId: 271863378
2019-09-29 15:30:31 -04:00
misterg
72adf7a415
Googletest export
...
Bump llvm to 4.0 because brew removed 3.9
PiperOrigin-RevId: 271634609
2019-09-27 16:48:42 -04:00
Abseil Team
cb3f7ce1de
Googletest export
...
Makes testing::ResultOf() work with non-copyable arguments.
PiperOrigin-RevId: 271222632
2019-09-27 16:48:33 -04:00
Abseil Team
a783ade7c2
Googletest export
...
Updates headings.
PiperOrigin-RevId: 271148974
2019-09-27 16:48:26 -04:00
Abseil Team
bf0fe874a2
Googletest export
...
Use a more portable path for Android to write temp files to.
/sdcard is *not* guaranteed to be available, but /data/local/tmp is.
In some emulated situations, /sdcard may not be mounted, may not be R/W, or
mounting may be delayed until *after* the test process begins.
This is fairly common location to use. See e.g.:
https://reviews.llvm.org/D9569
PiperOrigin-RevId: 270909282
2019-09-27 16:48:17 -04:00
Abseil Team
076c46198f
Googletest export
...
Remove unnecessary full qualifications from std types.
PiperOrigin-RevId: 270101485
2019-09-27 16:48:09 -04:00
Gennadiy Civil
c78ea26f20
Bump llvm version to 4 so brew can work again
2019-09-27 15:30:17 -04:00
Peter Barker
2460f97152
Add many missing override keywords
...
This helps corrects builds with -Werror=suggest-overrides
2019-09-25 11:10:09 +10:00
Krystian Kuzniarek
e0d16aa336
remove GTEST_ARRAY_SIZE_
...
This macro didn't work when an array was passed to a function by pointer,
in which case the information about its size was lost.
Better alternatives are:
* std::extent<T>::value (compile-time)
* std::array<T, N>::size() (compile-time)
* std::distance(std::begin(array), std::end(array)) (run-time)
2019-09-23 19:31:06 +02:00
Krystian Kuzniarek
90a8ab70a1
mention the existing support for wide strings in string matchers
2019-09-23 19:16:31 +02:00
Krystian Kuzniarek
3339b97c6a
square away the stuff that hasn't been merged in a manual review
...
This fixes up f2fb48c3 (a manual merge) that has abandoned some things
from PR #2407 .
2019-09-16 19:22:10 +02:00
Krystian Kuzniarek
7c2bd3af98
square away the stuff that hasn't been merged in a manual review
...
This fixes up ab8f346b (a manual merge) that has abandoned some things
from PR #2395 .
2019-09-16 19:21:37 +02:00
kuzkry
f2fb48c3b3
Googletest export
...
Merge 3bdefdb473d304803d2a38e2a2cd5cdc1827c3bd into fb49e6c164490a227bbb7cf5223b846c836a0305
Closes #2407
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/googletest/pull/2407 from kuzkry:StaticAssertTypeEq 3bdefdb473d304803d2a38e2a2cd5cdc1827c3bd
PiperOrigin-RevId: 269255328
2019-09-16 11:47:35 -04:00
misterg
cad3bc46c2
Googletest export
...
CppCon announcement
PiperOrigin-RevId: 268950306
2019-09-13 16:09:34 -04:00
Krystian Kuzniarek
c96da8fea8
change usings
2019-09-12 18:21:31 +02:00
Shaindel Schwartz
c7a03daa99
Merge pull request #2387 from kuzkry:iff
...
PiperOrigin-RevId: 268693457
2019-09-12 12:10:51 -04:00
Hosein Ghahremanzadeh
ac24edd6e0
Googletest export
...
Merge 4c9ef099b29d2c840c04643cd9662fd7be712f7b into 565f1b848215b77c3732bca345fe76a0431d8b34
Closes #2403
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/googletest/pull/2403 from IYP-Programer-Yeah:remove-compile-assert-type-equal 4c9ef099b29d2c840c04643cd9662fd7be712f7b
PiperOrigin-RevId: 268681883
2019-09-12 12:10:41 -04:00
Abseil Team
274afe50cf
Googletest export
...
In the text fixtures section, point to the specific FAQ entry on constructors vs. `SetUp`.
PiperOrigin-RevId: 268509969
2019-09-12 12:10:33 -04:00
Krystian Kuzniarek
0cd3fbc8ab
change includes in gtest-port.h
2019-09-11 10:45:51 +02:00
Abseil Team
33a0d4f6d7
Googletest export
...
Some mechanical and grammatical fixes to the Primer.
PiperOrigin-RevId: 268200783
2019-09-10 10:54:21 -04:00
Krystian Kuzniarek
838ea5cea3
remove GTEST_HAS_STD_STRING
2019-09-10 14:49:06 +02:00
Krystian Kuzniarek
bafa644c18
remove a dead function
2019-09-10 14:14:01 +02:00
Abseil Team
3a45039862
Googletest export
...
Move IsFalse/IsTrue to a more appropriate section in the gmock matchers cheat sheet.
I'm assuming their current placement within the "Container Matchers" list is a mistake -- they don't seem to be container related and would fit well with other generic matchers.
PiperOrigin-RevId: 268016027
2019-09-09 13:40:40 -04:00
Abseil Team
62a109a2ff
Googletest export
...
...text exposed to GitHub repo https://www.github.com/google/googletest
PiperOrigin-RevId: 267654546
2019-09-09 13:40:33 -04:00
Abseil Team
c2b2cd8883
Googletest export
...
...text exposed to GitHub repo https://www.github.com/google/googletest
PiperOrigin-RevId: 267617889
2019-09-09 13:40:25 -04:00
Abseil Team
3f05f651ae
Googletest export
...
Extend gtest-port and stubs for ESP_PLATFORM
ESP_PLATFORM is the macro used to indicate compilation for the ESP32
using the esp-idf. This isn't a fully posix compatible system so
various features of google test need to be stubbed out in order for
it to work. It's oddly similar to the GTEST_OS_WINDOWS_PHONE setup.
PiperOrigin-RevId: 267471968
2019-09-06 08:00:18 -04:00
Abseil Team
6123df929d
Googletest export
...
Internal Change
PiperOrigin-RevId: 267457395
2019-09-06 08:00:11 -04:00
kuzkry
ab8f346b07
Googletest export
...
Merge 7f4f58da20e1066a888d3e4bcbef541db798a605 into 90a443f9c2437ca8a682a1ac625eba64e1d74a8a
Closes #2395
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/googletest/pull/2395 from kuzkry:custom-type-traits-remove_reference 7f4f58da20e1066a888d3e4bcbef541db798a605
PiperOrigin-RevId: 266189044
2019-09-06 08:00:03 -04:00
Gennadiy Civil
565f1b8482
Merge pull request #2398 from kuzkry:custom-type-traits-iterator_traits
...
PiperOrigin-RevId: 266136896
2019-08-29 10:52:57 -04:00
Gennadiy Civil
a648da952b
Merge pull request #2420 from kuzkry:remove-autotools-section
...
PiperOrigin-RevId: 265973494
2019-08-29 10:52:49 -04:00
Abseil Team
eb56ee5a28
Googletest export
...
Fix invalid g3doc syntax highlighting languages.
PiperOrigin-RevId: 265905539
2019-08-28 13:11:18 -04:00
Gennadiy Civil
d9c55a48ed
Merge pull request #2426 from kuzkry:#2396-postreview
...
PiperOrigin-RevId: 265785837
2019-08-27 21:30:42 -04:00
Chris Johnson
85f059f03d
Merge pull request #3 from google/master
...
Update master
2019-08-27 18:00:04 -05:00
Gennadiy Civil
fdd6a1dc8c
Merge pull request #2382 from kuzkry:dead-metafunction
...
PiperOrigin-RevId: 265730482
2019-08-27 16:59:59 -04:00
misterg
6a3d632f40
Googletest export
...
Add tuple version of Optional() matches. This allows Optional() to be used in Pointwise matchers.
PiperOrigin-RevId: 265501882
2019-08-26 14:43:56 -04:00
Krystian Kuzniarek
38ce18e8e6
post-review to db1b7399 ( #2396 )
2019-08-24 12:08:13 +02:00
Abseil Team
ed2eef6543
Googletest export
...
Add tuple version of Optional() matches. This allows Optional() to be used in Pointwise matchers.
PiperOrigin-RevId: 265110864
2019-08-23 16:39:21 -04:00
kuzkry
db1b739943
Googletest export
...
Merge b8ca465e73ac0954a0c9eec2a84bdd8913d5763b into 90a443f9c2437ca8a682a1ac625eba64e1d74a8a
Closes #2396
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/googletest/pull/2396 from kuzkry:custom-type-traits-true/false_type-and-bool_constant b8ca465e73ac0954a0c9eec2a84bdd8913d5763b
PiperOrigin-RevId: 265064856
2019-08-23 16:39:13 -04:00
Xiaoyi Zhang
46525e1e5d
Merge pull request #2394 from kuzkry:custom-type-traits-duplication-of-custom-index_sequence
...
PiperOrigin-RevId: 264863984
2019-08-23 16:39:04 -04:00
Xiaoyi Zhang
c6d884096a
Merge pull request #2401 from kuzkry:custom-type-traits-add_lvalue_reference
...
PiperOrigin-RevId: 264842713
2019-08-23 16:38:55 -04:00
Xiaoyi Zhang
9bf34ace71
Merge pull request #2400 from kuzkry:custom-type-traits-enable_if
...
PiperOrigin-RevId: 264693952
2019-08-23 16:38:47 -04:00
Krystian Kuzniarek
f8e9b3767f
remove references to autotools and combine gTest&gMock sections
2019-08-22 20:24:32 +02:00
Xiaoyi Zhang
fb49e6c164
Merge pull request #2393 from kuzkry:custom-type-traits-remove_const
...
PiperOrigin-RevId: 264652890
2019-08-21 17:13:34 -04:00
Abseil Team
d1ad644db4
Googletest export
...
Update broken links.
PiperOrigin-RevId: 264405918
2019-08-21 17:13:26 -04:00
Krystian Kuzniarek
7bd4a7f3e9
restore mistakenly removed iffs in their explicit form
...
Due to confusion arisen from "iff" standing for "if and only if",
this commit uses the latter.
2019-08-20 12:14:22 +02:00
misterg
c9ccac7cb7
Googletest export
...
Stop depending on the abseil master
PiperOrigin-RevId: 264210838
2019-08-19 16:17:03 -04:00