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
53e08c44
Commit
53e08c44
authored
Sep 14, 2010
by
zhanyong.wan
Browse files
Include gtest and gmock headers as user headers instead of system headers.
parent
ad7c462b
Changes
42
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
64 additions
and
64 deletions
+64
-64
src/gmock-cardinalities.cc
src/gmock-cardinalities.cc
+3
-3
src/gmock-internal-utils.cc
src/gmock-internal-utils.cc
+4
-4
src/gmock-matchers.cc
src/gmock-matchers.cc
+2
-2
src/gmock-spec-builders.cc
src/gmock-spec-builders.cc
+3
-3
src/gmock.cc
src/gmock.cc
+2
-2
src/gmock_main.cc
src/gmock_main.cc
+2
-2
test/gmock-actions_test.cc
test/gmock-actions_test.cc
+5
-5
test/gmock-cardinalities_test.cc
test/gmock-cardinalities_test.cc
+3
-3
test/gmock-generated-actions_test.cc
test/gmock-generated-actions_test.cc
+3
-3
test/gmock-generated-function-mockers_test.cc
test/gmock-generated-function-mockers_test.cc
+3
-3
test/gmock-generated-internal-utils_test.cc
test/gmock-generated-internal-utils_test.cc
+3
-3
test/gmock-generated-matchers_test.cc
test/gmock-generated-matchers_test.cc
+4
-4
test/gmock-internal-utils_test.cc
test/gmock-internal-utils_test.cc
+5
-5
test/gmock-matchers_test.cc
test/gmock-matchers_test.cc
+4
-4
test/gmock-more-actions_test.cc
test/gmock-more-actions_test.cc
+3
-3
test/gmock-nice-strict_test.cc
test/gmock-nice-strict_test.cc
+4
-4
test/gmock-port_test.cc
test/gmock-port_test.cc
+2
-2
test/gmock-spec-builders_test.cc
test/gmock-spec-builders_test.cc
+5
-5
test/gmock_leak_test_.cc
test/gmock_leak_test_.cc
+1
-1
test/gmock_link_test.h
test/gmock_link_test.h
+3
-3
No files found.
src/gmock-cardinalities.cc
View file @
53e08c44
...
@@ -33,14 +33,14 @@
...
@@ -33,14 +33,14 @@
//
//
// This file implements cardinalities.
// This file implements cardinalities.
#include
<
gmock/gmock-cardinalities.h
>
#include
"
gmock/gmock-cardinalities.h
"
#include <limits.h>
#include <limits.h>
#include <ostream> // NOLINT
#include <ostream> // NOLINT
#include <sstream>
#include <sstream>
#include <string>
#include <string>
#include
<
gmock/internal/gmock-internal-utils.h
>
#include
"
gmock/internal/gmock-internal-utils.h
"
#include
<
gtest/gtest.h
>
#include
"
gtest/gtest.h
"
namespace
testing
{
namespace
testing
{
...
...
src/gmock-internal-utils.cc
View file @
53e08c44
...
@@ -35,14 +35,14 @@
...
@@ -35,14 +35,14 @@
// Mock. They are subject to change without notice, so please DO NOT
// Mock. They are subject to change without notice, so please DO NOT
// USE THEM IN USER CODE.
// USE THEM IN USER CODE.
#include
<
gmock/internal/gmock-internal-utils.h
>
#include
"
gmock/internal/gmock-internal-utils.h
"
#include <ctype.h>
#include <ctype.h>
#include <ostream> // NOLINT
#include <ostream> // NOLINT
#include <string>
#include <string>
#include
<
gmock/gmock.h
>
#include
"
gmock/gmock.h
"
#include
<
gmock/internal/gmock-port.h
>
#include
"
gmock/internal/gmock-port.h
"
#include
<
gtest/gtest.h
>
#include
"
gtest/gtest.h
"
namespace
testing
{
namespace
testing
{
namespace
internal
{
namespace
internal
{
...
...
src/gmock-matchers.cc
View file @
53e08c44
...
@@ -34,8 +34,8 @@
...
@@ -34,8 +34,8 @@
// This file implements Matcher<const string&>, Matcher<string>, and
// This file implements Matcher<const string&>, Matcher<string>, and
// utilities for defining matchers.
// utilities for defining matchers.
#include
<
gmock/gmock-matchers.h
>
#include
"
gmock/gmock-matchers.h
"
#include
<
gmock/gmock-generated-matchers.h
>
#include
"
gmock/gmock-generated-matchers.h
"
#include <string.h>
#include <string.h>
#include <sstream>
#include <sstream>
...
...
src/gmock-spec-builders.cc
View file @
53e08c44
...
@@ -34,15 +34,15 @@
...
@@ -34,15 +34,15 @@
// This file implements the spec builder syntax (ON_CALL and
// This file implements the spec builder syntax (ON_CALL and
// EXPECT_CALL).
// EXPECT_CALL).
#include
<
gmock/gmock-spec-builders.h
>
#include
"
gmock/gmock-spec-builders.h
"
#include <stdlib.h>
#include <stdlib.h>
#include <iostream> // NOLINT
#include <iostream> // NOLINT
#include <map>
#include <map>
#include <set>
#include <set>
#include <string>
#include <string>
#include
<
gmock/gmock.h
>
#include
"
gmock/gmock.h
"
#include
<
gtest/gtest.h
>
#include
"
gtest/gtest.h
"
#if GTEST_OS_CYGWIN || GTEST_OS_LINUX || GTEST_OS_MAC
#if GTEST_OS_CYGWIN || GTEST_OS_LINUX || GTEST_OS_MAC
#include <unistd.h> // NOLINT
#include <unistd.h> // NOLINT
...
...
src/gmock.cc
View file @
53e08c44
...
@@ -29,8 +29,8 @@
...
@@ -29,8 +29,8 @@
//
//
// Author: wan@google.com (Zhanyong Wan)
// Author: wan@google.com (Zhanyong Wan)
#include
<
gmock/gmock.h
>
#include
"
gmock/gmock.h
"
#include
<
gmock/internal/gmock-port.h
>
#include
"
gmock/internal/gmock-port.h
"
namespace
testing
{
namespace
testing
{
...
...
src/gmock_main.cc
View file @
53e08c44
...
@@ -30,8 +30,8 @@
...
@@ -30,8 +30,8 @@
// Author: wan@google.com (Zhanyong Wan)
// Author: wan@google.com (Zhanyong Wan)
#include <iostream>
#include <iostream>
#include
<
gmock/gmock.h
>
#include
"
gmock/gmock.h
"
#include
<
gtest/gtest.h
>
#include
"
gtest/gtest.h
"
// MS C++ compiler/linker has a bug on Windows (not on Windows CE), which
// MS C++ compiler/linker has a bug on Windows (not on Windows CE), which
// causes a link error when _tmain is defined in a static library and UNICODE
// causes a link error when _tmain is defined in a static library and UNICODE
...
...
test/gmock-actions_test.cc
View file @
53e08c44
...
@@ -33,14 +33,14 @@
...
@@ -33,14 +33,14 @@
//
//
// This file tests the built-in actions.
// This file tests the built-in actions.
#include
<
gmock/gmock-actions.h
>
#include
"
gmock/gmock-actions.h
"
#include <algorithm>
#include <algorithm>
#include <iterator>
#include <iterator>
#include <string>
#include <string>
#include
<
gmock/gmock.h
>
#include
"
gmock/gmock.h
"
#include
<
gmock/internal/gmock-port.h
>
#include
"
gmock/internal/gmock-port.h
"
#include
<
gtest/gtest.h
>
#include
"
gtest/gtest.h
"
#include
<
gtest/gtest-spi.h
>
#include
"
gtest/gtest-spi.h
"
namespace
{
namespace
{
...
...
test/gmock-cardinalities_test.cc
View file @
53e08c44
...
@@ -33,9 +33,9 @@
...
@@ -33,9 +33,9 @@
//
//
// This file tests the built-in cardinalities.
// This file tests the built-in cardinalities.
#include
<
gmock/gmock.h
>
#include
"
gmock/gmock.h
"
#include
<
gtest/gtest.h
>
#include
"
gtest/gtest.h
"
#include
<
gtest/gtest-spi.h
>
#include
"
gtest/gtest-spi.h
"
namespace
{
namespace
{
...
...
test/gmock-generated-actions_test.cc
View file @
53e08c44
...
@@ -33,13 +33,13 @@
...
@@ -33,13 +33,13 @@
//
//
// This file tests the built-in actions generated by a script.
// This file tests the built-in actions generated by a script.
#include
<
gmock/gmock-generated-actions.h
>
#include
"
gmock/gmock-generated-actions.h
"
#include <functional>
#include <functional>
#include <sstream>
#include <sstream>
#include <string>
#include <string>
#include
<
gmock/gmock.h
>
#include
"
gmock/gmock.h
"
#include
<
gtest/gtest.h
>
#include
"
gtest/gtest.h
"
namespace
testing
{
namespace
testing
{
namespace
gmock_generated_actions_test
{
namespace
gmock_generated_actions_test
{
...
...
test/gmock-generated-function-mockers_test.cc
View file @
53e08c44
...
@@ -33,12 +33,12 @@
...
@@ -33,12 +33,12 @@
//
//
// This file tests the function mocker classes.
// This file tests the function mocker classes.
#include
<
gmock/gmock-generated-function-mockers.h
>
#include
"
gmock/gmock-generated-function-mockers.h
"
#include <map>
#include <map>
#include <string>
#include <string>
#include
<
gmock/gmock.h
>
#include
"
gmock/gmock.h
"
#include
<
gtest/gtest.h
>
#include
"
gtest/gtest.h
"
#if GTEST_OS_WINDOWS
#if GTEST_OS_WINDOWS
// MSDN says the header file to be included for STDMETHOD is BaseTyps.h but
// MSDN says the header file to be included for STDMETHOD is BaseTyps.h but
...
...
test/gmock-generated-internal-utils_test.cc
View file @
53e08c44
...
@@ -33,9 +33,9 @@
...
@@ -33,9 +33,9 @@
//
//
// This file tests the internal utilities.
// This file tests the internal utilities.
#include
<
gmock/internal/gmock-generated-internal-utils.h
>
#include
"
gmock/internal/gmock-generated-internal-utils.h
"
#include
<
gmock/internal/gmock-internal-utils.h
>
#include
"
gmock/internal/gmock-internal-utils.h
"
#include
<
gtest/gtest.h
>
#include
"
gtest/gtest.h
"
namespace
{
namespace
{
...
...
test/gmock-generated-matchers_test.cc
View file @
53e08c44
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
//
//
// This file tests the built-in matchers generated by a script.
// This file tests the built-in matchers generated by a script.
#include
<
gmock/gmock-generated-matchers.h
>
#include
"
gmock/gmock-generated-matchers.h
"
#include <list>
#include <list>
#include <map>
#include <map>
...
@@ -41,9 +41,9 @@
...
@@ -41,9 +41,9 @@
#include <utility>
#include <utility>
#include <vector>
#include <vector>
#include
<
gmock/gmock.h
>
#include
"
gmock/gmock.h
"
#include
<
gtest/gtest.h
>
#include
"
gtest/gtest.h
"
#include
<
gtest/gtest-spi.h
>
#include
"
gtest/gtest-spi.h
"
namespace
{
namespace
{
...
...
test/gmock-internal-utils_test.cc
View file @
53e08c44
...
@@ -33,16 +33,16 @@
...
@@ -33,16 +33,16 @@
//
//
// This file tests the internal utilities.
// This file tests the internal utilities.
#include
<
gmock/internal/gmock-internal-utils.h
>
#include
"
gmock/internal/gmock-internal-utils.h
"
#include <stdlib.h>
#include <stdlib.h>
#include <map>
#include <map>
#include <string>
#include <string>
#include <sstream>
#include <sstream>
#include <vector>
#include <vector>
#include
<
gmock/gmock.h
>
#include
"
gmock/gmock.h
"
#include
<
gmock/internal/gmock-port.h
>
#include
"
gmock/internal/gmock-port.h
"
#include
<
gtest/gtest.h
>
#include
"
gtest/gtest.h
"
#include
<
gtest/gtest-spi.h
>
#include
"
gtest/gtest-spi.h
"
#if GTEST_OS_CYGWIN
#if GTEST_OS_CYGWIN
#include <sys/types.h> // For ssize_t. NOLINT
#include <sys/types.h> // For ssize_t. NOLINT
...
...
test/gmock-matchers_test.cc
View file @
53e08c44
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
//
//
// This file tests some commonly used argument matchers.
// This file tests some commonly used argument matchers.
#include
<
gmock/gmock-matchers.h
>
#include
"
gmock/gmock-matchers.h
"
#include <string.h>
#include <string.h>
#include <functional>
#include <functional>
...
@@ -45,9 +45,9 @@
...
@@ -45,9 +45,9 @@
#include <string>
#include <string>
#include <utility>
#include <utility>
#include <vector>
#include <vector>
#include
<
gmock/gmock.h
>
#include
"
gmock/gmock.h
"
#include
<
gtest/gtest.h
>
#include
"
gtest/gtest.h
"
#include
<
gtest/gtest-spi.h
>
#include
"
gtest/gtest-spi.h
"
namespace
testing
{
namespace
testing
{
...
...
test/gmock-more-actions_test.cc
View file @
53e08c44
...
@@ -33,13 +33,13 @@
...
@@ -33,13 +33,13 @@
//
//
// This file tests the built-in actions in gmock-more-actions.h.
// This file tests the built-in actions in gmock-more-actions.h.
#include
<
gmock/gmock-more-actions.h
>
#include
"
gmock/gmock-more-actions.h
"
#include <functional>
#include <functional>
#include <sstream>
#include <sstream>
#include <string>
#include <string>
#include
<
gmock/gmock.h
>
#include
"
gmock/gmock.h
"
#include
<
gtest/gtest.h
>
#include
"
gtest/gtest.h
"
namespace
testing
{
namespace
testing
{
namespace
gmock_more_actions_test
{
namespace
gmock_more_actions_test
{
...
...
test/gmock-nice-strict_test.cc
View file @
53e08c44
...
@@ -29,12 +29,12 @@
...
@@ -29,12 +29,12 @@
//
//
// Author: wan@google.com (Zhanyong Wan)
// Author: wan@google.com (Zhanyong Wan)
#include
<
gmock/gmock-generated-nice-strict.h
>
#include
"
gmock/gmock-generated-nice-strict.h
"
#include <string>
#include <string>
#include
<
gmock/gmock.h
>
#include
"
gmock/gmock.h
"
#include
<
gtest/gtest.h
>
#include
"
gtest/gtest.h
"
#include
<
gtest/gtest-spi.h
>
#include
"
gtest/gtest-spi.h
"
// This must not be defined inside the ::testing namespace, or it will
// This must not be defined inside the ::testing namespace, or it will
// clash with ::testing::Mock.
// clash with ::testing::Mock.
...
...
test/gmock-port_test.cc
View file @
53e08c44
...
@@ -33,8 +33,8 @@
...
@@ -33,8 +33,8 @@
//
//
// This file tests the internal cross-platform support utilities.
// This file tests the internal cross-platform support utilities.
#include
<
gmock/internal/gmock-port.h
>
#include
"
gmock/internal/gmock-port.h
"
#include
<
gtest/gtest.h
>
#include
"
gtest/gtest.h
"
// NOTE: if this file is left without tests for some reason, put a dummy
// NOTE: if this file is left without tests for some reason, put a dummy
// test here to make references to symbols in the gtest library and avoid
// test here to make references to symbols in the gtest library and avoid
...
...
test/gmock-spec-builders_test.cc
View file @
53e08c44
...
@@ -33,16 +33,16 @@
...
@@ -33,16 +33,16 @@
//
//
// This file tests the spec builder syntax.
// This file tests the spec builder syntax.
#include
<
gmock/gmock-spec-builders.h
>
#include
"
gmock/gmock-spec-builders.h
"
#include <ostream> // NOLINT
#include <ostream> // NOLINT
#include <sstream>
#include <sstream>
#include <string>
#include <string>
#include
<
gmock/gmock.h
>
#include
"
gmock/gmock.h
"
#include
<
gmock/internal/gmock-port.h
>
#include
"
gmock/internal/gmock-port.h
"
#include
<
gtest/gtest.h
>
#include
"
gtest/gtest.h
"
#include
<
gtest/gtest-spi.h
>
#include
"
gtest/gtest-spi.h
"
namespace
testing
{
namespace
testing
{
namespace
internal
{
namespace
internal
{
...
...
test/gmock_leak_test_.cc
View file @
53e08c44
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
// This program is for verifying that a leaked mock object can be
// This program is for verifying that a leaked mock object can be
// caught by Google Mock's leak detector.
// caught by Google Mock's leak detector.
#include
<
gmock/gmock.h
>
#include
"
gmock/gmock.h
"
namespace
{
namespace
{
...
...
test/gmock_link_test.h
View file @
53e08c44
...
@@ -114,14 +114,14 @@
...
@@ -114,14 +114,14 @@
#ifndef GMOCK_TEST_GMOCK_LINK_TEST_H_
#ifndef GMOCK_TEST_GMOCK_LINK_TEST_H_
#define GMOCK_TEST_GMOCK_LINK_TEST_H_
#define GMOCK_TEST_GMOCK_LINK_TEST_H_
#include
<
gmock/gmock.h
>
#include
"
gmock/gmock.h
"
#if !GTEST_OS_WINDOWS_MOBILE
#if !GTEST_OS_WINDOWS_MOBILE
#include <errno.h>
#include <errno.h>
#endif
#endif
#include
<
gmock/internal/gmock-port.h
>
#include
"
gmock/internal/gmock-port.h
"
#include
<
gtest/gtest.h
>
#include
"
gtest/gtest.h
"
#include <iostream>
#include <iostream>
#include <vector>
#include <vector>
...
...
Prev
1
2
3
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