mirror of
https://github.com/google/googletest.git
synced 2024-12-29 03:33:40 +08:00
Merge branch 'master' of github.com:Dani-Hub/googletest
This commit is contained in:
commit
6404d45a92
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user