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

Unified Diff: tests/service_tests/performance/performance_service_impl.dart

Issue 2035023003: Remove service-compiler related code. (Closed) Base URL: git@github.com:dartino/sdk.git@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: tests/service_tests/performance/performance_service_impl.dart
diff --git a/tests/service_tests/performance/performance_service_impl.dart b/tests/service_tests/performance/performance_service_impl.dart
deleted file mode 100644
index 92397138ed0e50b62b465725b7ec405d91a031b0..0000000000000000000000000000000000000000
--- a/tests/service_tests/performance/performance_service_impl.dart
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE.md file.
-
-import 'dart/performance_service.dart';
-
-class PerformanceServiceImpl implements PerformanceService {
- int echo(int n) => n;
-
- int countTreeNodes(TreeNode node) {
- int sum = 1;
- List<TreeNode> children = node.children;
- for (int i = 0; i < children.length; i++) {
- sum += countTreeNodes(children[i]);
- }
- return sum;
- }
-
- void buildTree(int n, TreeNodeBuilder node) {
- if (n > 1) {
- List<TreeNodeBuilder> children = node.initChildren(2);
- buildTree(n - 1, children[0]);
- buildTree(n - 1, children[1]);
- }
- }
-}
-
-main() {
- var impl = new PerformanceServiceImpl();
- PerformanceService.initialize(impl);
- while (PerformanceService.hasNextEvent()) {
- PerformanceService.handleNextEvent();
- }
-}
« no previous file with comments | « tests/service_tests/performance/performance_service.idl ('k') | tests/service_tests/performance/performance_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698