Abseil Team
717ce7feb8
Googletest export
...
Use standard C++11 integer types in gtest-port.h.
Remove testing::internal::{Int,Uint}{32,64} in favor of types
guaranteed to be in <cstdint> since C++11.
Tests for built-in integer type coverage are switched from
{Int,Uint}64 to [unsigned] long long, which is guaranteed by
C++11 to exist and be at least 64-bit wide.
PiperOrigin-RevId: 281565263
2019-11-22 16:33:15 -05:00
vslashg
8bab7883a6
Merge pull request #2514 from thejcannon:msvc_macro_issue
...
PiperOrigin-RevId: 276134684
2019-10-23 13:35:26 -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
Joshua Cannon
e1b67b07f7
Avoid recursive macros
2019-10-11 17:13:24 -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
Joshua Cannon
d935e8e3ed
Fix preprocessor tests
2019-10-11 10:41:47 -05:00
Joshua Cannon
c081ceebfb
Workaround MSVC VA_ARGS weirdness
2019-10-11 09:28:25 -05: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
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
Shaindel Schwartz
c7a03daa99
Merge pull request #2387 from kuzkry:iff
...
PiperOrigin-RevId: 268693457
2019-09-12 12:10:51 -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
fdd6a1dc8c
Merge pull request #2382 from kuzkry:dead-metafunction
...
PiperOrigin-RevId: 265730482
2019-08-27 16:59:59 -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
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
Krystian Kuzniarek
44de869783
remove a dead metafunction
2019-08-16 07:04:49 +02: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
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
Krystian Kuzniarek
bf6df7eaee
fix typos
2019-07-30 12:52:27 +02:00
Peter Levine
711fccf831
Don't allow signed/unsigned wchar_t in gcc 9 and later
2019-06-04 01:07:18 -04:00
Abseil Team
0adeadd283
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
Abseil Team
216c37f057
Googletest export
...
Drop generated file gmock-generated-internal-utils.h.
PiperOrigin-RevId: 228232195
2019-01-08 11:50:56 -05:00
misterg
14c2fba734
Googletest export
...
Internal Change
PiperOrigin-RevId: 227575279
2019-01-02 16:51:40 -05:00
Abseil Team
f8b1c1af17
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
Abseil Team
e26a3fa13c
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
Abseil Team
5dab7be70d
Googletest export
...
Validate spec modifiers.
PiperOrigin-RevId: 221810235
2018-11-20 13:29:40 -05:00
Abseil Team
e46e87bb1f
Googletest export
...
Unify implementation of GMOCK_PP_REPEAT and GMOCK_PP_FOREACH.
PiperOrigin-RevId: 221659669
2018-11-20 13:29:02 -05:00
Abseil Team
c5f08bf919
Googletest export
...
One macro to rule them all.
PiperOrigin-RevId: 221462515
2018-11-15 16:11:19 -05:00
Robin Lindén
826656b25f
Remove workarounds for unsupported MSVC versions
2018-11-10 15:20:26 +01:00
misterg
80b43d900b
Googletest export
...
Remove linked_ptr and use std::shared_ptr instead
PiperOrigin-RevId: 219129336
2018-10-29 13:46:16 -04:00
Abseil Team
b57c703963
Googletest export
...
Remove linked_ptr and use std::shared_ptr instead
PiperOrigin-RevId: 218618184
2018-10-26 14:19:59 -04:00
misterg
a50e4f05b3
Googletest export
...
Remove linked_ptr and use std::shared_ptr instead
PiperOrigin-RevId: 218571466
2018-10-26 14:19:51 -04:00
Abseil Team
7d3b73c85a
Unconditionally use std::tuple.
...
Remove all mention of TR1 tuple and our own implementation of tuple.
PiperOrigin-RevId: 216395043
2018-10-09 16:25:58 -04:00
Gennadiy Civil
265efde9a5
Comments changes, no functionality changes.
2018-08-14 15:04:11 -04:00
Gennadiy Civil
a3c0dd0f4d
Comments changes, no functionality changes
2018-08-14 14:04:07 -04:00
Gennadiy Civil
c203bee245
formatting custom/README.md
2018-08-13 22:45:53 -04:00
Gennadiy Civil
9060e19c87
formatting for new READMEs
2018-08-13 16:23:17 -04:00
Gennadiy Civil
63baab8924
Move instructions into custom/README files
2018-08-13 14:31:56 -04:00
Gennadiy Civil
18c940d13a
comment cleanup
2018-08-13 13:17:38 -04:00
Gennadiy Civil
984cba30ed
Formatting changes for automatic code management
2018-07-27 11:15:08 -04:00
duxiuxing
5b19054b02
Merge branch 'master' into googletest_for_asam
2018-07-19 18:38:20 +08:00
Gennadiy Civil
7e73a7ae6e
Formatting and a link
2018-07-18 11:17:19 -04:00
duxiuxing
65a49a73f0
Fix warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
2018-07-17 15:46:47 +08:00