From a5308bb992c049b16b763f8910da70c208c5cede Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 20 Apr 2023 14:28:27 -0700 Subject: Add missing std includes PiperOrigin-RevId: 525850646 Change-Id: I64387f5b933beb79cd05636dca81b7a75213383e --- googlemock/include/gmock/gmock-matchers.h | 1 + googlemock/src/gmock-internal-utils.cc | 1 + googlemock/src/gmock-spec-builders.cc | 1 + googlemock/src/gmock.cc | 2 ++ googlemock/test/gmock-actions_test.cc | 3 +++ googlemock/test/gmock-cardinalities_test.cc | 2 ++ googlemock/test/gmock-internal-utils_test.cc | 1 + googlemock/test/gmock-matchers-arithmetic_test.cc | 3 +++ googlemock/test/gmock-matchers-comparisons_test.cc | 3 +++ googlemock/test/gmock-matchers-containers_test.cc | 12 ++++++++++++ googlemock/test/gmock-matchers-misc_test.cc | 8 ++++++++ googlemock/test/gmock-more-actions_test.cc | 4 ++++ googlemock/test/gmock_ex_test.cc | 2 ++ googletest/samples/sample8_unittest.cc | 2 ++ googletest/src/gtest-death-test.cc | 2 ++ googletest/src/gtest-filepath.cc | 3 +++ googletest/src/gtest-port.cc | 4 ++++ googletest/src/gtest-printers.cc | 2 ++ googletest/src/gtest-test-part.cc | 3 +++ googletest/src/gtest-typed-test.cc | 4 ++++ googletest/src/gtest.cc | 3 +++ googletest/test/googletest-death-test-test.cc | 3 +++ googletest/test/googletest-list-tests-unittest_.cc | 3 +++ googletest/test/googletest-listener-test.cc | 1 + googletest/test/googletest-param-test-invalid-name2-test_.cc | 2 ++ googletest/test/googletest-printers-test.cc | 2 ++ googletest/test/gtest_stress_test.cc | 2 ++ googletest/test/gtest_unittest.cc | 1 + 28 files changed, 80 insertions(+) diff --git a/googlemock/include/gmock/gmock-matchers.h b/googlemock/include/gmock/gmock-matchers.h index fb9f15e..0f67713 100644 --- a/googlemock/include/gmock/gmock-matchers.h +++ b/googlemock/include/gmock/gmock-matchers.h @@ -257,6 +257,7 @@ #include #include +#include #include #include #include diff --git a/googlemock/src/gmock-internal-utils.cc b/googlemock/src/gmock-internal-utils.cc index 774cce3..5c2ce0d 100644 --- a/googlemock/src/gmock-internal-utils.cc +++ b/googlemock/src/gmock-internal-utils.cc @@ -41,6 +41,7 @@ #include #include #include +#include #include // NOLINT #include #include diff --git a/googlemock/src/gmock-spec-builders.cc b/googlemock/src/gmock-spec-builders.cc index 5a98faf..df0660b 100644 --- a/googlemock/src/gmock-spec-builders.cc +++ b/googlemock/src/gmock-spec-builders.cc @@ -40,6 +40,7 @@ #include #include #include +#include #include #include #include diff --git a/googlemock/src/gmock.cc b/googlemock/src/gmock.cc index 5025656..b5e714d 100644 --- a/googlemock/src/gmock.cc +++ b/googlemock/src/gmock.cc @@ -29,6 +29,8 @@ #include "gmock/gmock.h" +#include + #include "gmock/internal/gmock-port.h" GMOCK_DEFINE_bool_(catch_leaked_mocks, true, diff --git a/googlemock/test/gmock-actions_test.cc b/googlemock/test/gmock-actions_test.cc index ee9b889..f2305e5 100644 --- a/googlemock/test/gmock-actions_test.cc +++ b/googlemock/test/gmock-actions_test.cc @@ -37,8 +37,11 @@ #include #include #include +#include #include +#include #include +#include #include #include "gmock/gmock.h" diff --git a/googlemock/test/gmock-cardinalities_test.cc b/googlemock/test/gmock-cardinalities_test.cc index cdd9956..77196d7 100644 --- a/googlemock/test/gmock-cardinalities_test.cc +++ b/googlemock/test/gmock-cardinalities_test.cc @@ -31,6 +31,8 @@ // // This file tests the built-in cardinalities. +#include + #include "gmock/gmock.h" #include "gtest/gtest-spi.h" #include "gtest/gtest.h" diff --git a/googlemock/test/gmock-internal-utils_test.cc b/googlemock/test/gmock-internal-utils_test.cc index 360d02a..6c769a8 100644 --- a/googlemock/test/gmock-internal-utils_test.cc +++ b/googlemock/test/gmock-internal-utils_test.cc @@ -40,6 +40,7 @@ #include #include #include +#include #include #include "gmock/gmock.h" diff --git a/googlemock/test/gmock-matchers-arithmetic_test.cc b/googlemock/test/gmock-matchers-arithmetic_test.cc index 2c5f4d0..062e2ab 100644 --- a/googlemock/test/gmock-matchers-arithmetic_test.cc +++ b/googlemock/test/gmock-matchers-arithmetic_test.cc @@ -31,7 +31,10 @@ // // This file tests some commonly used argument matchers. +#include #include +#include +#include #include "test/gmock-matchers_test.h" diff --git a/googlemock/test/gmock-matchers-comparisons_test.cc b/googlemock/test/gmock-matchers-comparisons_test.cc index b849990..cf85eb5 100644 --- a/googlemock/test/gmock-matchers-comparisons_test.cc +++ b/googlemock/test/gmock-matchers-comparisons_test.cc @@ -31,7 +31,10 @@ // // This file tests some commonly used argument matchers. +#include #include +#include +#include #include #include "test/gmock-matchers_test.h" diff --git a/googlemock/test/gmock-matchers-containers_test.cc b/googlemock/test/gmock-matchers-containers_test.cc index c8d8ea3..654a011 100644 --- a/googlemock/test/gmock-matchers-containers_test.cc +++ b/googlemock/test/gmock-matchers-containers_test.cc @@ -31,6 +31,18 @@ // // This file tests some commonly used argument matchers. +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + #include "gtest/gtest.h" // Silence warning C4244: 'initializing': conversion from 'int' to 'short', diff --git a/googlemock/test/gmock-matchers-misc_test.cc b/googlemock/test/gmock-matchers-misc_test.cc index 0c7aa49..b8f6458 100644 --- a/googlemock/test/gmock-matchers-misc_test.cc +++ b/googlemock/test/gmock-matchers-misc_test.cc @@ -31,6 +31,14 @@ // // This file tests some commonly used argument matchers. +#include +#include +#include +#include +#include +#include +#include + #include "gtest/gtest.h" // Silence warning C4244: 'initializing': conversion from 'int' to 'short', diff --git a/googlemock/test/gmock-more-actions_test.cc b/googlemock/test/gmock-more-actions_test.cc index 866e1ab..ec7aea6 100644 --- a/googlemock/test/gmock-more-actions_test.cc +++ b/googlemock/test/gmock-more-actions_test.cc @@ -33,10 +33,14 @@ #include "gmock/gmock-more-actions.h" +#include #include +#include #include #include #include +#include +#include #include "gmock/gmock.h" #include "gtest/gtest-spi.h" diff --git a/googlemock/test/gmock_ex_test.cc b/googlemock/test/gmock_ex_test.cc index 44e5e35..e174122 100644 --- a/googlemock/test/gmock_ex_test.cc +++ b/googlemock/test/gmock_ex_test.cc @@ -29,6 +29,8 @@ // Tests Google Mock's functionality that depends on exceptions. +#include + #include "gmock/gmock.h" #include "gtest/gtest.h" diff --git a/googletest/samples/sample8_unittest.cc b/googletest/samples/sample8_unittest.cc index 9717e28..4df81df 100644 --- a/googletest/samples/sample8_unittest.cc +++ b/googletest/samples/sample8_unittest.cc @@ -32,6 +32,8 @@ // and each test is given one combination as a parameter. // Use class definitions to test from this header. +#include + #include "prime_tables.h" #include "gtest/gtest.h" namespace { diff --git a/googletest/src/gtest-death-test.cc b/googletest/src/gtest-death-test.cc index 0b87ba5..55b9578 100644 --- a/googletest/src/gtest-death-test.cc +++ b/googletest/src/gtest-death-test.cc @@ -34,6 +34,8 @@ #include #include +#include +#include #include #include diff --git a/googletest/src/gtest-filepath.cc b/googletest/src/gtest-filepath.cc index 48dee13..75f52bc 100644 --- a/googletest/src/gtest-filepath.cc +++ b/googletest/src/gtest-filepath.cc @@ -31,6 +31,9 @@ #include +#include +#include + #include "gtest/gtest-message.h" #include "gtest/internal/gtest-port.h" diff --git a/googletest/src/gtest-port.cc b/googletest/src/gtest-port.cc index 994fabd..77b618c 100644 --- a/googletest/src/gtest-port.cc +++ b/googletest/src/gtest-port.cc @@ -37,6 +37,10 @@ #include #include #include +#include +#include +#include +#include #ifdef GTEST_OS_WINDOWS #include diff --git a/googletest/src/gtest-printers.cc b/googletest/src/gtest-printers.cc index de740e7..2b47067 100644 --- a/googletest/src/gtest-printers.cc +++ b/googletest/src/gtest-printers.cc @@ -47,6 +47,8 @@ #include #include #include +#include +#include #include // NOLINT #include #include diff --git a/googletest/src/gtest-test-part.cc b/googletest/src/gtest-test-part.cc index df677e6..6f8ddd7 100644 --- a/googletest/src/gtest-test-part.cc +++ b/googletest/src/gtest-test-part.cc @@ -32,6 +32,9 @@ #include "gtest/gtest-test-part.h" +#include +#include + #include "gtest/internal/gtest-port.h" #include "src/gtest-internal-inl.h" diff --git a/googletest/src/gtest-typed-test.cc b/googletest/src/gtest-typed-test.cc index 9941306..b251c09 100644 --- a/googletest/src/gtest-typed-test.cc +++ b/googletest/src/gtest-typed-test.cc @@ -29,6 +29,10 @@ #include "gtest/gtest-typed-test.h" +#include +#include +#include + #include "gtest/gtest.h" namespace testing { diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc index da52b1d..01c0220 100644 --- a/googletest/src/gtest.cc +++ b/googletest/src/gtest.cc @@ -48,13 +48,16 @@ #include #include #include +#include #include #include #include #include #include // NOLINT +#include #include #include +#include #include #include "gtest/gtest-assertion-result.h" diff --git a/googletest/test/googletest-death-test-test.cc b/googletest/test/googletest-death-test-test.cc index 3579ce8..4cc81b7 100644 --- a/googletest/test/googletest-death-test-test.cc +++ b/googletest/test/googletest-death-test-test.cc @@ -52,6 +52,9 @@ using testing::internal::AlwaysTrue; #include #include +#include +#include + #ifdef GTEST_OS_LINUX #include #endif // GTEST_OS_LINUX diff --git a/googletest/test/googletest-list-tests-unittest_.cc b/googletest/test/googletest-list-tests-unittest_.cc index 5577e89..a1ea6cf 100644 --- a/googletest/test/googletest-list-tests-unittest_.cc +++ b/googletest/test/googletest-list-tests-unittest_.cc @@ -36,6 +36,9 @@ // This program will be invoked from a Python unit test. // Don't run it directly. +#include +#include + #include "gtest/gtest.h" // Several different test cases and tests that will be listed. diff --git a/googletest/test/googletest-listener-test.cc b/googletest/test/googletest-listener-test.cc index 654486d..d7c47c2 100644 --- a/googletest/test/googletest-listener-test.cc +++ b/googletest/test/googletest-listener-test.cc @@ -32,6 +32,7 @@ // This file verifies Google Test event listeners receive events at the // right times. +#include #include #include "gtest/gtest.h" diff --git a/googletest/test/googletest-param-test-invalid-name2-test_.cc b/googletest/test/googletest-param-test-invalid-name2-test_.cc index d0c44da..6d88a9c 100644 --- a/googletest/test/googletest-param-test-invalid-name2-test_.cc +++ b/googletest/test/googletest-param-test-invalid-name2-test_.cc @@ -27,6 +27,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +#include + #include "gtest/gtest.h" namespace { diff --git a/googletest/test/googletest-printers-test.cc b/googletest/test/googletest-printers-test.cc index 7fa82d0..e667e8f 100644 --- a/googletest/test/googletest-printers-test.cc +++ b/googletest/test/googletest-printers-test.cc @@ -42,9 +42,11 @@ #include #include #include +#include #include #include #include +#include #include #include #include diff --git a/googletest/test/gtest_stress_test.cc b/googletest/test/gtest_stress_test.cc index 0cf2185..af8e757 100644 --- a/googletest/test/gtest_stress_test.cc +++ b/googletest/test/gtest_stress_test.cc @@ -30,7 +30,9 @@ // Tests that SCOPED_TRACE() and various Google Test assertions can be // used in a large number of threads concurrently. +#include #include +#include #include #include "gtest/gtest.h" diff --git a/googletest/test/gtest_unittest.cc b/googletest/test/gtest_unittest.cc index bd4fc60..57041f0 100644 --- a/googletest/test/gtest_unittest.cc +++ b/googletest/test/gtest_unittest.cc @@ -63,6 +63,7 @@ TEST(CommandLineFlagsTest, CanBeAccessedInCodeOnceGTestHIsIncluded) { #include #include #include +#include #include #include #include -- cgit v0.12