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

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

Issue 59673006: Use typed-data views for incoming http data. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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_parser.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_parser_test.dart
diff --git a/tests/standalone/io/http_parser_test.dart b/tests/standalone/io/http_parser_test.dart
index 6757633f6abb4cebadb9bdb83e8e9deea0db79cb..379614b5a1d83dbef2dc640a47a0f646a8888063 100644
--- a/tests/standalone/io/http_parser_test.dart
+++ b/tests/standalone/io/http_parser_test.dart
@@ -124,7 +124,7 @@ class HttpParserTest {
// Test parsing the request three times delivering the data in
// different chunks.
- List<int> requestData = request.codeUnits;
+ List<int> requestData = new Uint8List.fromList(request.codeUnits);
testWrite(requestData);
testWrite(requestData, 10);
testWrite(requestData, 1);
@@ -167,7 +167,7 @@ class HttpParserTest {
// Test parsing the request three times delivering the data in
// different chunks.
- List<int> requestData = request.codeUnits;
+ List<int> requestData = new Uint8List.fromList(request.codeUnits);
testWrite(requestData);
testWrite(requestData, 10);
testWrite(requestData, 1);
@@ -273,7 +273,7 @@ class HttpParserTest {
// Test parsing the request three times delivering the data in
// different chunks.
- List<int> responseData = response.codeUnits;
+ List<int> responseData = new Uint8List.fromList(response.codeUnits);
testWrite(responseData);
testWrite(responseData, 10);
testWrite(responseData, 1);
@@ -318,7 +318,7 @@ class HttpParserTest {
// Test parsing the request three times delivering the data in
// different chunks.
- List<int> responseData = response.codeUnits;
+ List<int> responseData = new Uint8List.fromList(response.codeUnits);
testWrite(responseData);
testWrite(responseData, 10);
testWrite(responseData, 1);
« no previous file with comments | « sdk/lib/io/http_parser.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698