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

This commit is contained in:
drgler 2017-08-10 21:18:32 +02:00
commit 6404d45a92

View File

@ -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) {
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.