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

Side by Side Diff: runtime/vm/dart_api_impl_test.cc

Issue 270503007: Eliminate unused url mapping parameter in dartutils (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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/benchmark_test.cc ('k') | runtime/vm/debugger_api_impl_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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #include "bin/builtin.h" 5 #include "bin/builtin.h"
6 #include "include/dart_api.h" 6 #include "include/dart_api.h"
7 #include "include/dart_debugger_api.h" 7 #include "include/dart_debugger_api.h"
8 #include "include/dart_mirrors_api.h" 8 #include "include/dart_mirrors_api.h"
9 #include "include/dart_native_api.h" 9 #include "include/dart_native_api.h"
10 #include "platform/assert.h" 10 #include "platform/assert.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 EXPECT(!Dart_ErrorHasException(instance)); 43 EXPECT(!Dart_ErrorHasException(instance));
44 EXPECT(!Dart_ErrorHasException(error)); 44 EXPECT(!Dart_ErrorHasException(error));
45 EXPECT(Dart_ErrorHasException(exception)); 45 EXPECT(Dart_ErrorHasException(exception));
46 46
47 EXPECT_STREQ("", Dart_GetError(instance)); 47 EXPECT_STREQ("", Dart_GetError(instance));
48 EXPECT_STREQ("myerror", Dart_GetError(error)); 48 EXPECT_STREQ("myerror", Dart_GetError(error));
49 EXPECT_STREQ( 49 EXPECT_STREQ(
50 "Unhandled exception:\n" 50 "Unhandled exception:\n"
51 "Exception: bad news\n" 51 "Exception: bad news\n"
52 "#0 testMain (dart:test-lib:2:3)", 52 "#0 testMain (test-lib:2:3)",
53 Dart_GetError(exception)); 53 Dart_GetError(exception));
54 54
55 EXPECT(Dart_IsError(Dart_ErrorGetException(instance))); 55 EXPECT(Dart_IsError(Dart_ErrorGetException(instance)));
56 EXPECT(Dart_IsError(Dart_ErrorGetException(error))); 56 EXPECT(Dart_IsError(Dart_ErrorGetException(error)));
57 EXPECT_VALID(Dart_ErrorGetException(exception)); 57 EXPECT_VALID(Dart_ErrorGetException(exception));
58 58
59 EXPECT(Dart_IsError(Dart_ErrorGetStacktrace(instance))); 59 EXPECT(Dart_IsError(Dart_ErrorGetStacktrace(instance)));
60 EXPECT(Dart_IsError(Dart_ErrorGetStacktrace(error))); 60 EXPECT(Dart_IsError(Dart_ErrorGetStacktrace(error)));
61 EXPECT_VALID(Dart_ErrorGetStacktrace(exception)); 61 EXPECT_VALID(Dart_ErrorGetStacktrace(exception));
62 } 62 }
(...skipping 27 matching lines...) Expand all
90 90
91 Dart_ActivationFrame frame; 91 Dart_ActivationFrame frame;
92 result = Dart_GetActivationFrame(stacktrace, 0, &frame); 92 result = Dart_GetActivationFrame(stacktrace, 0, &frame);
93 EXPECT_VALID(result); 93 EXPECT_VALID(result);
94 result = Dart_ActivationFrameInfo( 94 result = Dart_ActivationFrameInfo(
95 frame, &function_name, &script_url, &line_number, &column_number); 95 frame, &function_name, &script_url, &line_number, &column_number);
96 EXPECT_VALID(result); 96 EXPECT_VALID(result);
97 Dart_StringToCString(function_name, &cstr); 97 Dart_StringToCString(function_name, &cstr);
98 EXPECT_STREQ("bar", cstr); 98 EXPECT_STREQ("bar", cstr);
99 Dart_StringToCString(script_url, &cstr); 99 Dart_StringToCString(script_url, &cstr);
100 EXPECT_STREQ("dart:test-lib", cstr); 100 EXPECT_STREQ("test-lib", cstr);
101 EXPECT_EQ(1, line_number); 101 EXPECT_EQ(1, line_number);
102 EXPECT_EQ(10, column_number); 102 EXPECT_EQ(10, column_number);
103 103
104 result = Dart_GetActivationFrame(stacktrace, 1, &frame); 104 result = Dart_GetActivationFrame(stacktrace, 1, &frame);
105 EXPECT_VALID(result); 105 EXPECT_VALID(result);
106 result = Dart_ActivationFrameInfo( 106 result = Dart_ActivationFrameInfo(
107 frame, &function_name, &script_url, &line_number, &column_number); 107 frame, &function_name, &script_url, &line_number, &column_number);
108 EXPECT_VALID(result); 108 EXPECT_VALID(result);
109 Dart_StringToCString(function_name, &cstr); 109 Dart_StringToCString(function_name, &cstr);
110 EXPECT_STREQ("foo", cstr); 110 EXPECT_STREQ("foo", cstr);
111 Dart_StringToCString(script_url, &cstr); 111 Dart_StringToCString(script_url, &cstr);
112 EXPECT_STREQ("dart:test-lib", cstr); 112 EXPECT_STREQ("test-lib", cstr);
113 EXPECT_EQ(2, line_number); 113 EXPECT_EQ(2, line_number);
114 EXPECT_EQ(13, column_number); 114 EXPECT_EQ(13, column_number);
115 115
116 result = Dart_GetActivationFrame(stacktrace, 2, &frame); 116 result = Dart_GetActivationFrame(stacktrace, 2, &frame);
117 EXPECT_VALID(result); 117 EXPECT_VALID(result);
118 result = Dart_ActivationFrameInfo( 118 result = Dart_ActivationFrameInfo(
119 frame, &function_name, &script_url, &line_number, &column_number); 119 frame, &function_name, &script_url, &line_number, &column_number);
120 EXPECT_VALID(result); 120 EXPECT_VALID(result);
121 Dart_StringToCString(function_name, &cstr); 121 Dart_StringToCString(function_name, &cstr);
122 EXPECT_STREQ("testMain", cstr); 122 EXPECT_STREQ("testMain", cstr);
123 Dart_StringToCString(script_url, &cstr); 123 Dart_StringToCString(script_url, &cstr);
124 EXPECT_STREQ("dart:test-lib", cstr); 124 EXPECT_STREQ("test-lib", cstr);
125 EXPECT_EQ(3, line_number); 125 EXPECT_EQ(3, line_number);
126 EXPECT_EQ(18, column_number); 126 EXPECT_EQ(18, column_number);
127 127
128 // Out-of-bounds frames. 128 // Out-of-bounds frames.
129 result = Dart_GetActivationFrame(stacktrace, frame_count, &frame); 129 result = Dart_GetActivationFrame(stacktrace, frame_count, &frame);
130 EXPECT(Dart_IsError(result)); 130 EXPECT(Dart_IsError(result));
131 result = Dart_GetActivationFrame(stacktrace, -1, &frame); 131 result = Dart_GetActivationFrame(stacktrace, -1, &frame);
132 EXPECT(Dart_IsError(result)); 132 EXPECT(Dart_IsError(result));
133 } 133 }
134 134
(...skipping 29 matching lines...) Expand all
164 // Top frame at positioned at throw. 164 // Top frame at positioned at throw.
165 Dart_ActivationFrame frame; 165 Dart_ActivationFrame frame;
166 result = Dart_GetActivationFrame(stacktrace, 0, &frame); 166 result = Dart_GetActivationFrame(stacktrace, 0, &frame);
167 EXPECT_VALID(result); 167 EXPECT_VALID(result);
168 result = Dart_ActivationFrameInfo( 168 result = Dart_ActivationFrameInfo(
169 frame, &function_name, &script_url, &line_number, &column_number); 169 frame, &function_name, &script_url, &line_number, &column_number);
170 EXPECT_VALID(result); 170 EXPECT_VALID(result);
171 Dart_StringToCString(function_name, &cstr); 171 Dart_StringToCString(function_name, &cstr);
172 EXPECT_STREQ("foo", cstr); 172 EXPECT_STREQ("foo", cstr);
173 Dart_StringToCString(script_url, &cstr); 173 Dart_StringToCString(script_url, &cstr);
174 EXPECT_STREQ("dart:test-lib", cstr); 174 EXPECT_STREQ("test-lib", cstr);
175 EXPECT_EQ(1, line_number); 175 EXPECT_EQ(1, line_number);
176 EXPECT_EQ(20, column_number); 176 EXPECT_EQ(20, column_number);
177 177
178 // Middle frames positioned at the recursive call. 178 // Middle frames positioned at the recursive call.
179 for (intptr_t frame_index = 1; 179 for (intptr_t frame_index = 1;
180 frame_index < (frame_count - 1); 180 frame_index < (frame_count - 1);
181 frame_index++) { 181 frame_index++) {
182 result = Dart_GetActivationFrame(stacktrace, frame_index, &frame); 182 result = Dart_GetActivationFrame(stacktrace, frame_index, &frame);
183 EXPECT_VALID(result); 183 EXPECT_VALID(result);
184 result = Dart_ActivationFrameInfo( 184 result = Dart_ActivationFrameInfo(
185 frame, &function_name, &script_url, &line_number, &column_number); 185 frame, &function_name, &script_url, &line_number, &column_number);
186 EXPECT_VALID(result); 186 EXPECT_VALID(result);
187 Dart_StringToCString(function_name, &cstr); 187 Dart_StringToCString(function_name, &cstr);
188 EXPECT_STREQ("foo", cstr); 188 EXPECT_STREQ("foo", cstr);
189 Dart_StringToCString(script_url, &cstr); 189 Dart_StringToCString(script_url, &cstr);
190 EXPECT_STREQ("dart:test-lib", cstr); 190 EXPECT_STREQ("test-lib", cstr);
191 EXPECT_EQ(1, line_number); 191 EXPECT_EQ(1, line_number);
192 EXPECT_EQ(43, column_number); 192 EXPECT_EQ(43, column_number);
193 } 193 }
194 194
195 // Bottom frame positioned at testMain(). 195 // Bottom frame positioned at testMain().
196 result = Dart_GetActivationFrame(stacktrace, frame_count - 1, &frame); 196 result = Dart_GetActivationFrame(stacktrace, frame_count - 1, &frame);
197 EXPECT_VALID(result); 197 EXPECT_VALID(result);
198 result = Dart_ActivationFrameInfo( 198 result = Dart_ActivationFrameInfo(
199 frame, &function_name, &script_url, &line_number, &column_number); 199 frame, &function_name, &script_url, &line_number, &column_number);
200 EXPECT_VALID(result); 200 EXPECT_VALID(result);
201 Dart_StringToCString(function_name, &cstr); 201 Dart_StringToCString(function_name, &cstr);
202 EXPECT_STREQ("testMain", cstr); 202 EXPECT_STREQ("testMain", cstr);
203 Dart_StringToCString(script_url, &cstr); 203 Dart_StringToCString(script_url, &cstr);
204 EXPECT_STREQ("dart:test-lib", cstr); 204 EXPECT_STREQ("test-lib", cstr);
205 EXPECT_EQ(2, line_number); 205 EXPECT_EQ(2, line_number);
206 EXPECT_EQ(18, column_number); 206 EXPECT_EQ(18, column_number);
207 207
208 // Out-of-bounds frames. 208 // Out-of-bounds frames.
209 result = Dart_GetActivationFrame(stacktrace, frame_count, &frame); 209 result = Dart_GetActivationFrame(stacktrace, frame_count, &frame);
210 EXPECT(Dart_IsError(result)); 210 EXPECT(Dart_IsError(result));
211 result = Dart_GetActivationFrame(stacktrace, -1, &frame); 211 result = Dart_GetActivationFrame(stacktrace, -1, &frame);
212 EXPECT(Dart_IsError(result)); 212 EXPECT(Dart_IsError(result));
213 } 213 }
214 214
(...skipping 28 matching lines...) Expand all
243 // Top frame at recursive call. 243 // Top frame at recursive call.
244 Dart_ActivationFrame frame; 244 Dart_ActivationFrame frame;
245 result = Dart_GetActivationFrame(stacktrace, 0, &frame); 245 result = Dart_GetActivationFrame(stacktrace, 0, &frame);
246 EXPECT_VALID(result); 246 EXPECT_VALID(result);
247 result = Dart_ActivationFrameInfo( 247 result = Dart_ActivationFrameInfo(
248 frame, &function_name, &script_url, &line_number, &column_number); 248 frame, &function_name, &script_url, &line_number, &column_number);
249 EXPECT_VALID(result); 249 EXPECT_VALID(result);
250 Dart_StringToCString(function_name, &cstr); 250 Dart_StringToCString(function_name, &cstr);
251 EXPECT_STREQ("C.foo", cstr); 251 EXPECT_STREQ("C.foo", cstr);
252 Dart_StringToCString(script_url, &cstr); 252 Dart_StringToCString(script_url, &cstr);
253 EXPECT_STREQ("dart:test-lib", cstr); 253 EXPECT_STREQ("test-lib", cstr);
254 EXPECT_EQ(2, line_number); 254 EXPECT_EQ(2, line_number);
255 EXPECT_EQ(3, column_number); 255 EXPECT_EQ(3, column_number);
256 256
257 // Out-of-bounds frames. 257 // Out-of-bounds frames.
258 result = Dart_GetActivationFrame(stacktrace, frame_count, &frame); 258 result = Dart_GetActivationFrame(stacktrace, frame_count, &frame);
259 EXPECT(Dart_IsError(result)); 259 EXPECT(Dart_IsError(result));
260 result = Dart_GetActivationFrame(stacktrace, -1, &frame); 260 result = Dart_GetActivationFrame(stacktrace, -1, &frame);
261 EXPECT(Dart_IsError(result)); 261 EXPECT(Dart_IsError(result));
262 } 262 }
263 263
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 // Top frame is inspectStack(). 304 // Top frame is inspectStack().
305 Dart_ActivationFrame frame; 305 Dart_ActivationFrame frame;
306 result = Dart_GetActivationFrame(stacktrace, 0, &frame); 306 result = Dart_GetActivationFrame(stacktrace, 0, &frame);
307 EXPECT_VALID(result); 307 EXPECT_VALID(result);
308 result = Dart_ActivationFrameInfo( 308 result = Dart_ActivationFrameInfo(
309 frame, &function_name, &script_url, &line_number, &column_number); 309 frame, &function_name, &script_url, &line_number, &column_number);
310 EXPECT_VALID(result); 310 EXPECT_VALID(result);
311 Dart_StringToCString(function_name, &cstr); 311 Dart_StringToCString(function_name, &cstr);
312 EXPECT_STREQ("inspectStack", cstr); 312 EXPECT_STREQ("inspectStack", cstr);
313 Dart_StringToCString(script_url, &cstr); 313 Dart_StringToCString(script_url, &cstr);
314 EXPECT_STREQ("dart:test-lib", cstr); 314 EXPECT_STREQ("test-lib", cstr);
315 EXPECT_EQ(1, line_number); 315 EXPECT_EQ(1, line_number);
316 EXPECT_EQ(47, column_number); 316 EXPECT_EQ(47, column_number);
317 317
318 // Second frame is foo() positioned at call to inspectStack(). 318 // Second frame is foo() positioned at call to inspectStack().
319 result = Dart_GetActivationFrame(stacktrace, 1, &frame); 319 result = Dart_GetActivationFrame(stacktrace, 1, &frame);
320 EXPECT_VALID(result); 320 EXPECT_VALID(result);
321 result = Dart_ActivationFrameInfo( 321 result = Dart_ActivationFrameInfo(
322 frame, &function_name, &script_url, &line_number, &column_number); 322 frame, &function_name, &script_url, &line_number, &column_number);
323 EXPECT_VALID(result); 323 EXPECT_VALID(result);
324 Dart_StringToCString(function_name, &cstr); 324 Dart_StringToCString(function_name, &cstr);
325 EXPECT_STREQ("foo", cstr); 325 EXPECT_STREQ("foo", cstr);
326 Dart_StringToCString(script_url, &cstr); 326 Dart_StringToCString(script_url, &cstr);
327 EXPECT_STREQ("dart:test-lib", cstr); 327 EXPECT_STREQ("test-lib", cstr);
328 EXPECT_EQ(2, line_number); 328 EXPECT_EQ(2, line_number);
329 EXPECT_EQ(32, column_number); 329 EXPECT_EQ(32, column_number);
330 330
331 // Middle frames positioned at the recursive call. 331 // Middle frames positioned at the recursive call.
332 for (intptr_t frame_index = 2; 332 for (intptr_t frame_index = 2;
333 frame_index < (frame_count - 1); 333 frame_index < (frame_count - 1);
334 frame_index++) { 334 frame_index++) {
335 result = Dart_GetActivationFrame(stacktrace, frame_index, &frame); 335 result = Dart_GetActivationFrame(stacktrace, frame_index, &frame);
336 EXPECT_VALID(result); 336 EXPECT_VALID(result);
337 result = Dart_ActivationFrameInfo( 337 result = Dart_ActivationFrameInfo(
338 frame, &function_name, &script_url, &line_number, &column_number); 338 frame, &function_name, &script_url, &line_number, &column_number);
339 EXPECT_VALID(result); 339 EXPECT_VALID(result);
340 Dart_StringToCString(function_name, &cstr); 340 Dart_StringToCString(function_name, &cstr);
341 EXPECT_STREQ("foo", cstr); 341 EXPECT_STREQ("foo", cstr);
342 Dart_StringToCString(script_url, &cstr); 342 Dart_StringToCString(script_url, &cstr);
343 EXPECT_STREQ("dart:test-lib", cstr); 343 EXPECT_STREQ("test-lib", cstr);
344 EXPECT_EQ(2, line_number); 344 EXPECT_EQ(2, line_number);
345 EXPECT_EQ(40, column_number); 345 EXPECT_EQ(40, column_number);
346 } 346 }
347 347
348 // Bottom frame positioned at testMain(). 348 // Bottom frame positioned at testMain().
349 result = Dart_GetActivationFrame(stacktrace, frame_count - 1, &frame); 349 result = Dart_GetActivationFrame(stacktrace, frame_count - 1, &frame);
350 EXPECT_VALID(result); 350 EXPECT_VALID(result);
351 result = Dart_ActivationFrameInfo( 351 result = Dart_ActivationFrameInfo(
352 frame, &function_name, &script_url, &line_number, &column_number); 352 frame, &function_name, &script_url, &line_number, &column_number);
353 EXPECT_VALID(result); 353 EXPECT_VALID(result);
354 Dart_StringToCString(function_name, &cstr); 354 Dart_StringToCString(function_name, &cstr);
355 EXPECT_STREQ("testMain", cstr); 355 EXPECT_STREQ("testMain", cstr);
356 Dart_StringToCString(script_url, &cstr); 356 Dart_StringToCString(script_url, &cstr);
357 EXPECT_STREQ("dart:test-lib", cstr); 357 EXPECT_STREQ("test-lib", cstr);
358 EXPECT_EQ(3, line_number); 358 EXPECT_EQ(3, line_number);
359 EXPECT_EQ(18, column_number); 359 EXPECT_EQ(18, column_number);
360 360
361 // Out-of-bounds frames. 361 // Out-of-bounds frames.
362 result = Dart_GetActivationFrame(stacktrace, frame_count, &frame); 362 result = Dart_GetActivationFrame(stacktrace, frame_count, &frame);
363 EXPECT(Dart_IsError(result)); 363 EXPECT(Dart_IsError(result));
364 result = Dart_GetActivationFrame(stacktrace, -1, &frame); 364 result = Dart_GetActivationFrame(stacktrace, -1, &frame);
365 EXPECT(Dart_IsError(result)); 365 EXPECT(Dart_IsError(result));
366 366
367 Dart_SetReturnValue(args, Dart_NewInteger(42)); 367 Dart_SetReturnValue(args, Dart_NewInteger(42));
(...skipping 4654 matching lines...) Expand 10 before | Expand all | Expand 10 after
5022 " }\n" 5022 " }\n"
5023 " TestClass.fld1 += 1;\n" 5023 " TestClass.fld1 += 1;\n"
5024 " }\n" 5024 " }\n"
5025 " static TestClass testMain() {\n" 5025 " static TestClass testMain() {\n"
5026 " return new TestClass();\n" 5026 " return new TestClass();\n"
5027 " }\n" 5027 " }\n"
5028 "}\n"; 5028 "}\n";
5029 Dart_Handle result; 5029 Dart_Handle result;
5030 Dart_Handle instance; 5030 Dart_Handle instance;
5031 // Create a test library and Load up a test script in it. 5031 // Create a test library and Load up a test script in it.
5032 Dart_Handle lib = TestCase::LoadTestScript(kScriptChars, NULL); 5032 // The test library must have a dart: url so it can import dart:_internal.
5033 Dart_Handle lib = TestCase::LoadCoreTestScript(kScriptChars, NULL);
5033 Dart_Handle type = Dart_GetType(lib, NewString("TestClass"), 0, NULL); 5034 Dart_Handle type = Dart_GetType(lib, NewString("TestClass"), 0, NULL);
5034 EXPECT_VALID(type); 5035 EXPECT_VALID(type);
5035 5036
5036 // Invoke a function which returns an object. 5037 // Invoke a function which returns an object.
5037 instance = Dart_Invoke(type, NewString("testMain"), 0, NULL); 5038 instance = Dart_Invoke(type, NewString("testMain"), 0, NULL);
5038 EXPECT_VALID(instance); 5039 EXPECT_VALID(instance);
5039 5040
5040 // Try to get a field that does not exist, should call noSuchMethod. 5041 // Try to get a field that does not exist, should call noSuchMethod.
5041 result = Dart_GetField(instance, NewString("fld")); 5042 result = Dart_GetField(instance, NewString("fld"));
5042 EXPECT_VALID(result); 5043 EXPECT_VALID(result);
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
5428 EXPECT_VALID(result); 5429 EXPECT_VALID(result);
5429 EXPECT(Dart_IsInteger(result)); 5430 EXPECT(Dart_IsInteger(result));
5430 int64_t value = 0; 5431 int64_t value = 0;
5431 EXPECT_VALID(Dart_IntegerToInt64(result, &value)); 5432 EXPECT_VALID(Dart_IntegerToInt64(result, &value));
5432 EXPECT_EQ(12345, value); 5433 EXPECT_EQ(12345, value);
5433 5434
5434 // Further calls to LoadScript are errors. 5435 // Further calls to LoadScript are errors.
5435 result = Dart_LoadScript(url, source, 0, 0); 5436 result = Dart_LoadScript(url, source, 0, 0);
5436 EXPECT(Dart_IsError(result)); 5437 EXPECT(Dart_IsError(result));
5437 EXPECT_STREQ("Dart_LoadScript: " 5438 EXPECT_STREQ("Dart_LoadScript: "
5438 "A script has already been loaded from 'dart:test-lib'.", 5439 "A script has already been loaded from 'test-lib'.",
5439 Dart_GetError(result)); 5440 Dart_GetError(result));
5440 } 5441 }
5441 5442
5442 5443
5443 TEST_CASE(RootLibrary) { 5444 TEST_CASE(RootLibrary) {
5444 const char* kScriptChars = 5445 const char* kScriptChars =
5445 "library testlib;" 5446 "library testlib;"
5446 "main() {" 5447 "main() {"
5447 " return 12345;" 5448 " return 12345;"
5448 "}"; 5449 "}";
(...skipping 2761 matching lines...) Expand 10 before | Expand all | Expand 10 after
8210 NewString("main"), 8211 NewString("main"),
8211 1, 8212 1,
8212 dart_args); 8213 dart_args);
8213 int64_t value = 0; 8214 int64_t value = 0;
8214 result = Dart_IntegerToInt64(result, &value); 8215 result = Dart_IntegerToInt64(result, &value);
8215 EXPECT_VALID(result); 8216 EXPECT_VALID(result);
8216 EXPECT_EQ(6, value); 8217 EXPECT_EQ(6, value);
8217 } 8218 }
8218 8219
8219 } // namespace dart 8220 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/benchmark_test.cc ('k') | runtime/vm/debugger_api_impl_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698