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

Side by Side Diff: samples/simple_todo/simple_todo_service_tests.dart

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 10 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
« no previous file with comments | « samples/simple_todo/simple_todo_main.cc ('k') | samples/stm32f746g-discovery/knight-rider.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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 import 'dart:async' show 5 import 'dart:async' show
6 Future; 6 Future;
7 7
8 import '../../tests/service_tests/service_tests.dart' show 8 import '../../tests/service_tests/service_tests.dart' show
9 BuildSnapshotRule, 9 BuildSnapshotRule,
10 CcRule, 10 CcRule,
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 '$thisDirectory/java/TodoView.java', 85 '$thisDirectory/java/TodoView.java',
86 ]; 86 ];
87 87
88 Future<Null> prepare() async { 88 Future<Null> prepare() async {
89 prepareService(); 89 prepareService();
90 prepareSnapshot(); 90 prepareSnapshot();
91 91
92 if (javaHome.isEmpty) return; 92 if (javaHome.isEmpty) return;
93 93
94 rules.add(new CcRule( 94 rules.add(new CcRule(
95 sharedLibrary: '$outputDirectory/libfletch', 95 sharedLibrary: '$outputDirectory/libdartino',
96 includePaths: [ 96 includePaths: [
97 'include', 97 'include',
98 '$javaHome/include', 98 '$javaHome/include',
99 '$javaHome/include/${isMacOS ? "darwin" : "linux"}', 99 '$javaHome/include/${isMacOS ? "darwin" : "linux"}',
100 outputDirectory, 100 outputDirectory,
101 ], 101 ],
102 sources: [ 102 sources: [
103 '$javaDirectory/jni/fletch_api_wrapper.cc', 103 '$javaDirectory/jni/dartino_api_wrapper.cc',
104 '$javaDirectory/jni/fletch_service_api_wrapper.cc', 104 '$javaDirectory/jni/dartino_service_api_wrapper.cc',
105 '$javaDirectory/jni/${baseName}_wrapper.cc', 105 '$javaDirectory/jni/${baseName}_wrapper.cc',
106 ]..addAll(ccSources))); 106 ]..addAll(ccSources)));
107 107
108 rules.add(new MakeDirectoryRule(classesDirectory)); 108 rules.add(new MakeDirectoryRule(classesDirectory));
109 109
110 rules.add(new JavacRule( 110 rules.add(new JavacRule(
111 warningAsError: false, 111 warningAsError: false,
112 sources: ['$javaDirectory/fletch']..addAll(javaSources), 112 sources: ['$javaDirectory/dartino']..addAll(javaSources),
113 outputDirectory: classesDirectory)); 113 outputDirectory: classesDirectory));
114 114
115 rules.add(new JarRule( 115 rules.add(new JarRule(
116 jarFile, 116 jarFile,
117 sources: ['.'], 117 sources: ['.'],
118 baseDirectory: classesDirectory)); 118 baseDirectory: classesDirectory));
119 119
120 rules.add(new JavaRule( 120 rules.add(new JavaRule(
121 mainClass, 121 mainClass,
122 arguments: [snapshotPath], 122 arguments: [snapshotPath],
123 classpath: [jarFile], 123 classpath: [jarFile],
124 libraryPath: outputDirectory)); 124 libraryPath: outputDirectory));
125 } 125 }
126 } 126 }
127 127
128 final List<ServiceTest> serviceTests = <ServiceTest>[ 128 final List<ServiceTest> serviceTests = <ServiceTest>[
129 new TodoServiceTestCc(), 129 new TodoServiceTestCc(),
130 new TodoServiceTestJava(), 130 new TodoServiceTestJava(),
131 ]; 131 ];
OLDNEW
« no previous file with comments | « samples/simple_todo/simple_todo_main.cc ('k') | samples/stm32f746g-discovery/knight-rider.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698