| Index: net/base/net_util_unittest.cc
|
| ===================================================================
|
| --- net/base/net_util_unittest.cc (revision 10746)
|
| +++ net/base/net_util_unittest.cc (working copy)
|
| @@ -869,3 +869,11 @@
|
| EXPECT_EQ(std::string(tests[i].result), result);
|
| }
|
| }
|
| +
|
| +TEST(NetUtilTest, GetMyHostName) {
|
| + // We can't check the result of GetMyHostName() directly, since the result
|
| + // will differ across machines. Our goal here is to simply exercise the
|
| + // code path, and check that things "look about right".
|
| + std::string my_hostname = net::GetMyHostName();
|
| + EXPECT_FALSE(my_hostname.empty());
|
| +}
|
|
|