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

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

Issue 105633005: Fix analyzer errors in UDP test and update comment in status file (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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 | « no previous file | tests/standalone/standalone.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/raw_datagram_socket_test.dart
diff --git a/tests/standalone/io/raw_datagram_socket_test.dart b/tests/standalone/io/raw_datagram_socket_test.dart
index 2f67b66c723db8fb158ffee538350da7aade3ff4..6f3ebef0806a31895e4f4ab3e94fb664de0a8dfe 100644
--- a/tests/standalone/io/raw_datagram_socket_test.dart
+++ b/tests/standalone/io/raw_datagram_socket_test.dart
@@ -202,20 +202,20 @@ testSendReceive(InternetAddress bindAddress) {
receiver.joinMulticast(bindAddress);
}
- UInt8List createDataPackage(int seq) {
+ Uint8List createDataPackage(int seq) {
var data = new Uint8List(1000);
(new ByteData.view(data.buffer, 0, 4)).setUint32(0, seq);
return data;
}
- UInt8List createAckPackage(int seq) {
+ Uint8List createAckPackage(int seq) {
var data = new Uint8List(4);
new ByteData.view(data.buffer, 0, 4).setUint32(0, seq);
return data;
}
int packageSeq(Datagram datagram) =>
- new ByteData.view(datagram.data.buffer).getUint32(0);
+ new ByteData.view((datagram.data as Uint8List).buffer).getUint32(0);
void sendData(int seq) {
// Send a datagram acknowledging the received sequence.
« no previous file with comments | « no previous file | tests/standalone/standalone.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698