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
2d136e5e
Unverified
Commit
2d136e5e
authored
Jun 04, 2018
by
Gennadiy Civil
Committed by
GitHub
Jun 04, 2018
Browse files
Merge branch 'master' into fuchsia-launchpad-removal
parents
7b08984d
7e7f9d5f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
googletest/include/gtest/gtest-printers.h
googletest/include/gtest/gtest-printers.h
+4
-0
googletest/test/gtest-printers_test.cc
googletest/test/gtest-printers_test.cc
+6
-0
No files found.
googletest/include/gtest/gtest-printers.h
View file @
2d136e5e
...
@@ -636,6 +636,10 @@ inline void PrintTo(absl::string_view sp, ::std::ostream* os) {
...
@@ -636,6 +636,10 @@ inline void PrintTo(absl::string_view sp, ::std::ostream* os) {
}
}
#endif // GTEST_HAS_ABSL
#endif // GTEST_HAS_ABSL
#if GTEST_LANG_CXX11
inline
void
PrintTo
(
std
::
nullptr_t
,
::
std
::
ostream
*
os
)
{
*
os
<<
"(nullptr)"
;
}
#endif // GTEST_LANG_CXX11
#if GTEST_HAS_TR1_TUPLE || GTEST_HAS_STD_TUPLE_
#if GTEST_HAS_TR1_TUPLE || GTEST_HAS_STD_TUPLE_
// Helper function for printing a tuple. T must be instantiated with
// Helper function for printing a tuple. T must be instantiated with
// a tuple type.
// a tuple type.
...
...
googletest/test/gtest-printers_test.cc
View file @
2d136e5e
...
@@ -1115,6 +1115,12 @@ TEST(PrintStdTupleTest, NestedTuple) {
...
@@ -1115,6 +1115,12 @@ TEST(PrintStdTupleTest, NestedTuple) {
#endif // GTEST_LANG_CXX11
#endif // GTEST_LANG_CXX11
#if GTEST_LANG_CXX11
TEST
(
PrintNullptrT
,
Basic
)
{
EXPECT_EQ
(
"(nullptr)"
,
Print
(
nullptr
));
}
#endif // GTEST_LANG_CXX11
// Tests printing user-defined unprintable types.
// Tests printing user-defined unprintable types.
// Unprintable types in the global namespace.
// Unprintable types in the global namespace.
...
...
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