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

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

Issue 1341473002: Fix a variety of service protocol bugs. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « runtime/vm/service/service.md ('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_native_api.h" 8 #include "include/dart_native_api.h"
9 9
10 #include "platform/globals.h" 10 #include "platform/globals.h"
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 if (!value) { \ 514 if (!value) { \
515 dart::Expect(__FILE__, __LINE__).Fail("expected True, but was '%s'\n", \ 515 dart::Expect(__FILE__, __LINE__).Fail("expected True, but was '%s'\n", \
516 #handle); \ 516 #handle); \
517 } \ 517 } \
518 } else { \ 518 } else { \
519 dart::Expect(__FILE__, __LINE__).Fail("expected True, but was '%s'\n", \ 519 dart::Expect(__FILE__, __LINE__).Fail("expected True, but was '%s'\n", \
520 #handle); \ 520 #handle); \
521 } \ 521 } \
522 } while (0) 522 } while (0)
523 523
524
525 // Elide a substring which starts with some prefix and ends with a ".
526 //
527 // This is used to remove non-deterministic or fragile substrings from
528 // JSON output.
529 //
530 // For example:
531 //
532 // prefix = "classes"
533 // in = "\"id\":\"classes/46\""
534 //
535 // Yields:
536 //
537 // out = "\"id\":\"\""
538 //
539 void ElideJSONSubstring(const char* prefix, const char* in, char* out);
540
541
524 } // namespace dart 542 } // namespace dart
525 543
526 #endif // VM_UNIT_TEST_H_ 544 #endif // VM_UNIT_TEST_H_
OLDNEW
« no previous file with comments | « runtime/vm/service/service.md ('k') | runtime/vm/unit_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698