Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
a5308bb9
Commit
a5308bb9
authored
Apr 20, 2023
by
Tom Hughes
Committed by
Copybara-Service
Apr 20, 2023
Browse files
Add missing std includes
PiperOrigin-RevId: 525850646 Change-Id: I64387f5b933beb79cd05636dca81b7a75213383e
parent
9c1efac2
Changes
28
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
63 additions
and
0 deletions
+63
-0
googlemock/include/gmock/gmock-matchers.h
googlemock/include/gmock/gmock-matchers.h
+1
-0
googlemock/src/gmock-internal-utils.cc
googlemock/src/gmock-internal-utils.cc
+1
-0
googlemock/src/gmock-spec-builders.cc
googlemock/src/gmock-spec-builders.cc
+1
-0
googlemock/src/gmock.cc
googlemock/src/gmock.cc
+2
-0
googlemock/test/gmock-actions_test.cc
googlemock/test/gmock-actions_test.cc
+3
-0
googlemock/test/gmock-cardinalities_test.cc
googlemock/test/gmock-cardinalities_test.cc
+2
-0
googlemock/test/gmock-internal-utils_test.cc
googlemock/test/gmock-internal-utils_test.cc
+1
-0
googlemock/test/gmock-matchers-arithmetic_test.cc
googlemock/test/gmock-matchers-arithmetic_test.cc
+3
-0
googlemock/test/gmock-matchers-comparisons_test.cc
googlemock/test/gmock-matchers-comparisons_test.cc
+3
-0
googlemock/test/gmock-matchers-containers_test.cc
googlemock/test/gmock-matchers-containers_test.cc
+12
-0
googlemock/test/gmock-matchers-misc_test.cc
googlemock/test/gmock-matchers-misc_test.cc
+8
-0
googlemock/test/gmock-more-actions_test.cc
googlemock/test/gmock-more-actions_test.cc
+4
-0
googlemock/test/gmock_ex_test.cc
googlemock/test/gmock_ex_test.cc
+2
-0
googletest/samples/sample8_unittest.cc
googletest/samples/sample8_unittest.cc
+2
-0
googletest/src/gtest-death-test.cc
googletest/src/gtest-death-test.cc
+2
-0
googletest/src/gtest-filepath.cc
googletest/src/gtest-filepath.cc
+3
-0
googletest/src/gtest-port.cc
googletest/src/gtest-port.cc
+4
-0
googletest/src/gtest-printers.cc
googletest/src/gtest-printers.cc
+2
-0
googletest/src/gtest-test-part.cc
googletest/src/gtest-test-part.cc
+3
-0
googletest/src/gtest-typed-test.cc
googletest/src/gtest-typed-test.cc
+4
-0
No files found.
googlemock/include/gmock/gmock-matchers.h
View file @
a5308bb9
...
...
@@ -257,6 +257,7 @@
#include <algorithm>
#include <cmath>
#include <exception>
#include <functional>
#include <initializer_list>
#include <ios>
...
...
googlemock/src/gmock-internal-utils.cc
View file @
a5308bb9
...
...
@@ -41,6 +41,7 @@
#include <cctype>
#include <cstdint>
#include <cstring>
#include <iostream>
#include <ostream> // NOLINT
#include <string>
#include <vector>
...
...
googlemock/src/gmock-spec-builders.cc
View file @
a5308bb9
...
...
@@ -40,6 +40,7 @@
#include <map>
#include <memory>
#include <set>
#include <sstream>
#include <string>
#include <unordered_map>
#include <vector>
...
...
googlemock/src/gmock.cc
View file @
a5308bb9
...
...
@@ -29,6 +29,8 @@
#include "gmock/gmock.h"
#include <string>
#include "gmock/internal/gmock-port.h"
GMOCK_DEFINE_bool_
(
catch_leaked_mocks
,
true
,
...
...
googlemock/test/gmock-actions_test.cc
View file @
a5308bb9
...
...
@@ -37,8 +37,11 @@
#include <functional>
#include <iterator>
#include <memory>
#include <sstream>
#include <string>
#include <tuple>
#include <type_traits>
#include <utility>
#include <vector>
#include "gmock/gmock.h"
...
...
googlemock/test/gmock-cardinalities_test.cc
View file @
a5308bb9
...
...
@@ -31,6 +31,8 @@
//
// This file tests the built-in cardinalities.
#include <ostream>
#include "gmock/gmock.h"
#include "gtest/gtest-spi.h"
#include "gtest/gtest.h"
...
...
googlemock/test/gmock-internal-utils_test.cc
View file @
a5308bb9
...
...
@@ -40,6 +40,7 @@
#include <memory>
#include <sstream>
#include <string>
#include <tuple>
#include <vector>
#include "gmock/gmock.h"
...
...
googlemock/test/gmock-matchers-arithmetic_test.cc
View file @
a5308bb9
...
...
@@ -31,7 +31,10 @@
//
// This file tests some commonly used argument matchers.
#include <cmath>
#include <limits>
#include <memory>
#include <string>
#include "test/gmock-matchers_test.h"
...
...
googlemock/test/gmock-matchers-comparisons_test.cc
View file @
a5308bb9
...
...
@@ -31,7 +31,10 @@
//
// This file tests some commonly used argument matchers.
#include <functional>
#include <memory>
#include <string>
#include <tuple>
#include <vector>
#include "test/gmock-matchers_test.h"
...
...
googlemock/test/gmock-matchers-containers_test.cc
View file @
a5308bb9
...
...
@@ -31,6 +31,18 @@
//
// 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"
// Silence warning C4244: 'initializing': conversion from 'int' to 'short',
...
...
googlemock/test/gmock-matchers-misc_test.cc
View file @
a5308bb9
...
...
@@ -31,6 +31,14 @@
//
// 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"
// Silence warning C4244: 'initializing': conversion from 'int' to 'short',
...
...
googlemock/test/gmock-more-actions_test.cc
View file @
a5308bb9
...
...
@@ -33,10 +33,14 @@
#include "gmock/gmock-more-actions.h"
#include <algorithm>
#include <functional>
#include <iterator>
#include <memory>
#include <sstream>
#include <string>
#include <tuple>
#include <vector>
#include "gmock/gmock.h"
#include "gtest/gtest-spi.h"
...
...
googlemock/test/gmock_ex_test.cc
View file @
a5308bb9
...
...
@@ -29,6 +29,8 @@
// Tests Google Mock's functionality that depends on exceptions.
#include <exception>
#include "gmock/gmock.h"
#include "gtest/gtest.h"
...
...
googletest/samples/sample8_unittest.cc
View file @
a5308bb9
...
...
@@ -32,6 +32,8 @@
// and each test is given one combination as a parameter.
// Use class definitions to test from this header.
#include <tuple>
#include "prime_tables.h"
#include "gtest/gtest.h"
namespace
{
...
...
googletest/src/gtest-death-test.cc
View file @
a5308bb9
...
...
@@ -34,6 +34,8 @@
#include <functional>
#include <memory>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
...
...
googletest/src/gtest-filepath.cc
View file @
a5308bb9
...
...
@@ -31,6 +31,9 @@
#include <stdlib.h>
#include <iterator>
#include <string>
#include "gtest/gtest-message.h"
#include "gtest/internal/gtest-port.h"
...
...
googletest/src/gtest-port.cc
View file @
a5308bb9
...
...
@@ -37,6 +37,10 @@
#include <cstdint>
#include <fstream>
#include <memory>
#include <ostream>
#include <string>
#include <utility>
#include <vector>
#ifdef GTEST_OS_WINDOWS
#include <io.h>
...
...
googletest/src/gtest-printers.cc
View file @
a5308bb9
...
...
@@ -47,6 +47,8 @@
#include <cctype>
#include <cstdint>
#include <cwchar>
#include <iomanip>
#include <ios>
#include <ostream> // NOLINT
#include <string>
#include <type_traits>
...
...
googletest/src/gtest-test-part.cc
View file @
a5308bb9
...
...
@@ -32,6 +32,9 @@
#include "gtest/gtest-test-part.h"
#include <ostream>
#include <string>
#include "gtest/internal/gtest-port.h"
#include "src/gtest-internal-inl.h"
...
...
googletest/src/gtest-typed-test.cc
View file @
a5308bb9
...
...
@@ -29,6 +29,10 @@
#include "gtest/gtest-typed-test.h"
#include <set>
#include <string>
#include <vector>
#include "gtest/gtest.h"
namespace
testing
{
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment