Commit Graph

  • 7260682388 Merge pull request #5046 from UditDewan:fix/print-invalid-char-code-units main Copybara-Service 2026-08-21 14:02:47 -07:00
  • 0daf775f8c Merge pull request #4824 from DoDoENT:fix/emscripten-without-threads Copybara-Service 2026-08-19 12:35:58 -07:00
  • 1a447fdce7 avoid -lpthread link option when building with emscripten without threads Nenad Mikša 2025-08-31 10:53:41 +02:00
  • 91c99b6ffe Add missing const in INSTANTIATE_TEST_SUITE_P. Abseil Team 2026-08-18 07:43:53 -07:00
  • 7358557f03 Remove wchar_t overloads if GTEST_HAS_STD_WSTRING is disabled Abseil Team 2026-08-17 10:34:38 -07:00
  • 71edd0ef29 Extract GTEST_HAS_NATIVE_WCHAR Abseil Team 2026-08-17 09:41:48 -07:00
  • a2118f6587 Use std::make_unique to avoid clang-tidy false positive in GTEST_TEST_ macro. Abseil Team 2026-08-15 18:34:19 -07:00
  • 49495eacfd Use STL capabilities to choose GTEST_HAS_STD_WSTRING default Abseil Team 2026-08-13 12:43:36 -07:00
  • aa1eefe02c Don't reference std::char_traits<wchar_t> when !GTEST_HAS_STD_WSTRING Abseil Team 2026-08-13 10:39:10 -07:00
  • 002d14757f When Return is passed to WillOnce (i.e. converted to OnceAction) delegate to be equivalent to Return(ByMove(...)) Abseil Team 2026-08-13 05:33:37 -07:00
  • 02e50550c6 Default-enable wstring support for Android API level 21 and above. Abseil Team 2026-08-12 10:47:33 -07:00
  • 963dd8ea18 Update version strings to 1.18 Prashant Kumar 2026-08-11 06:58:58 -07:00
  • 063de7e957 Prepare for v1.18.0 (#5055) v1.18.0 v1.18.x Prashant Kumar 2026-08-10 10:19:17 -07:00
  • d89aac5f0d Merge pull request #5053 from zmajeedforks:zmajeed_fix_msvc_crt_override Copybara-Service 2026-08-07 11:15:29 -07:00
  • 4cb0ab12a1 Remove -WX to prevent compilation errors for users when a symbol becomes deprecated Abseil Team 2026-08-06 13:13:13 -07:00
  • c0afb7f69d Fix issue 5042: Don't override VC++ project C runtime library settings when googletest is used through cmake FetchContent or add_subdirectory zmajeed 2026-08-06 09:52:33 -05:00
  • 4f472747b1 Set GTEST_INTERNAL_HAS_STRING_VIEW = 1 in googletest as C++17 always supports it Abseil Team 2026-08-05 14:31:25 -07:00
  • b607d9f590 Update GoogleTest dependencies in preparation for release Prashant Kumar 2026-08-05 12:29:11 -07:00
  • c5a47cc5bd Fix forward broken gmock-matchers_test Abseil Team 2026-08-05 07:51:58 -07:00
  • 488c47cc68 Make string matchers work with std::wstring_view Abseil Team 2026-08-04 13:41:54 -07:00
  • 5f9ad7d401 Add missing const in GTEST_TEST_BOOLEAN_. Abseil Team 2026-08-03 19:06:11 -07:00
  • 51725d1111 Rollback: Improve detection for wchar_t and wstring support. Abseil Team 2026-08-03 17:36:25 -07:00
  • 92f71eddb0 Improve detection for wchar_t and wstring support. Abseil Team 2026-08-03 14:59:53 -07:00
  • 1b6f64d659 Automated Code Change Abseil Team 2026-08-01 00:06:44 -07:00
  • 3940de9189 Relax std::monostate printing assertion in test on Windows Prashant Kumar 2026-07-30 07:16:29 -07:00
  • a0f06a70e3 Make GoogleTest handle std::monostate and valueless_by_exception() for std::variant similarly to how it handles std::nullopt Abseil Team 2026-07-29 11:07:53 -07:00
  • 3ff51c3e80 Merge pull request #5041 from alvinjaison:fix/get-test-suite-shuffle-index Copybara-Service 2026-07-28 09:58:12 -07:00
  • c6f04243ed Automated Code Change Abseil Team 2026-07-27 22:07:00 -07:00
  • af4c3cfcb3 Automated Code Change Abseil Team 2026-07-27 21:56:57 -07:00
  • ecb18f0b03 Automated Code Change Abseil Team 2026-07-27 21:17:08 -07:00
  • 806b89cf63 Print char8_t/char16_t code units that aren't code points as code units uditDewan 2026-07-26 15:58:15 -04:00
  • b78aa5ee64 Automated Code Change Abseil Team 2026-07-24 23:56:12 -07:00
  • 56cf341d9c Remove useless casts in gtest-internal-inl.h Abseil Team 2026-07-24 19:31:15 -07:00
  • 136a6b8865 Merge pull request #4994 from edge90:fix/onceaction-tuple-sfinae-order Copybara-Service 2026-07-24 17:31:32 -07:00
  • 425811f10e Undo make string matchers work with std::wstring_view due to internal breakages Abseil Team 2026-07-24 11:26:48 -07:00
  • 679a61d3a8 Merge pull request #5035 from K-S-Manikandan:fix-cmake-uninit-var Copybara-Service 2026-07-24 10:06:23 -07:00
  • 80b3670e1a Maintain constness in assertions & expectations to resolve operator bool() cv-qualifier inconsistency between ASSERT_FALSE/EXPECT_FALSE vs. ASSERT_TRUE/EXPECT_TRUE Abseil Team 2026-07-24 10:05:06 -07:00
  • 44f4904703 Merge pull request #4798 from scivision:oneapi Copybara-Service 2026-07-24 10:04:54 -07:00
  • fef8e5e23b Make string matchers work with std::wstring_view Abseil Team 2026-07-24 10:02:48 -07:00
  • a798392000 Avoid triggering -Wzero-as-null-pointer-constant in HandleExceptionsInMethodIfSupported() Abseil Team 2026-07-24 10:02:16 -07:00
  • c914e89e2a Merge pull request #4877 from charles-lunarg:fix_CMake_option_gtest_force_shared_crt Copybara-Service 2026-07-24 10:02:11 -07:00
  • 0dbcd8d006 Fix typo in docs/gmock_cheat_sheet.md Abseil Team 2026-07-24 10:01:08 -07:00
  • 1269db9643 Fix GetTestSuite(i) ignoring shuffle order UnitTestImpl::GetTestSuite(int i) computes the shuffled index from test_suite_indices_ but then accesses test_suites_ using the raw parameter 'i' instead of the computed 'index'. This causes the public API UnitTest::GetTestSuite(i) to return test suites in original registration order rather than the active shuffle order. The mutable variant GetMutableSuiteCase(i) correctly uses 'index', and the equivalent function TestSuite::GetTestInfo(i) also uses 'index'. This was a copy-paste typo introduced in commit bd851333 (Sep 2009) when the shuffle feature was first added. The bug is observable from within TestEventListener callbacks during test execution when --gtest_shuffle is active. Alvin Jaison 2026-07-24 16:11:55 +01:00
  • a901203eff Display the Win32 error code when GetTempFileName() fails on Windows to aid debugging Abseil Team 2026-07-24 06:28:38 -07:00
  • d4e2591485 Merge pull request #5033 from UditDewan:fix/absolute-install-includedir Copybara-Service 2026-07-24 06:25:48 -07:00
  • 7ec05f657d Handle both -F and /F formats in GoogleTest CMake command lines as MSVC accepts both Abseil Team 2026-07-24 06:24:45 -07:00
  • a503186d79 Merge pull request #5039 from alvinjaison:fix/premature-exit-file-null-deref Copybara-Service 2026-07-23 13:21:28 -07:00
  • 7f7595f67d Make GTEST_DEFINE... macros also declare the flag to avoid triggering -Wmissing-variable-declarations Abseil Team 2026-07-23 10:39:25 -07:00
  • e331081278 Fix null pointer dereference in ScopedPrematureExitFile When TEST_PREMATURE_EXIT_FILE is set to a path that cannot be opened for writing (e.g., non-existent directory or insufficient permissions), posix::FOpen returns NULL. Previously, fwrite and fclose were called unconditionally on the result, causing a segmentation fault. This change: - Adds a null check before calling fwrite/fclose - Tracks whether the file was successfully created via a file_created_ flag, so the destructor only attempts removal when the file actually exists This matches the existing comment's stated intent that I/O errors should be silently ignored. Alvin Jaison 2026-07-23 09:24:19 +01:00
  • 08da6214b8 Merge pull request #5036 from Tachi107:cmake-pthread-flag Copybara-Service 2026-07-22 11:49:28 -07:00
  • 1be4946590 Prefer -pthread flag on CMake Andrea Pappacoda 2026-07-21 19:24:45 -03:00
  • 30a3151b0c Fix broken tests due to deprecation warning Mike Kruskal 2026-07-21 09:06:04 -07:00
  • 51109ebb47 fix: initialize cxx_strict_flags before compiler branches Manikandan K. S. 2026-07-19 18:34:59 +05:30
  • fcd5e26089 Fix exported include paths for absolute CMAKE_INSTALL_INCLUDEDIR uditDewan 2026-07-18 14:59:31 -04:00
  • fa005b296f Set up inlining for InvokeWithoutArgs when passed a functor. Abseil Team 2026-07-17 10:57:56 -07:00
  • 4141c384aa Merge pull request #4939 from fresh3nough:fix/cmake-python3-find-4847 Copybara-Service 2026-07-16 22:01:49 -07:00
  • a25f43576e Fixes -Wtautological-pointer-compare in gmock-matchers Bogdan Graur 2026-07-15 18:50:43 -07:00
  • b973ccb9ab Merge pull request #5025 from K-S-Manikandan:fix/output-test-python3 Copybara-Service 2026-07-15 07:37:08 -07:00
  • f132c89311 Merge pull request #5019 from kamleshkumaryadav5951-pixel:fix-emscripten-pthread-odr Copybara-Service 2026-07-11 21:38:07 -07:00
  • 961158b5e3 Merge pull request #4869 from phst:alwayslink Copybara-Service 2026-07-11 21:03:28 -07:00
  • 86ec940f63 fix: Python 3 crash in googletest-output-test.py debug mode Manikandan K. S. 2026-07-11 19:33:21 +05:30
  • bc410696f4 Support pthread-enabled Emscripten in GTEST_HAS_PTHREAD kamlesh kumar yadav 2026-07-09 12:23:52 +05:30
  • 8240fa7d62 Merge pull request #5011 from K-S-Manikandan:fix/compare-lib-android Copybara-Service 2026-07-07 16:54:00 -07:00
  • 7d012aa162 Fail smoothly for nullptr on c-style strings in IsEmpty Mike Kruskal 2026-07-07 15:08:58 -07:00
  • cd975499e8 Merge pull request #5008 from K-S-Manikandan:fix/wide-string-isempty Copybara-Service 2026-07-07 12:49:50 -07:00
  • 3064a609c7 Merge pull request #5005 from tejas-sharma27:fix-help-missing-flags Copybara-Service 2026-07-07 08:32:49 -07:00
  • 3549aa63f2 Merge pull request #5006 from K-S-Manikandan:fix/readme-fullstops Copybara-Service 2026-07-06 20:45:23 -07:00
  • 985d542c73 Merge pull request #5010 from K-S-Manikandan:fix/main-version-bump Copybara-Service 2026-07-06 14:24:28 -07:00
  • 18c6bc3dc4 fix: only use __cpp_lib_three_way_comparison for <compare> detection Manikandan K. S. 2026-07-05 09:03:35 +05:30
  • 22bda2ba15 chore: bump main branch version to 1.18.0 Manikandan K. S. 2026-07-05 08:54:29 +05:30
  • df4fdc5cfd fix: add C-style wide string overload to IsEmpty matcher Manikandan K. S. 2026-07-04 22:50:12 +05:30
  • 1c2082e8bd docs: add missing full stops to feature descriptions in README Manikandan K. S. 2026-07-04 22:14:52 +05:30
  • 5b39f4c876 Add missing public flags to --help output Tejas Sharma 2026-07-04 21:54:09 +05:30
  • 973323ed64 Delay name resolution by un-qualifying DynamicCastMessage calls from gMock. Clayton Knittel 2026-06-30 12:20:38 -07:00
  • 78f6d54f9f Merge pull request #5003 from fuzzard:fix_cmake_pdb_output Copybara-Service 2026-06-29 10:41:38 -07:00
  • 8b53336594 Automated Code Change Abseil Team 2026-06-23 06:45:04 -07:00
  • aa40ee603e Automated Code Change Abseil Team 2026-06-23 06:02:44 -07:00
  • d4a1a3599b cmake: Fix PDB output dir for install of static and shared lib Brent Murphy 2026-06-22 18:27:35 +10:00
  • 1fc11dea10 Automated Code Change Abseil Team 2026-06-22 00:44:06 -07:00
  • 0b1e895ba4 Specialize testing::WhenDynamicCastTo for protobuf messages. Clayton Knittel 2026-06-16 13:31:36 -07:00
  • 44f22083d7 Automated Code Change Abseil Team 2026-06-15 20:53:52 -07:00
  • b7ced159db Avoid is_constructible recursion in OnceAction Niclas Larsson 2026-06-04 19:45:38 +02:00
  • 7140cd416c Flip the recommendation about using EXPECT statements inside custom matchers. Mike Kruskal 2026-06-02 18:02:33 -07:00
  • a721f1b20c Automated Code Change Abseil Team 2026-05-30 20:49:05 -07:00
  • 8736d2cd5c gmock-spec-builders: support mocking const-qualified function types. Aaron Jacobs 2026-05-26 01:30:27 -07:00
  • 09f45f51fb Mark gtest_dt_ptr as const. Abseil Team 2026-05-24 16:31:04 -07:00
  • add971c7cb Introduce ContainsSubsequence matcher. Abseil Team 2026-05-20 02:39:23 -07:00
  • 4969916f0c CMake compatible with Intel oneAPI >= 2025.2 Michael Hirsch 2025-07-11 14:19:17 -04:00
  • dc3c9eda2f Double the MOCK_METHOD parameter count limit to mitigate users running into it Abseil Team 2026-05-15 11:10:38 -07:00
  • d72f9c8aea Add --gtest_shard_index and --gtest_total_shards command line arguments. Dillon Sharlet 2026-03-31 07:21:41 -07:00
  • 5fddfab2d2 Define DieInCRTDebugElse12() inside #ifdef _DEBUG Abseil Team 2026-03-30 10:45:53 -07:00
  • 2461743991 Automated Code Change Abseil Team 2026-03-27 21:30:13 -07:00
  • 015950a936 Add an implmenetation of Notification for MinGW Abseil Team 2026-03-24 10:53:03 -07:00
  • f38004c441 Fix typo in monomorphic matcher documentation. Abseil Team 2026-03-20 11:41:35 -07:00
  • 94be250af7 Add documentation for two-argument floating point matchers. Krzysztof Kosiński 2026-03-10 11:25:30 -07:00
  • a35bc7693c Make gmock-matchers.h auto-detect the value_type of ranges that don't have a typedef for it based on the ranges' iterators Abseil Team 2026-03-05 10:07:49 -08:00
  • f426a71abf Fix CMake 3.22 crash in find_package(Python3) when Python is absent fresh3nough 2026-02-28 16:19:07 +00:00
  • 73a63ea05d Improve str concatenation performance on MatchesTest Abseil Team 2026-02-24 09:26:47 -08:00
  • a407966592 Revert Optimize copying of matchers vector to speed up ElementsAreArray by reserving a std::vector copied via push_back. Abseil Team 2026-02-23 11:30:09 -08:00
  • 73e0fc18eb Optimize copying of matchers vector to speed up ElementsAreArray by reserving a std::vector copied via push_back. Dillon Sharlet 2026-02-23 10:01:31 -08:00