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

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

Issue 411633002: Fix for issue 19817 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 5 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/snapshot_test.cc ('k') | runtime/vm/unit_test.cc » ('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) 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_api.h" 8 #include "include/dart_api.h"
9 9
10 #include "platform/globals.h" 10 #include "platform/globals.h"
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 #define CORELIB_TEST_URI "dart:test-lib" 238 #define CORELIB_TEST_URI "dart:test-lib"
239 239
240 class TestCase : TestCaseBase { 240 class TestCase : TestCaseBase {
241 public: 241 public:
242 typedef void (RunEntry)(); 242 typedef void (RunEntry)();
243 243
244 TestCase(RunEntry* run, const char* name) : TestCaseBase(name), run_(run) { } 244 TestCase(RunEntry* run, const char* name) : TestCaseBase(name), run_(run) { }
245 245
246 static Dart_Handle LoadTestScript(const char* script, 246 static Dart_Handle LoadTestScript(const char* script,
247 Dart_NativeEntryResolver resolver, 247 Dart_NativeEntryResolver resolver,
248 const char* lib_uri = USER_TEST_URI); 248 const char* lib_uri = USER_TEST_URI,
249 bool finalize = true);
249 250
250 static Dart_Handle LoadCoreTestScript(const char* script, 251 static Dart_Handle LoadCoreTestScript(const char* script,
251 Dart_NativeEntryResolver resolver); 252 Dart_NativeEntryResolver resolver);
252 static Dart_Handle lib(); 253 static Dart_Handle lib();
253 static const char* url() { return USER_TEST_URI; } 254 static const char* url() { return USER_TEST_URI; }
254 static Dart_Isolate CreateTestIsolateFromSnapshot(uint8_t* buffer) { 255 static Dart_Isolate CreateTestIsolateFromSnapshot(uint8_t* buffer) {
255 return CreateIsolate(buffer); 256 return CreateIsolate(buffer);
256 } 257 }
257 static Dart_Isolate CreateTestIsolate() { 258 static Dart_Isolate CreateTestIsolate() {
258 return CreateIsolate(bin::snapshot_buffer); 259 return CreateIsolate(bin::snapshot_buffer);
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 } \ 406 } \
406 } else { \ 407 } else { \
407 dart::Expect(__FILE__, __LINE__).Fail("expected True, but was '%s'\n", \ 408 dart::Expect(__FILE__, __LINE__).Fail("expected True, but was '%s'\n", \
408 #handle); \ 409 #handle); \
409 } \ 410 } \
410 } while (0) 411 } while (0)
411 412
412 } // namespace dart 413 } // namespace dart
413 414
414 #endif // VM_UNIT_TEST_H_ 415 #endif // VM_UNIT_TEST_H_
OLDNEW
« no previous file with comments | « runtime/vm/snapshot_test.cc ('k') | runtime/vm/unit_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698