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

Side by Side Diff: tests/lib/convert/streamed_conversion_json_utf8_decode_test.dart

Issue 738453002: Add missing verified write on x64; extend test coverage (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 1 month 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/intermediate_language_x64.cc ('k') | tests/standalone/verified_mem_test.dart » ('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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 // Test write barrier verification mode.
5 // VMOptions=--verified_mem --verify_before_gc --verify_after_gc --old_gen_growt h_rate=1
6 // VMOptions=
4 7
5 import "package:expect/expect.dart"; 8 import "package:expect/expect.dart";
6 import 'dart:async'; 9 import 'dart:async';
7 import 'dart:convert'; 10 import 'dart:convert';
8 import 'json_unicode_tests.dart'; 11 import 'json_unicode_tests.dart';
9 import "package:async_helper/async_helper.dart"; 12 import "package:async_helper/async_helper.dart";
10 13
11 final JSON_UTF8 = JSON.fuse(UTF8); 14 final JSON_UTF8 = JSON.fuse(UTF8);
12 15
13 void expectJsonEquals(o1, o2, [path = "result"]) { 16 void expectJsonEquals(o1, o2, [path = "result"]) {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 var bytes = test[0]; 74 var bytes = test[0];
72 var o = test[1]; 75 var o = test[1];
73 checkIsJsonEqual(o, decode(bytes)); 76 checkIsJsonEqual(o, decode(bytes));
74 checkIsJsonEqual(o, decodeChunked(bytes, 1)); 77 checkIsJsonEqual(o, decodeChunked(bytes, 1));
75 checkIsJsonEqual(o, decodeChunked(bytes, 2)); 78 checkIsJsonEqual(o, decodeChunked(bytes, 2));
76 checkIsJsonEqual(o, decodeChunked(bytes, 3)); 79 checkIsJsonEqual(o, decodeChunked(bytes, 3));
77 checkIsJsonEqual(o, decodeChunked(bytes, 4)); 80 checkIsJsonEqual(o, decodeChunked(bytes, 4));
78 checkIsJsonEqual(o, decodeChunked(bytes, 5)); 81 checkIsJsonEqual(o, decodeChunked(bytes, 5));
79 } 82 }
80 } 83 }
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | tests/standalone/verified_mem_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698