Chromium Code Reviews

Side by Side Diff: runtime/vm/unit_test.h

Issue 1162033005: Fix http://dartbug.com/23578: (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update to ToT. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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 #ifndef VM_UNIT_TEST_H_ 5 #ifndef VM_UNIT_TEST_H_
6 #define VM_UNIT_TEST_H_ 6 #define VM_UNIT_TEST_H_
7 7
8 #include "include/dart_native_api.h" 8 #include "include/dart_native_api.h"
9 9
10 #include "platform/globals.h" 10 #include "platform/globals.h"
(...skipping 268 matching lines...)
279 Dart_Handle library, 279 Dart_Handle library,
280 Dart_Handle url); 280 Dart_Handle url);
281 static char* BigintToHexValue(Dart_CObject* bigint); 281 static char* BigintToHexValue(Dart_CObject* bigint);
282 282
283 virtual void Run(); 283 virtual void Run();
284 284
285 private: 285 private:
286 static Dart_Isolate CreateIsolate(const uint8_t* buffer, 286 static Dart_Isolate CreateIsolate(const uint8_t* buffer,
287 const char* name) { 287 const char* name) {
288 char* err; 288 char* err;
289 Dart_Isolate isolate = Dart_CreateIsolate(name, NULL, buffer, NULL, &err); 289 Dart_Isolate isolate = Dart_CreateIsolate(
290 name, NULL, buffer, NULL, NULL, &err);
290 if (isolate == NULL) { 291 if (isolate == NULL) {
291 OS::Print("Creation of isolate failed '%s'\n", err); 292 OS::Print("Creation of isolate failed '%s'\n", err);
292 free(err); 293 free(err);
293 } 294 }
294 EXPECT(isolate != NULL); 295 EXPECT(isolate != NULL);
295 return isolate; 296 return isolate;
296 } 297 }
297 298
298 RunEntry* const run_; 299 RunEntry* const run_;
299 }; 300 };
(...skipping 123 matching lines...)
423 } \ 424 } \
424 } else { \ 425 } else { \
425 dart::Expect(__FILE__, __LINE__).Fail("expected True, but was '%s'\n", \ 426 dart::Expect(__FILE__, __LINE__).Fail("expected True, but was '%s'\n", \
426 #handle); \ 427 #handle); \
427 } \ 428 } \
428 } while (0) 429 } while (0)
429 430
430 } // namespace dart 431 } // namespace dart
431 432
432 #endif // VM_UNIT_TEST_H_ 433 #endif // VM_UNIT_TEST_H_
OLDNEW
« runtime/vm/isolate.cc ('K') | « runtime/vm/thread_test.cc ('k') | runtime/vm/zone_test.cc » ('j') | no next file with comments »

Powered by Google App Engine