vslashg
057ee5063d
Merge pull request #2533 from thejcannon:noexcept_spec
...
PiperOrigin-RevId: 277924721
2019-11-01 16:02:05 -04:00
Abseil Team
2db3df9c4f
Googletest export
...
Change variable name to match comment.
PiperOrigin-RevId: 277713621
2019-10-31 15:11:41 -04:00
Abseil Team
e2fc3a9c9c
Googletest export
...
Tolerate std::string's explicit copy construction from std::string_view.
PiperOrigin-RevId: 277583394
2019-10-31 15:11:31 -04:00
misterg
0a03480824
Googletest export
...
Remove outdated unsupported scripts
PiperOrigin-RevId: 277556831
2019-10-30 16:49:09 -04:00
misterg
ba33a8876c
Googletest export
...
Internal Change
PiperOrigin-RevId: 277336786
2019-10-29 16:51:58 -04:00
mhermas
fff8dabbf6
Googletest export
...
Merge 65032e28cba171c000accc85ffaf6f1e62921b86 into 8c91ecef292e963d23cd5b25f01ea1579fbe9aaa
Closes #2470
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/googletest/pull/2470 from hermas55:bugfix/default_const_param 65032e28cba171c000accc85ffaf6f1e62921b86
PiperOrigin-RevId: 277118535
2019-10-29 16:51:49 -04:00
Abseil Team
755f853c6b
Googletest export
...
Avoid temporary matcher instances.
They are unnecessary and can be relatively more expensive than the rest of the
algorithm.
PiperOrigin-RevId: 277084853
2019-10-29 16:51:31 -04:00
vslashg
b5fb5ba05c
Merge pull request #2527 from PiotrNycz:gmock_prevent_return_ref_to_store_temporaries_2
...
PiperOrigin-RevId: 277061341
2019-10-29 16:51:12 -04:00
Abseil Team
a1f71dd56d
Googletest export
...
Remove badly formatted suggestion in gmock cheat sheet.
PiperOrigin-RevId: 277060475
2019-10-29 16:51:01 -04:00
vslashg
a8b1a66cfd
Merge pull request #2388 from kuzkry:remove-gtest-type-util.pump
...
PiperOrigin-RevId: 276944601
2019-10-29 16:50:52 -04:00
Krystian Kuzniarek
002905f29f
move the pumping script to googlemock
2019-10-25 17:03:39 +02:00
vslashg
540835fa68
Merge pull request #2515 from ciband:feat/support_esp8266
...
PiperOrigin-RevId: 276333426
2019-10-25 10:21:03 -04:00
Piotr Nycz
208c2f6b60
variable names corrected (followed google coding style)
...
Issue 2527
2019-10-25 16:14:18 +02:00
Piotr Nycz
5ff72f5295
Apply 80chars limit
...
Issue 2527
2019-10-25 10:29:15 +02:00
Piotr Nycz
d072682119
Tests simplified and names corrected (POD->scalar)
...
Issue 2527
2019-10-24 10:22:09 +02:00
Abseil Team
37f3227831
Googletest export
...
Add a matcher `testing::ReturnRoundRobin` which, on each call, returns the next element in the sequence, restarting at the beginning once it has reached the end.
PiperOrigin-RevId: 276312136
2019-10-23 15:54:45 -04:00
Joshua Cannon
676d0444bf
Revert "Merge pull request #2498 from thejcannon:noexcept_spec"
...
This reverts commit ba513d2c9525a7c986c115ed5d603f2cf17c6016, reversing
changes made to a3ca5b9e0bf9abc3bc639684966085c4d3182578.
2019-10-23 14:46:46 -05:00
vslashg
8bab7883a6
Merge pull request #2514 from thejcannon:msvc_macro_issue
...
PiperOrigin-RevId: 276134684
2019-10-23 13:35:26 -04:00
Piotr Nycz
37590da6c0
Added more tests to verify: ReturnRef not accept temporary
...
Issue 2471
2019-10-23 10:12:48 +02:00
Piotr Nycz
19a3bbce51
Added tests verifying that temporaries are accepted by ReturnRef
...
Issue no 2527
2019-10-22 18:41:35 +02:00
Piotr Nycz
b11fb80e9e
Prevent using ReturnRef on reference to temporary
...
Fixed issue: 2471
2019-10-22 15:58:00 +02:00
Gennadiy Civil
de11283554
Merge pull request #2444 from kuzkry:remove-GTEST_ARRAY_SIZE_
...
PiperOrigin-RevId: 275842505
2019-10-22 09:38:21 -04:00
Abseil Team
611a321a6e
Googletest export
...
Remove bool_constant in favor of std::integral_constant<bool, ...>;
The one non-trivial use of bool_constant has been changed to have significantly
fewer template specializations.
PiperOrigin-RevId: 275842490
2019-10-22 09:38:12 -04:00
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
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
Andy Soffer
bdc29d5dc1
Merge pull request #2421 from kuzkry:cleanup-for-regex
...
PiperOrigin-RevId: 275058934
2019-10-16 14:32:31 -04: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
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
Gennadiy Civil
37905b9d8c
Merge pull request #2498 from thejcannon:noexcept_spec
...
PiperOrigin-RevId: 274097989
2019-10-11 07:07:12 -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
Joshua Cannon
bc996e0817
Made noexcept condition more exciting
2019-10-10 08:52:27 -05: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
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
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
hyuk.myeong
51f7396d40
Fix typo in documents
2019-10-01 14:24:55 +09: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
076c46198f
Googletest export
...
Remove unnecessary full qualifications from std types.
PiperOrigin-RevId: 270101485
2019-09-27 16:48:09 -04: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
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
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
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
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
d9c55a48ed
Merge pull request #2426 from kuzkry:#2396-postreview
...
PiperOrigin-RevId: 265785837
2019-08-27 21:30:42 -04: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
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
Gennadiy Civil
d5e9e0c38f
Merge pull request #2397 from kuzkry:custom-type-traits-is_reference
...
PiperOrigin-RevId: 264193098
2019-08-19 14:20:11 -04:00
Gennadiy Civil
30e58a89a4
Merge pull request #2381 from Yannic:fix_bazel
...
PiperOrigin-RevId: 264186624
2019-08-19 14:20:03 -04:00
Abseil Team
fcffabb5be
Googletest export
...
Fix broken link to regex syntax guide in cheat_sheet.md
PiperOrigin-RevId: 263840914
2019-08-19 14:19:50 -04:00
Abseil Team
410b52985e
Googletest export
...
Fix a broken link about selecting overloaded methods.
PiperOrigin-RevId: 263807775
2019-08-19 14:19:42 -04:00
misterg
eb78ee170a
Googletest export
...
Fix broken link at beginning of "Mocking Non-virtual Methods" section.
PiperOrigin-RevId: 263772074
2019-08-16 11:23:59 -04:00
misterg
976b37fe93
Googletest export
...
Internal Change
PiperOrigin-RevId: 263768422
2019-08-16 11:23:51 -04:00
Krystian Kuzniarek
44de869783
remove a dead metafunction
2019-08-16 07:04:49 +02:00
misterg
e9d5f427b5
Googletest export
...
Internal changes
PiperOrigin-RevId: 263636027
2019-08-15 17:34:42 -04:00
Abseil Team
d44b137fd1
Googletest export
...
Remove legacy support for signed wchar_t and unsigned wchar_t.
Clang now errors out on these types as well by default. Rather than making the
condition for these types even more complicated, just remove the tests covering
these types since they don't seem to justify the maintenance burden. We
can reasonably expect these types to work in compilers that support them
without needing specific tests for them since they are treated as standard
integral types.
PiperOrigin-RevId: 263577673
2019-08-15 17:34:34 -04:00
Gennadiy Civil
4083746e61
Merge pull request #2391 from adambadura:FixCygwin
...
PiperOrigin-RevId: 263574695
2019-08-15 17:34:27 -04:00
Gennadiy Civil
9b70406919
Merge pull request #2399 from kuzkry:custom-type-traits-is_same
...
PiperOrigin-RevId: 263568712
2019-08-15 17:34:18 -04:00
Abseil Team
a92e4a8e92
Googletest export
...
Internal changes
PiperOrigin-RevId: 262994110
2019-08-15 17:33:52 -04:00
Abseil Team
3835e15d72
Googletest export
...
Fix a link to the guide for creating custom matchers.
PiperOrigin-RevId: 262572684
2019-08-15 17:33:28 -04:00
Krystian Kuzniarek
6a015ca1cb
reuse IndexSequence from googletest
2019-08-14 14:21:32 +02:00
Krystian Kuzniarek
ec49fbca4c
remove custom implementations of std::is_same
2019-08-14 14:00:44 +02:00
Krystian Kuzniarek
da76d01b98
remove a custom implementation of std::is_reference
2019-08-14 13:33:13 +02:00
Krystian Kuzniarek
364839ab14
remove a custom implementation of std::remove_const
2019-08-14 00:34:04 +02:00
Adam Badura
6dbddd32b0
Use -Wa,-mbig-obj for Cygwin/MinGW always
2019-08-11 21:10:06 +02:00
Gennadiy Civil
90a443f9c2
Merge pull request #2378 from kuzkry:markdown-table
...
PiperOrigin-RevId: 262135359
2019-08-07 11:57:30 -04:00
Abseil Team
f8f5fcab3b
Googletest export
...
Fix broken links.
PiperOrigin-RevId: 262123510
2019-08-07 11:57:22 -04:00
Abseil Team
dd5402d9d4
Googletest export
...
Add general explanation of MOCK_METHOD, including list of supported qualifiers.
PiperOrigin-RevId: 262077180
2019-08-07 11:57:13 -04:00