Commit a5308bb9 authored by Tom Hughes's avatar Tom Hughes Committed by Copybara-Service
Browse files

Add missing std includes

PiperOrigin-RevId: 525850646
Change-Id: I64387f5b933beb79cd05636dca81b7a75213383e
parent 9c1efac2
...@@ -257,6 +257,7 @@ ...@@ -257,6 +257,7 @@
#include <algorithm> #include <algorithm>
#include <cmath> #include <cmath>
#include <exception>
#include <functional> #include <functional>
#include <initializer_list> #include <initializer_list>
#include <ios> #include <ios>
......
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
#include <cctype> #include <cctype>
#include <cstdint> #include <cstdint>
#include <cstring> #include <cstring>
#include <iostream>
#include <ostream> // NOLINT #include <ostream> // NOLINT
#include <string> #include <string>
#include <vector> #include <vector>
......
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
#include <map> #include <map>
#include <memory> #include <memory>
#include <set> #include <set>
#include <sstream>
#include <string> #include <string>
#include <unordered_map> #include <unordered_map>
#include <vector> #include <vector>
......
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
#include "gmock/gmock.h" #include "gmock/gmock.h"
#include <string>
#include "gmock/internal/gmock-port.h" #include "gmock/internal/gmock-port.h"
GMOCK_DEFINE_bool_(catch_leaked_mocks, true, GMOCK_DEFINE_bool_(catch_leaked_mocks, true,
......
...@@ -37,8 +37,11 @@ ...@@ -37,8 +37,11 @@
#include <functional> #include <functional>
#include <iterator> #include <iterator>
#include <memory> #include <memory>
#include <sstream>
#include <string> #include <string>
#include <tuple>
#include <type_traits> #include <type_traits>
#include <utility>
#include <vector> #include <vector>
#include "gmock/gmock.h" #include "gmock/gmock.h"
......
...@@ -31,6 +31,8 @@ ...@@ -31,6 +31,8 @@
// //
// This file tests the built-in cardinalities. // This file tests the built-in cardinalities.
#include <ostream>
#include "gmock/gmock.h" #include "gmock/gmock.h"
#include "gtest/gtest-spi.h" #include "gtest/gtest-spi.h"
#include "gtest/gtest.h" #include "gtest/gtest.h"
......
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
#include <memory> #include <memory>
#include <sstream> #include <sstream>
#include <string> #include <string>
#include <tuple>
#include <vector> #include <vector>
#include "gmock/gmock.h" #include "gmock/gmock.h"
......
...@@ -31,7 +31,10 @@ ...@@ -31,7 +31,10 @@
// //
// This file tests some commonly used argument matchers. // This file tests some commonly used argument matchers.
#include <cmath>
#include <limits> #include <limits>
#include <memory>
#include <string>
#include "test/gmock-matchers_test.h" #include "test/gmock-matchers_test.h"
......
...@@ -31,7 +31,10 @@ ...@@ -31,7 +31,10 @@
// //
// This file tests some commonly used argument matchers. // This file tests some commonly used argument matchers.
#include <functional>
#include <memory> #include <memory>
#include <string>
#include <tuple>
#include <vector> #include <vector>
#include "test/gmock-matchers_test.h" #include "test/gmock-matchers_test.h"
......
...@@ -31,6 +31,18 @@ ...@@ -31,6 +31,18 @@
// //
// This file tests some commonly used argument matchers. // This file tests some commonly used argument matchers.
#include <algorithm>
#include <array>
#include <deque>
#include <forward_list>
#include <iterator>
#include <list>
#include <memory>
#include <ostream>
#include <string>
#include <tuple>
#include <vector>
#include "gtest/gtest.h" #include "gtest/gtest.h"
// Silence warning C4244: 'initializing': conversion from 'int' to 'short', // Silence warning C4244: 'initializing': conversion from 'int' to 'short',
......
...@@ -31,6 +31,14 @@ ...@@ -31,6 +31,14 @@
// //
// This file tests some commonly used argument matchers. // This file tests some commonly used argument matchers.
#include <array>
#include <memory>
#include <ostream>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#include "gtest/gtest.h" #include "gtest/gtest.h"
// Silence warning C4244: 'initializing': conversion from 'int' to 'short', // Silence warning C4244: 'initializing': conversion from 'int' to 'short',
......
...@@ -33,10 +33,14 @@ ...@@ -33,10 +33,14 @@
#include "gmock/gmock-more-actions.h" #include "gmock/gmock-more-actions.h"
#include <algorithm>
#include <functional> #include <functional>
#include <iterator>
#include <memory> #include <memory>
#include <sstream> #include <sstream>
#include <string> #include <string>
#include <tuple>
#include <vector>
#include "gmock/gmock.h" #include "gmock/gmock.h"
#include "gtest/gtest-spi.h" #include "gtest/gtest-spi.h"
......
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
// Tests Google Mock's functionality that depends on exceptions. // Tests Google Mock's functionality that depends on exceptions.
#include <exception>
#include "gmock/gmock.h" #include "gmock/gmock.h"
#include "gtest/gtest.h" #include "gtest/gtest.h"
......
...@@ -32,6 +32,8 @@ ...@@ -32,6 +32,8 @@
// and each test is given one combination as a parameter. // and each test is given one combination as a parameter.
// Use class definitions to test from this header. // Use class definitions to test from this header.
#include <tuple>
#include "prime_tables.h" #include "prime_tables.h"
#include "gtest/gtest.h" #include "gtest/gtest.h"
namespace { namespace {
......
...@@ -34,6 +34,8 @@ ...@@ -34,6 +34,8 @@
#include <functional> #include <functional>
#include <memory> #include <memory>
#include <sstream>
#include <string>
#include <utility> #include <utility>
#include <vector> #include <vector>
......
...@@ -31,6 +31,9 @@ ...@@ -31,6 +31,9 @@
#include <stdlib.h> #include <stdlib.h>
#include <iterator>
#include <string>
#include "gtest/gtest-message.h" #include "gtest/gtest-message.h"
#include "gtest/internal/gtest-port.h" #include "gtest/internal/gtest-port.h"
......
...@@ -37,6 +37,10 @@ ...@@ -37,6 +37,10 @@
#include <cstdint> #include <cstdint>
#include <fstream> #include <fstream>
#include <memory> #include <memory>
#include <ostream>
#include <string>
#include <utility>
#include <vector>
#ifdef GTEST_OS_WINDOWS #ifdef GTEST_OS_WINDOWS
#include <io.h> #include <io.h>
......
...@@ -47,6 +47,8 @@ ...@@ -47,6 +47,8 @@
#include <cctype> #include <cctype>
#include <cstdint> #include <cstdint>
#include <cwchar> #include <cwchar>
#include <iomanip>
#include <ios>
#include <ostream> // NOLINT #include <ostream> // NOLINT
#include <string> #include <string>
#include <type_traits> #include <type_traits>
......
...@@ -32,6 +32,9 @@ ...@@ -32,6 +32,9 @@
#include "gtest/gtest-test-part.h" #include "gtest/gtest-test-part.h"
#include <ostream>
#include <string>
#include "gtest/internal/gtest-port.h" #include "gtest/internal/gtest-port.h"
#include "src/gtest-internal-inl.h" #include "src/gtest-internal-inl.h"
......
...@@ -29,6 +29,10 @@ ...@@ -29,6 +29,10 @@
#include "gtest/gtest-typed-test.h" #include "gtest/gtest-typed-test.h"
#include <set>
#include <string>
#include <vector>
#include "gtest/gtest.h" #include "gtest/gtest.h"
namespace testing { namespace testing {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment