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

Unified Diff: net/url_request/url_request_unittest.cc

Issue 194057: Check in patch for pierre.lafayette, http://codereview.chromium.org/178059/sh... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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/url_request/url_request_new_ftp_job.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_unittest.cc
===================================================================
--- net/url_request/url_request_unittest.cc (revision 25619)
+++ net/url_request/url_request_unittest.cc (working copy)
@@ -312,22 +312,6 @@
.original_url.spec().size());
}
-TEST_F(URLRequestTestHTTP, SetExplicitlyAllowedPortsTest) {
- std::wstring invalid[] = { L"1,2,a", L"'1','2'", L"1, 2, 3", L"1 0,11,12" };
- std::wstring valid[] = { L"", L"1", L"1,2", L"1,2,3", L"10,11,12,13" };
-
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(invalid); ++i) {
- URLRequestHttpJob::SetExplicitlyAllowedPorts(invalid[i]);
- EXPECT_EQ(0, static_cast<int>(
- URLRequestHttpJob::explicitly_allowed_ports().size()));
- }
-
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(valid); ++i) {
- URLRequestHttpJob::SetExplicitlyAllowedPorts(valid[i]);
- EXPECT_EQ(i, URLRequestHttpJob::explicitly_allowed_ports().size());
- }
-}
-
TEST_F(URLRequestTest, QuitTest) {
// Don't use shared server here because we order it to quit.
// It would impact other tests.
« no previous file with comments | « net/url_request/url_request_new_ftp_job.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698