| OLD | NEW |
| 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 // TODO(zra): Remove when tests are ready to enable. |
| 6 #include "platform/globals.h" |
| 7 #if !defined(TARGET_ARCH_ARM64) |
| 8 |
| 5 #include "include/dart_api.h" | 9 #include "include/dart_api.h" |
| 6 #include "include/dart_native_api.h" | 10 #include "include/dart_native_api.h" |
| 7 | 11 |
| 8 #include "vm/unit_test.h" | 12 #include "vm/unit_test.h" |
| 9 | 13 |
| 10 // Custom Isolate Test. | 14 // Custom Isolate Test. |
| 11 // | 15 // |
| 12 // This mid-size test uses the Dart Embedding Api to create a custom | 16 // This mid-size test uses the Dart Embedding Api to create a custom |
| 13 // isolate abstraction. Instead of having a dedicated thread for each | 17 // isolate abstraction. Instead of having a dedicated thread for each |
| 14 // isolate, as is the case normally, this implementation shares a | 18 // isolate, as is the case normally, this implementation shares a |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 event = event_queue->Get(); | 347 event = event_queue->Get(); |
| 344 } | 348 } |
| 345 OS::Print("-- Finished event loop --\n"); | 349 OS::Print("-- Finished event loop --\n"); |
| 346 EXPECT_STREQ("Received: 43", saved_echo); | 350 EXPECT_STREQ("Received: 43", saved_echo); |
| 347 free(const_cast<char*>(saved_echo)); | 351 free(const_cast<char*>(saved_echo)); |
| 348 | 352 |
| 349 delete event_queue; | 353 delete event_queue; |
| 350 } | 354 } |
| 351 | 355 |
| 352 } // namespace dart | 356 } // namespace dart |
| 357 |
| 358 #endif // !defined(TARGET_ARCH_ARM64) |
| OLD | NEW |