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

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

Issue 24785002: Fix 13594. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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/dart_api_impl.cc ('k') | no next file » | 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_mirrors_api.h" 7 #include "include/dart_mirrors_api.h"
8 #include "include/dart_native_api.h" 8 #include "include/dart_native_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/json.h" 10 #include "platform/json.h"
(...skipping 5240 matching lines...) Expand 10 before | Expand all | Expand 10 after
5251 5251
5252 url = NewString("source_url"); 5252 url = NewString("source_url");
5253 source = NewString(kSourceChars); 5253 source = NewString(kSourceChars);
5254 5254
5255 Dart_Handle result = Dart_LoadSource(lib, url, source); 5255 Dart_Handle result = Dart_LoadSource(lib, url, source);
5256 EXPECT_VALID(result); 5256 EXPECT_VALID(result);
5257 5257
5258 url = NewString("patch_url"); 5258 url = NewString("patch_url");
5259 source = NewString(kPatchChars); 5259 source = NewString(kPatchChars);
5260 5260
5261 result = Dart_LoadPatch(lib, url, source); 5261 result = Dart_LibraryLoadPatch(lib, url, source);
5262 EXPECT_VALID(result); 5262 EXPECT_VALID(result);
5263 5263
5264 result = Dart_Invoke(lib, NewString("foo"), 0, NULL); 5264 result = Dart_Invoke(lib, NewString("foo"), 0, NULL);
5265 EXPECT_VALID(result); 5265 EXPECT_VALID(result);
5266 EXPECT(Dart_IsInteger(result)); 5266 EXPECT(Dart_IsInteger(result));
5267 int64_t value = 0; 5267 int64_t value = 0;
5268 EXPECT_VALID(Dart_IntegerToInt64(result, &value)); 5268 EXPECT_VALID(Dart_IntegerToInt64(result, &value));
5269 EXPECT_EQ(42, value); 5269 EXPECT_EQ(42, value);
5270 } 5270 }
5271 5271
(...skipping 2053 matching lines...) Expand 10 before | Expand all | Expand 10 after
7325 NewString("main"), 7325 NewString("main"),
7326 0, 7326 0,
7327 NULL); 7327 NULL);
7328 int64_t value = 0; 7328 int64_t value = 0;
7329 result = Dart_IntegerToInt64(result, &value); 7329 result = Dart_IntegerToInt64(result, &value);
7330 EXPECT_VALID(result); 7330 EXPECT_VALID(result);
7331 EXPECT_EQ(8, value); 7331 EXPECT_EQ(8, value);
7332 } 7332 }
7333 7333
7334 } // namespace dart 7334 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698