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

Side by Side Diff: runtime/vm/message_test.cc

Issue 9169063: Add support for native ports in the vm. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 10 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
« no previous file with comments | « runtime/vm/message_queue_test.cc ('k') | runtime/vm/native_message_handler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "platform/assert.h" 5 #include "platform/assert.h"
6 #include "vm/message_queue.h" 6 #include "vm/message.h"
7 #include "vm/unit_test.h" 7 #include "vm/unit_test.h"
8 8
9 namespace dart { 9 namespace dart {
10 10
11 11
12 // Provide access to private members of MessageQueue for testing. 12 // Provide access to private members of MessageQueue for testing.
13 class MessageQueueTestPeer { 13 class MessageQueueTestPeer {
14 public: 14 public:
15 explicit MessageQueueTestPeer(MessageQueue* queue) : queue_(queue) {} 15 explicit MessageQueueTestPeer(MessageQueue* queue) : queue_(queue) {}
16 16
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 Dart_Port port1 = 1; 280 Dart_Port port1 = 1;
281 281
282 EXPECT(!queue_peer.HasMessage()); 282 EXPECT(!queue_peer.HasMessage());
283 queue.Flush(port1); 283 queue.Flush(port1);
284 284
285 // Queue is still empty. 285 // Queue is still empty.
286 EXPECT(!queue_peer.HasMessage()); 286 EXPECT(!queue_peer.HasMessage());
287 } 287 }
288 288
289 } // namespace dart 289 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/message_queue_test.cc ('k') | runtime/vm/native_message_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698