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

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

Issue 16973003: Split dart_api.h into multiple parts: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 "include/dart_api.h" 5 #include "include/dart_api.h"
6 #include "include/dart_native_api.h"
6 7
7 #include "vm/unit_test.h" 8 #include "vm/unit_test.h"
8 9
9 // Custom Isolate Test. 10 // Custom Isolate Test.
10 // 11 //
11 // This mid-size test uses the Dart Embedding Api to create a custom 12 // This mid-size test uses the Dart Embedding Api to create a custom
12 // isolate abstraction. Instead of having a dedicated thread for each 13 // isolate abstraction. Instead of having a dedicated thread for each
13 // isolate, as is the case normally, this implementation shares a 14 // isolate, as is the case normally, this implementation shares a
14 // single thread among the isolates using an event queue. 15 // single thread among the isolates using an event queue.
15 16
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 event = event_queue->Get(); 334 event = event_queue->Get();
334 } 335 }
335 OS::Print("-- Finished event loop --\n"); 336 OS::Print("-- Finished event loop --\n");
336 EXPECT_STREQ("Received: 43", saved_echo); 337 EXPECT_STREQ("Received: 43", saved_echo);
337 free(const_cast<char*>(saved_echo)); 338 free(const_cast<char*>(saved_echo));
338 339
339 delete event_queue; 340 delete event_queue;
340 } 341 }
341 342
342 } // namespace dart 343 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698