Lei Zhang b68f6ed42a Add no_exit_time_destructors config to googletest
Add the no_exit_time_destructors config to
third_party/googletest/BUILD.gn, as parts of googletest will trigger
-Wexit-time-destructors warnings if enabled.

This is effectively the same CL as https://crrev.com/c/7682299 in
Chromium. Standalone PDFium does not have -Wexit-time-destructors
enabled right now, but may in the near future. This prepares for that.

Change-Id: I5d688af1963fdcea49fdbcd3e4a78036afbb1635
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/145110
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
2026-03-19 11:19:54 -07:00
..

Name: Google Test: Google's C++ Testing Framework
Short Name: googletest
URL: https://github.com/google/googletest.git
Version: N/A
Revision: DEPS
Update Mechanism: Manual
License: BSD-3-Clause
License File: src/LICENSE
Shipped: no
Security critical: no

Google Test is imported as-is, to facilitate version bumping. However, the
file/directory layout of Google Test is not yet considered stable. Therefore,
until Google Test's layout stabilizes, PDFium code MUST NOT depend on it
directly. Instead, PDFium code MUST:

* #include the headers in testing/gtest and testing/gmock
* use //testing/gtest(:gtest_main) and //testing/gmock(:gmock_main) in BUILD.gn
  deps

This will allow us to adapt to Google Test changes with minimal disruption.