diff options
Diffstat (limited to 'net/base/net_util_unittest.cc')
-rw-r--r-- | net/base/net_util_unittest.cc | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/net/base/net_util_unittest.cc b/net/base/net_util_unittest.cc index 884f2fe..22fb7d4 100644 --- a/net/base/net_util_unittest.cc +++ b/net/base/net_util_unittest.cc @@ -698,34 +698,6 @@ TEST(NetUtilTest, GetSuggestedFilename) { } } -TEST(NetUtilTest, GetImplicitPort) { - { - GURL url("http://foo.bar/baz"); - EXPECT_STREQ("80", net::GetImplicitPort(url).c_str()); - } - { - GURL url("http://foo.bar:443/baz"); - EXPECT_STREQ("443", net::GetImplicitPort(url).c_str()); - } - { - GURL url("https://foo.bar/baz"); - EXPECT_STREQ("443", net::GetImplicitPort(url).c_str()); - } - { - GURL url("https://foo.bar:80/baz"); - EXPECT_STREQ("80", net::GetImplicitPort(url).c_str()); - } - { - // Invalid input. - GURL url("file://foobar/baz"); - EXPECT_STREQ("", net::GetImplicitPort(url).c_str()); - } - { - GURL url("ftp://google.com"); - EXPECT_STREQ("21", net::GetImplicitPort(url).c_str()); - } -} - // This is currently a windows specific function. #if defined(OS_WIN) namespace { |