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

Unified Diff: tests/standalone/io/http_headers_test.dart

Issue 196723020: Add validation to construction of Cookie objects. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 | « sdk/lib/io/http_headers.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/http_headers_test.dart
diff --git a/tests/standalone/io/http_headers_test.dart b/tests/standalone/io/http_headers_test.dart
index 7417d56382cda6c26a818271f2718d82fa4a391b..6d2b6b96db03954add4061160987da15bb27c5c5 100644
--- a/tests/standalone/io/http_headers_test.dart
+++ b/tests/standalone/io/http_headers_test.dart
@@ -436,6 +436,9 @@ void testInvalidCookie() {
Expect.throws(() => new _Cookie.fromSetCookieValue("xxx"));
Expect.throws(() => new _Cookie.fromSetCookieValue(
"xxx=yyy; expires=12 jan 2013"));
+ Expect.throws(() => new _Cookie.fromSetCookieValue("x x = y y"));
+ Expect.throws(() => new _Cookie("[4", "y"));
+ Expect.throws(() => new _Cookie("4", "y\""));
_HttpHeaders headers = new _HttpHeaders("1.1");
headers.set('Cookie',
« no previous file with comments | « sdk/lib/io/http_headers.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698