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
8506852a
Unverified
Commit
8506852a
authored
Aug 07, 2018
by
Gennadiy Civil
Committed by
GitHub
Aug 07, 2018
Browse files
Merge pull request #1705 from gennadiycivil/master
Formatting changes,small cleanup, no functionality changes
parents
dd06b16e
b345bf90
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
20 additions
and
29 deletions
+20
-29
googlemock/src/gmock_main.cc
googlemock/src/gmock_main.cc
+2
-1
googletest/include/gtest/internal/gtest-port.h
googletest/include/gtest/internal/gtest-port.h
+2
-1
googletest/test/googletest-catch-exceptions-test_.cc
googletest/test/googletest-catch-exceptions-test_.cc
+2
-1
googletest/test/googletest-param-test-invalid-name1-test.py
googletest/test/googletest-param-test-invalid-name1-test.py
+1
-8
googletest/test/googletest-param-test-invalid-name2-test.py
googletest/test/googletest-param-test-invalid-name2-test.py
+1
-8
googletest/test/googletest-param-test2-test.cc
googletest/test/googletest-param-test2-test.cc
+6
-5
googletest/test/googletest-test2_test.cc
googletest/test/googletest-test2_test.cc
+6
-5
No files found.
googlemock/src/gmock_main.cc
View file @
8506852a
...
@@ -37,7 +37,8 @@
...
@@ -37,7 +37,8 @@
// 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
// is enabled. For this reason instead of _tmain, main function is used on
// is enabled. For this reason instead of _tmain, main function is used on
// Windows. See the following link to track the current status of this bug:
// Windows. See the following link to track the current status of this bug:
// https://web.archive.org/web/20170912203238/connect.microsoft.com/VisualStudio/feedback/details/394464/wmain-link-error-in-the-static-library // NOLINT
// https://web.archive.org/web/20170912203238/connect.microsoft.com/VisualStudio/feedback/details/394464/wmain-link-error-in-the-static-library
// // NOLINT
#if GTEST_OS_WINDOWS_MOBILE
#if GTEST_OS_WINDOWS_MOBILE
# include <tchar.h> // NOLINT
# include <tchar.h> // NOLINT
...
...
googletest/include/gtest/internal/gtest-port.h
View file @
8506852a
...
@@ -381,7 +381,8 @@
...
@@ -381,7 +381,8 @@
#if GTEST_LANG_CXX11
#if GTEST_LANG_CXX11
# define GTEST_HAS_STD_TUPLE_ 1
# define GTEST_HAS_STD_TUPLE_ 1
# if defined(__clang__)
# if defined(__clang__)
// Inspired by https://clang.llvm.org/docs/LanguageExtensions.html#include-file-checking-macros
// Inspired by
// https://clang.llvm.org/docs/LanguageExtensions.html#include-file-checking-macros
# if defined(__has_include) && !__has_include(<tuple>)
# if defined(__has_include) && !__has_include(<tuple>)
# undef GTEST_HAS_STD_TUPLE_
# undef GTEST_HAS_STD_TUPLE_
# endif
# endif
...
...
googletest/test/googletest-catch-exceptions-test_.cc
View file @
8506852a
...
@@ -30,7 +30,8 @@
...
@@ -30,7 +30,8 @@
// Author: vladl@google.com (Vlad Losev)
// Author: vladl@google.com (Vlad Losev)
//
//
// Tests for Google Test itself. Tests in this file throw C++ or SEH
// Tests for Google Test itself. Tests in this file throw C++ or SEH
// exceptions, and the output is verified by googletest-catch-exceptions-test.py.
// exceptions, and the output is verified by
// googletest-catch-exceptions-test.py.
#include "gtest/gtest.h"
#include "gtest/gtest.h"
...
...
googletest/test/googletest-param-test-invalid-name1-test.py
View file @
8506852a
...
@@ -32,14 +32,7 @@
...
@@ -32,14 +32,7 @@
__author__
=
'jmadill@google.com (Jamie Madill)'
__author__
=
'jmadill@google.com (Jamie Madill)'
import
os
import
gtest_test_utils
IS_LINUX
=
os
.
name
==
'posix'
and
os
.
uname
()[
0
]
==
'Linux'
if
IS_LINUX
:
import
gtest_test_utils
else
:
import
gtest_test_utils
binary_name
=
'googletest-param-test-invalid-name1-test_'
binary_name
=
'googletest-param-test-invalid-name1-test_'
COMMAND
=
gtest_test_utils
.
GetTestExecutablePath
(
binary_name
)
COMMAND
=
gtest_test_utils
.
GetTestExecutablePath
(
binary_name
)
...
...
googletest/test/googletest-param-test-invalid-name2-test.py
View file @
8506852a
...
@@ -32,14 +32,7 @@
...
@@ -32,14 +32,7 @@
__author__
=
'jmadill@google.com (Jamie Madill)'
__author__
=
'jmadill@google.com (Jamie Madill)'
import
os
import
gtest_test_utils
IS_LINUX
=
os
.
name
==
'posix'
and
os
.
uname
()[
0
]
==
'Linux'
if
IS_LINUX
:
import
gtest_test_utils
else
:
import
gtest_test_utils
binary_name
=
'googletest-param-test-invalid-name2-test_'
binary_name
=
'googletest-param-test-invalid-name2-test_'
COMMAND
=
gtest_test_utils
.
GetTestExecutablePath
(
binary_name
)
COMMAND
=
gtest_test_utils
.
GetTestExecutablePath
(
binary_name
)
...
...
googletest/test/googletest-param-test2-test.cc
View file @
8506852a
...
@@ -44,17 +44,18 @@ using ::testing::internal::ParamGenerator;
...
@@ -44,17 +44,18 @@ using ::testing::internal::ParamGenerator;
ParamGenerator
<
int
>
extern_gen
=
Values
(
33
);
ParamGenerator
<
int
>
extern_gen
=
Values
(
33
);
// Tests that a parameterized test case can be defined in one translation unit
// Tests that a parameterized test case can be defined in one translation unit
// and instantiated in another. The test is defined in
googletest-param-test-test.cc
// and instantiated in another. The test is defined in
// and ExternalInstantiationTest fixture class is
defined in
//
googletest-param-test-test.cc
and ExternalInstantiationTest fixture class is
// gtest-param-test_test.h.
//
defined in
gtest-param-test_test.h.
INSTANTIATE_TEST_CASE_P
(
MultiplesOf33
,
INSTANTIATE_TEST_CASE_P
(
MultiplesOf33
,
ExternalInstantiationTest
,
ExternalInstantiationTest
,
Values
(
33
,
66
));
Values
(
33
,
66
));
// Tests that a parameterized test case can be instantiated
// Tests that a parameterized test case can be instantiated
// in multiple translation units. Another instantiation is defined
// in multiple translation units. Another instantiation is defined
// in googletest-param-test-test.cc and InstantiationInMultipleTranslaionUnitsTest
// in googletest-param-test-test.cc and
// fixture is defined in gtest-param-test_test.h
// InstantiationInMultipleTranslaionUnitsTest fixture is defined in
// gtest-param-test_test.h
INSTANTIATE_TEST_CASE_P
(
Sequence2
,
INSTANTIATE_TEST_CASE_P
(
Sequence2
,
InstantiationInMultipleTranslaionUnitsTest
,
InstantiationInMultipleTranslaionUnitsTest
,
Values
(
42
*
3
,
42
*
4
,
42
*
5
));
Values
(
42
*
3
,
42
*
4
,
42
*
5
));
...
...
googletest/test/googletest-test2_test.cc
View file @
8506852a
...
@@ -44,17 +44,18 @@ using ::testing::internal::ParamGenerator;
...
@@ -44,17 +44,18 @@ using ::testing::internal::ParamGenerator;
ParamGenerator
<
int
>
extern_gen_2
=
Values
(
33
);
ParamGenerator
<
int
>
extern_gen_2
=
Values
(
33
);
// Tests that a parameterized test case can be defined in one translation unit
// Tests that a parameterized test case can be defined in one translation unit
// and instantiated in another. The test is defined in
googletest-param-test-test.cc
// and instantiated in another. The test is defined in
// and ExternalInstantiationTest fixture class is
defined in
//
googletest-param-test-test.cc
and ExternalInstantiationTest fixture class is
// gtest-param-test_test.h.
//
defined in
gtest-param-test_test.h.
INSTANTIATE_TEST_CASE_P
(
MultiplesOf33
,
INSTANTIATE_TEST_CASE_P
(
MultiplesOf33
,
ExternalInstantiationTest
,
ExternalInstantiationTest
,
Values
(
33
,
66
));
Values
(
33
,
66
));
// Tests that a parameterized test case can be instantiated
// Tests that a parameterized test case can be instantiated
// in multiple translation units. Another instantiation is defined
// in multiple translation units. Another instantiation is defined
// in googletest-param-test-test.cc and InstantiationInMultipleTranslaionUnitsTest
// in googletest-param-test-test.cc and
// fixture is defined in gtest-param-test_test.h
// InstantiationInMultipleTranslaionUnitsTest fixture is defined in
// gtest-param-test_test.h
INSTANTIATE_TEST_CASE_P
(
Sequence2
,
INSTANTIATE_TEST_CASE_P
(
Sequence2
,
InstantiationInMultipleTranslaionUnitsTest
,
InstantiationInMultipleTranslaionUnitsTest
,
Values
(
42
*
3
,
42
*
4
,
42
*
5
));
Values
(
42
*
3
,
42
*
4
,
42
*
5
));
...
...
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