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

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

Issue 14872009: Fix build break in --checked mode. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | « no previous file | 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 "include/dart_api.h" 5 #include "include/dart_api.h"
6 #include "platform/assert.h" 6 #include "platform/assert.h"
7 #include "platform/json.h" 7 #include "platform/json.h"
8 #include "platform/utils.h" 8 #include "platform/utils.h"
9 #include "vm/class_finalizer.h" 9 #include "vm/class_finalizer.h"
10 #include "vm/dart_api_impl.h" 10 #include "vm/dart_api_impl.h"
(...skipping 3910 matching lines...) Expand 10 before | Expand all | Expand 10 after
3921 " Expect.equals(true, invocation.isSetter);\n" 3921 " Expect.equals(true, invocation.isSetter);\n"
3922 " Expect.equals(false, invocation.isMethod);\n" 3922 " Expect.equals(false, invocation.isMethod);\n"
3923 " Expect.equals(false, invocation.isGetter);\n" 3923 " Expect.equals(false, invocation.isGetter);\n"
3924 " } else if (name == 'method') {\n" 3924 " } else if (name == 'method') {\n"
3925 " Expect.equals(true, invocation.isMethod);\n" 3925 " Expect.equals(true, invocation.isMethod);\n"
3926 " Expect.equals(false, invocation.isSetter);\n" 3926 " Expect.equals(false, invocation.isSetter);\n"
3927 " Expect.equals(false, invocation.isGetter);\n" 3927 " Expect.equals(false, invocation.isGetter);\n"
3928 " }\n" 3928 " }\n"
3929 " TestClass.fld1 += 1;\n" 3929 " TestClass.fld1 += 1;\n"
3930 " }\n" 3930 " }\n"
3931 " static void testMain() {\n" 3931 " static TestClass testMain() {\n"
3932 " return new TestClass();\n" 3932 " return new TestClass();\n"
3933 " }\n" 3933 " }\n"
3934 "}\n"; 3934 "}\n";
3935 Dart_Handle result; 3935 Dart_Handle result;
3936 Dart_Handle instance; 3936 Dart_Handle instance;
3937 // Create a test library and Load up a test script in it. 3937 // Create a test library and Load up a test script in it.
3938 Dart_Handle lib = TestCase::LoadTestScript(kScriptChars, NULL); 3938 Dart_Handle lib = TestCase::LoadTestScript(kScriptChars, NULL);
3939 Dart_Handle cls = Dart_GetClass(lib, NewString("TestClass")); 3939 Dart_Handle cls = Dart_GetClass(lib, NewString("TestClass"));
3940 EXPECT_VALID(cls); 3940 EXPECT_VALID(cls);
3941 3941
(...skipping 3735 matching lines...) Expand 10 before | Expand all | Expand 10 after
7677 NewString("main"), 7677 NewString("main"),
7678 0, 7678 0,
7679 NULL); 7679 NULL);
7680 int64_t value = 0; 7680 int64_t value = 0;
7681 result = Dart_IntegerToInt64(result, &value); 7681 result = Dart_IntegerToInt64(result, &value);
7682 EXPECT_VALID(result); 7682 EXPECT_VALID(result);
7683 EXPECT_EQ(260, value); 7683 EXPECT_EQ(260, value);
7684 } 7684 }
7685 7685
7686 } // namespace dart 7686 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698