Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Unified Diff: net/base/net_util_unittest.cc

Issue 1230313005: split port_util.h off of net_util.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove garbage that got added Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/net_util.cc ('k') | net/base/port_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/net_util_unittest.cc
diff --git a/net/base/net_util_unittest.cc b/net/base/net_util_unittest.cc
index 802b6176ac4e67fc1fa5b2c5018ed578c2ca9fdc..fdb49a3c020df7acd3761133c1135d0690a8bc6a 100644
--- a/net/base/net_util_unittest.cc
+++ b/net/base/net_util_unittest.cc
@@ -440,21 +440,6 @@ TEST(NetUtilTest, SimplifyUrlForRequest) {
}
}
-TEST(NetUtilTest, SetExplicitlyAllowedPortsTest) {
- std::string invalid[] = { "1,2,a", "'1','2'", "1, 2, 3", "1 0,11,12" };
- std::string valid[] = { "", "1", "1,2", "1,2,3", "10,11,12,13" };
-
- for (size_t i = 0; i < arraysize(invalid); ++i) {
- SetExplicitlyAllowedPorts(invalid[i]);
- EXPECT_EQ(0, static_cast<int>(GetCountOfExplicitlyAllowedPorts()));
- }
-
- for (size_t i = 0; i < arraysize(valid); ++i) {
- SetExplicitlyAllowedPorts(valid[i]);
- EXPECT_EQ(i, GetCountOfExplicitlyAllowedPorts());
- }
-}
-
TEST(NetUtilTest, GetHostOrSpecFromURL) {
EXPECT_EQ("example.com",
GetHostOrSpecFromURL(GURL("http://example.com/test")));
« no previous file with comments | « net/base/net_util.cc ('k') | net/base/port_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698