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

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

Issue 2467113003: Make EfficientLength extend Iterable. (Closed)
Patch Set: Reverted, prepare to reland. Make new test not break web-testing framework. Created 4 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
« no previous file with comments | « runtime/lib/string_patch.dart ('k') | sdk/lib/_internal/js_runtime/lib/collection_patch.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) 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_mirrors_api.h" 5 #include "include/dart_mirrors_api.h"
6 #include "include/dart_tools_api.h" 6 #include "include/dart_tools_api.h"
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/dart_api_impl.h" 8 #include "vm/dart_api_impl.h"
9 #include "vm/lockers.h" 9 #include "vm/lockers.h"
10 #include "vm/unit_test.h" 10 #include "vm/unit_test.h"
(...skipping 2239 matching lines...) Expand 10 before | Expand all | Expand 10 after
2250 } 2250 }
2251 { 2251 {
2252 Dart_Handle super_type = Dart_GetSupertype(Test5_int_type); 2252 Dart_Handle super_type = Dart_GetSupertype(Test5_int_type);
2253 const Type& expected_type = Api::UnwrapTypeHandle(zone, Test4_int_type); 2253 const Type& expected_type = Api::UnwrapTypeHandle(zone, Test4_int_type);
2254 const Type& actual_type = Api::UnwrapTypeHandle(zone, super_type); 2254 const Type& actual_type = Api::UnwrapTypeHandle(zone, super_type);
2255 EXPECT(expected_type.raw() == actual_type.raw()); 2255 EXPECT(expected_type.raw() == actual_type.raw());
2256 } 2256 }
2257 { 2257 {
2258 Dart_Handle set_type = Dart_GetType(core_lib, set_name, 0, NULL); 2258 Dart_Handle set_type = Dart_GetType(core_lib, set_name, 0, NULL);
2259 Dart_Handle super_type = Dart_GetSupertype(set_type); 2259 Dart_Handle super_type = Dart_GetSupertype(set_type);
2260 Dart_Handle super2_type = Dart_GetSupertype(super_type);
2260 Dart_Handle iterable_type = Dart_GetType(core_lib, iterable_name, 0, NULL); 2261 Dart_Handle iterable_type = Dart_GetType(core_lib, iterable_name, 0, NULL);
2261 const Type& expected_type = Api::UnwrapTypeHandle(zone, iterable_type); 2262 const Type& expected_type = Api::UnwrapTypeHandle(zone, iterable_type);
2262 const Type& actual_type = Api::UnwrapTypeHandle(zone, super_type); 2263 const Type& actual_type = Api::UnwrapTypeHandle(zone, super2_type);
2263 EXPECT(expected_type.raw() == actual_type.raw()); 2264 EXPECT(expected_type.raw() == actual_type.raw());
2264 } 2265 }
2265 { 2266 {
2266 Dart_Handle list_type = Dart_GetType(core_lib, list_name, 0, NULL); 2267 Dart_Handle list_type = Dart_GetType(core_lib, list_name, 0, NULL);
2267 Dart_Handle super_type = Dart_GetSupertype(list_type); 2268 Dart_Handle super_type = Dart_GetSupertype(list_type);
2268 EXPECT(!Dart_IsError(super_type)); 2269 EXPECT(!Dart_IsError(super_type));
2269 super_type = Dart_GetSupertype(super_type); 2270 super_type = Dart_GetSupertype(super_type);
2270 EXPECT(!Dart_IsError(super_type)); 2271 EXPECT(!Dart_IsError(super_type));
2271 EXPECT(super_type == Dart_Null()); 2272 EXPECT(super_type == Dart_Null());
2272 } 2273 }
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
2360 " null, 5, 17, 5, 18, 9, 19, 12," 2361 " null, 5, 17, 5, 18, 9, 19, 12,"
2361 " null, 6, 21, 1," 2362 " null, 6, 21, 1,"
2362 " null, 8, 24, 1, 25, 5, 26, 6, 27, 8," 2363 " null, 8, 24, 1, 25, 5, 26, 6, 27, 8,"
2363 " null, 9, 29, 1]", 2364 " null, 9, 29, 1]",
2364 tokens_cstr); 2365 tokens_cstr);
2365 } 2366 }
2366 2367
2367 #endif 2368 #endif
2368 2369
2369 } // namespace dart 2370 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/lib/string_patch.dart ('k') | sdk/lib/_internal/js_runtime/lib/collection_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698