Commit 6404d45a authored by drgler's avatar drgler
Browse files

Merge branch 'master' of github.com:Dani-Hub/googletest

parents 07bba78a 2606c7a6
...@@ -202,7 +202,7 @@ class PathLike { ...@@ -202,7 +202,7 @@ class PathLike {
iterator end() const { return iterator(); } iterator end() const { return iterator(); }
friend friend
::std::ostream& operator<<(::std::ostream& os, const PathLike& p) ::std::ostream& operator<<(::std::ostream& os, const PathLike&)
{ {
return os << "Streamable-PathLike"; return os << "Streamable-PathLike";
} }
...@@ -1187,6 +1187,8 @@ TEST(PrintStreamableTypeTest, TemplateTypeInUserNamespace) { ...@@ -1187,6 +1187,8 @@ TEST(PrintStreamableTypeTest, TemplateTypeInUserNamespace) {
TEST(PrintStreamableTypeTest, PathLikeInUserNamespace) { TEST(PrintStreamableTypeTest, PathLikeInUserNamespace) {
::foo::PathLike x; ::foo::PathLike x;
EXPECT_EQ("Streamable-PathLike", Print(x)); EXPECT_EQ("Streamable-PathLike", Print(x));
const ::foo::PathLike cx;
EXPECT_EQ("Streamable-PathLike", Print(cx));
} }
// Tests printing user-defined types that have a PrintTo() function. // Tests printing user-defined types that have a PrintTo() function.
......
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