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

Side by Side Diff: tests/standalone/io/web_socket_protocol_processor_test.dart

Issue 10871071: - Change "static final" to "static const" in the tests/ directory. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #import("dart:math"); 5 #import("dart:math");
6 6
7 #source("../../../runtime/bin/websocket.dart"); 7 #source("../../../runtime/bin/websocket.dart");
8 #source("../../../runtime/bin/websocket_impl.dart"); 8 #source("../../../runtime/bin/websocket_impl.dart");
9 9
10 class WebSocketFrame { 10 class WebSocketFrame {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 _WebSocketProtocolProcessor processor; 48 _WebSocketProtocolProcessor processor;
49 List<int> expectedMessage; 49 List<int> expectedMessage;
50 50
51 List<int> data; 51 List<int> data;
52 int messageCount = 0; 52 int messageCount = 0;
53 int closeCount = 0; 53 int closeCount = 0;
54 } 54 }
55 55
56 56
57 // Web socket constants. 57 // Web socket constants.
58 final int FRAME_OPCODE_TEXT = 1; 58 const int FRAME_OPCODE_TEXT = 1;
59 final int FRAME_OPCODE_BINARY = 2; 59 const int FRAME_OPCODE_BINARY = 2;
60 60
61 61
62 // Function for building a web socket frame. 62 // Function for building a web socket frame.
63 List<int> createFrame(bool fin, 63 List<int> createFrame(bool fin,
64 int opcode, 64 int opcode,
65 int maskingKey, 65 int maskingKey,
66 List<int> data, 66 List<int> data,
67 int offset, 67 int offset,
68 int count) { 68 int count) {
69 int frameSize = 2; 69 int frameSize = 2;
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 runTest(65534, 65537, 1); 213 runTest(65534, 65537, 1);
214 print("Fragment messages test, messages $messageCount, frames $frameCount"); 214 print("Fragment messages test, messages $messageCount, frames $frameCount");
215 Expect.equals(messageCount, mc.messageCount); 215 Expect.equals(messageCount, mc.messageCount);
216 Expect.equals(0, mc.closeCount); 216 Expect.equals(0, mc.closeCount);
217 } 217 }
218 218
219 void main() { 219 void main() {
220 testFullMessages(); 220 testFullMessages();
221 testFragmentedMessages(); 221 testFragmentedMessages();
222 } 222 }
OLDNEW
« no previous file with comments | « tests/standalone/io/testing_server.dart ('k') | tests/standalone/package/packages/package2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698