summaryrefslogtreecommitdiffstats
path: root/googletest/include/gtest/internal/gtest-port.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #4527 from abhina-sree:abhina/add_zosCopybara-Service2024-05-061-1/+1
|\ | | | | | | | | PiperOrigin-RevId: 631167807 Change-Id: I563883341972bbb82c7407ebf3755d64317b84fc
| * add zos for death test supportrefs/pull/4527/headAbhina Sreeskantharajan2024-05-021-1/+1
| |
* | Merge branch 'main' into default-enable-thread-support-for-Solaris-AIX-zOSrefs/pull/3991/headPaul Groke2024-05-021-251/+373
|\ \ | |/
| * Use `[[maybe_unused]]` when it is available to avoidDerek Mauro2024-04-161-7/+27
| | | | | | | | | | | | | | -Wused-but-marked-unused warnings PiperOrigin-RevId: 625430612 Change-Id: Ia9d2e47984e1e6f91966afae8a6750119ae69446
| * Merge pull request #4505 from to01z:add-winapi-partition-games-supportCopybara-Service2024-04-031-6/+7
| |\ | | | | | | | | | | | | PiperOrigin-RevId: 621631167 Change-Id: I0790f7082ce3c20fef92958c820d40ec854fe91d
| | * Add support for compiling GoogleTest for XboxTroels Gram2024-03-241-4/+6
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support for Xbox platforms, requires the code to support compilation with the WINAPI_FAMILY_GAMES subset of the Win32 API. - Add support for WINAPI_FAMILY_GAMES to enable GTEST_OS_WINDOWS_GAMES platform. - Disable stream redirection (GTEST_HAS_STREAM_REDIRECTION = 0) and colored TTY printing for GTEST_OS_WINDOWS_GAMES platform. Both features currently require Win32 functions that don't exist in the WINAPI_FAMILY_GAMES subset. Misc fixes: - gtest-port.cc: Move GTEST_DISABLE_MSC_DEPRECATED_PUSH_ into GTEST_HAS_STREAM_REDIRECTION conditional section where the corresponding GTEST_DISABLE_MSC_DEPRECATED_POP_ is located. - googletest-port-test.cc: Switch stream redirection tests to be conditional on GTEST_HAS_STREAM_REDIRECTION instead of !defined(GTEST_OS_WINDOWS_MOBILE).
| * If GTEST_NO_ABSL_FLAGS is #defined, then the Abseil flag libraryAbseil Team2024-01-181-5/+7
| | | | | | | | | | | | | | will not be used by googletest, even if GTEST_HAS_ABSL is #defined. PiperOrigin-RevId: 599625032 Change-Id: Ieb994a15683dec89e88578120071eca8ac9fead1
| * Make posix::FileNo available under !GTEST_HAS_FILE_SYSTEMAbseil Team2024-01-161-2/+9
| | | | | | | | | | | | | | | | This enables automatic color output without filesystem support, as that only requires testing to see if the output is a terminal. Fixes: #4439 PiperOrigin-RevId: 598929397 Change-Id: Idca7490e6e090951a78cd1cdd710f41d756a68b4
| * Resolve `-Wundef` triggering on `GTEST_CREATE_SHARED_LIBRARY` and ↵Abseil Team2023-09-251-2/+2
| | | | | | | | | | | | | | | | `GTEST_LINKED_AS_SHARED_LIBRARY` with shared libraries in GoogleTest Fixes: #4372 PiperOrigin-RevId: 568327612 Change-Id: Ifc47f1a2a2648c29858a22966331557cc928cc47
| * Update C++ feature detection in `gtest-port.h` to rely on feature test ↵Abseil Team2023-09-221-24/+36
| | | | | | | | | | | | | | | | | | macros where possible. This also avoids conflating C++ language versions with standard library versions, which don't always align. PiperOrigin-RevId: 567662118 Change-Id: I7c023bd043c81c540c9430eaeb7b450feaadb206
| * googletest: Add universal printer for `std::span`Dino Radakovic2023-08-251-0/+12
| | | | | | | | | | | | | | Fixes #4318 PiperOrigin-RevId: 560089120 Change-Id: I9d0d098140033520266747a1689e953ee8307c47
| * changed http to httpsrefs/pull/4349/headsthd2023-08-221-1/+1
| |
| * Remove the GTEST_HAS_DOWNCAST_ customization point.Derek Mauro2023-08-021-14/+4
| | | | | | | | | | PiperOrigin-RevId: 553150809 Change-Id: I10d19a45a85c5f63a5e65dc322413307116e1c25
| * Remove unused cast implementationDerek Mauro2023-07-191-41/+0
| | | | | | | | | | PiperOrigin-RevId: 549456180 Change-Id: I10862e6de981087a5c590cccf6152255e9a176a0
| * Merge pull request #4302 from ciband:feat/nrf52Copybara-Service2023-07-181-1/+1
| |\ | | | | | | | | | | | | PiperOrigin-RevId: 549006105 Change-Id: Ifbe2bf57e10df4c71e51dbfaf1687f4f621f5106
| | * add support for nrf52refs/pull/4302/headChris Johnson2023-06-271-1/+1
| | | | | | | | | | | | Added support for Nordic nRF52 series of MCUs
| * | Fix C++20 compatibility bug.Mike Kruskal2023-07-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | This was shown to work for C++14, C++17, and C++20 after patched into googletest for the protobuf repo's CI. Closes #3659 PiperOrigin-RevId: 544795507 Change-Id: I3e0a94f675e78a6ee9aeccae86c23d940efed8eb
| * | Resolve an issue where the resolution of `operator<<` overloads would ↵Abseil Team2023-06-271-2/+4
| |/ | | | | | | | | | | | | attempt to instantiate the incomplete `testing::internal::Secret` type. PiperOrigin-RevId: 543799815 Change-Id: Ic0a4f48d825bef26cb8cc74d8a0117b3a5ef3f14
| * add support for nxp qn9090 mcuChris Johnson2023-06-221-1/+2
| | | | | | | | | | Added additional defines to correctly detect the NXP QN9090 MCU platform and allow for native googletest compability.
| * Use GTEST_INTERNAL_CPLUSPLUS_LANG instead of __cplusplusDino Radakovic2023-04-281-8/+9
| | | | | | | | | | | | | | | | Some versions of MSVC provide incorrect values for the latter and rely on _MSVC_LANG instead. Fixes #4226. PiperOrigin-RevId: 527919195 Change-Id: Ifcca4612074f5ebc5337094426866a187f79f90a
| * Use '=default' to define trivial constructor/destructorsrefs/pull/4221/headTom Hughes2023-04-211-5/+5
| | | | | | | | | | | | | | https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-equals-default.html PiperOrigin-RevId: 526079054 Change-Id: Ia4db21e3e5f58b90de05d52fd94b291ed06d785d
| * Support --gtest_stream_result_to on macOSAbseil Team2023-04-111-1/+1
| | | | | | | | | | | | | | | | | | | | This seems to just have been an oversight. POSIX socket APIs work just fine on macOS. Fixes https://github.com/google/googletest/issues/4214. PiperOrigin-RevId: 523398386 Change-Id: I9d56cd9c6933318c1f0b0024f7fef44122fd0c83
| * Merge pull request #4103 from gonzalobg:bugfix/nvcxx_supportCopybara-Service2023-03-281-1/+1
| |\ | | | | | | | | | | | | PiperOrigin-RevId: 520017251 Change-Id: Ib2be28787b739344c80a5d937f875737ba44a0ec
| | * Add doc commentrefs/pull/4103/headgonzalobg2023-03-231-1/+1
| | |
| | * Fix warnings with nvc++ as the compilerGonzalo Brito Gadeschi2022-12-281-1/+1
| | | | | | | | | | | | Closes #3849.
| * | Environment variables are accessible in UWP/WinRT appsrefs/pull/4180/headSergey2023-03-101-2/+2
| | | | | | | | | | | | | | | | | | Environment variables, for example `GTEST_FILTER`, `GTEST_OUTPUT` can be set before getting WinRT app run. GoogleTest can read environment variables and use them. It's easier than setting and passing command line parameters to WinRT app.
| * | Suppress std::string DLL interface warning introduced in commit ↵Abseil Team2023-03-071-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | f063cd25c90cbd4089a0ff96f5991df4f2721338 Fixes #4171 PiperOrigin-RevId: 514777144 Change-Id: I6f4b309c407684522fc1bc94dcc980ea1fe09cd9
| * | Fix compilation with -Wundef.Tom Hughes2023-03-061-3/+7
| | | | | | | | | | | | | | | | | | | | | Fixes #3267 PiperOrigin-RevId: 513946600 Change-Id: I0dd1daa04aeb735a238c4c0af6676565d64cbc21
| * | Always specify definitions for internal macrosTom Hughes2023-03-061-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These macros should only be used within googletest, so changing them will not affect external users. This allows compiling with -Wundef (#3267). PiperOrigin-RevId: 513946162 Change-Id: I2f2b7df9123adeba4147593b2b55fde349ccce4f
| * | Replace "#if GTEST_HAS_ABSL" with "#ifdef GTEST_HAS_ABSL"Tom Hughes2023-03-061-7/+8
| | | | | | | | | | | | | | | | | | | | | This allows compilation with "-Wundef" (#3267). PiperOrigin-RevId: 513945230 Change-Id: I45ef19c7ff3d20e97216bd031d406a03365471da
| * | Use "#ifdef" with public macrosTom Hughes2023-03-061-8/+8
| | | | | | | | | | | | | | | | | | | | | This allows compilation with "-Wundef" (#3267). PiperOrigin-RevId: 513944726 Change-Id: I1a3854bb2333d5dec6c0ff91ee1eddd9a766ab91
| * | Only define GTEST_IS_THREADSAFE to 1, not 0Tom Hughes2023-03-061-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | According to the comments, "Feature-indicating macros", such as GTEST_IS_THREADSAFE should be defined to 1 when supported and otherwise undefined (never 0). PiperOrigin-RevId: 513944266 Change-Id: I0f5c8bed107a5f20e957ec7c70339540ca2fe831
| * | Always specify definitions for internal macrosTom Hughes2023-03-061-3/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These macros should only be used within googletest, so changing them will not affect external users. This allows compiling with -Wundef (#3267). PiperOrigin-RevId: 513943800 Change-Id: I697b1005c29b0d5af06f583f202d86db48b567b9
| * | Use "#ifdef GTEST_OS_..." instead of "#if GTEST_OS_..."Tom Hughes2023-03-061-63/+94
| | | | | | | | | | | | | | | | | | | | | This is compatible with compiling with "-Wundef" (#3267). PiperOrigin-RevId: 513943378 Change-Id: I47cf5fabbb77be061c4483a0adc54511af6b191c
| * | Avoid redundant declaration of static constexpr members in c++17Dino Radakovic2023-02-221-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Keep declarations in c++ < 17 using new macro, GTEST_INTERNAL_NEED_REDUNDANT_CONSTEXPR_DECL. Fixes #4148. PiperOrigin-RevId: 511510401 Change-Id: I76c3f2fccf07a0978adcbe5f8f0203b9d0c33872
| * | Remove strdup usageAbseil Team2023-02-151-14/+3
| | | | | | | | | | | | | | | PiperOrigin-RevId: 509947007 Change-Id: I31e1274afa889776829c877c40c9af589298dcf2
| * | Avoid reliance on <any> header without RTTI on MSVCAbseil Team2023-02-131-1/+2
| | | | | | | | | | | | | | | | | | Fixes: #4144 PiperOrigin-RevId: 509322023 Change-Id: I52bdf6c25ff433327e174d3f9583b3d50b872d58
| * | Fix formatting of C++ filesTom Hughes2023-01-241-1/+1
| | | | | | | | | | | | | | | PiperOrigin-RevId: 504325204 Change-Id: Iaa1d6d0ab1dccaaeef26f9cb109d530835499240
| * | Add an explicit #error that C++ versions less than C++14 are not supportedDerek Mauro2023-01-121-0/+13
| | | | | | | | | | | | | | | PiperOrigin-RevId: 501568410 Change-Id: I0f78cd96dc9204c8ec97a1cdd09a9d63a613cc5b
| * | IWYU: Add missing std includesTom Hughes2023-01-051-0/+1
| | | | | | | | | | | | | | | PiperOrigin-RevId: 499893032 Change-Id: I33304802b7c82ae2d008f3ee89df38866e5f57ba
| * | Fix _MSC_VER checkTom Hughes2023-01-041-1/+1
| |/ | | | | | | | | | | | | Use "#if defined(_MSC_VER)" instead of "#if _MSC_VER" to be consistent with other usages in the file and to work with the "-Wundef" warning. PiperOrigin-RevId: 499471290 Change-Id: I34a9442eecf266afd74d4332cab7d39766df4ed9
| * Introduces a new porting flag (GTEST_HAS_FILE_SYSTEM) to indicate whether a ↵Abseil Team2022-12-121-36/+65
| | | | | | | | | | | | | | platform supports filesystem operations. PiperOrigin-RevId: 494751986 Change-Id: I07f73bdf478a73934b8f1a69c1ab4abda1b231ae
| * Remove incorrect usage of GTEST_ATTRIBUTE_UNUSED_ on classes.Abseil Team2022-11-151-10/+4
| | | | | | | | | | | | Fixes: #4054 PiperOrigin-RevId: 488721587 Change-Id: I8742d8475376635c83edcf524796a6107042e89b
| * Fix detection of the no_sanitize("hwaddress") attributeDerek Mauro2022-10-171-1/+12
| | | | | | | | | | PiperOrigin-RevId: 481765573 Change-Id: I1ba829c3cbf364a51d3ba383ee3b474c0e109578
| * Use attribute testing to simplify portable attribute macrosDerek Mauro2022-10-141-48/+37
| | | | | | | | | | | | | | Fixes #4025 PiperOrigin-RevId: 481186097 Change-Id: Id7d09e4626e5ccf564e8cfaa65581c1cd827918d
| * Merge pull request #4016 from Maratyszcza:qurtCopybara-Service2022-09-271-11/+21
| |\ | | | | | | | | | | | | PiperOrigin-RevId: 477265396 Change-Id: I781dae4ef2c5b6c771d960f1ec5a3c5cff0e97ad
| | * Port GoogleTest to QuRT (Hexagon RTOS)refs/pull/4016/headMarat Dukhan2022-09-261-8/+17
| |/
* | extend GTEST_HAS_PTHREAD default to enable threading on Solaris, AIX and z/OSPaul Groke2022-08-311-1/+2
|/ | | | fix #3990
* export ThreadLocalValueHolderBase which is required by exported APIs.refs/pull/3946/headAndrei Polushin2022-07-141-1/+1
| | | | fixes #3944
* Disable warning C4251 around refactored codeDerek Mauro2022-06-161-0/+4
| | | | | PiperOrigin-RevId: 455452553 Change-Id: I1dc3772ae61daf6d2d39484a0b1aad7eb0134525