| OLD | NEW |
| 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 // Mocks of classes and interfaces that Leg cannot read directly. | 5 // Mocks of classes and interfaces that Leg cannot read directly. |
| 6 | 6 |
| 7 // TODO(ahe): Remove this file. | 7 // TODO(ahe): Remove this file. |
| 8 | 8 |
| 9 class JSSyntaxRegExp implements RegExp { | 9 class JSSyntaxRegExp implements RegExp { |
| 10 JSSyntaxRegExp(String pattern, | 10 JSSyntaxRegExp(String pattern, |
| 11 [bool multiLine = false, | 11 [bool multiLine = false, |
| 12 bool ignoreCase = false]) { | 12 bool ignoreCase = false]) { |
| 13 throw 'JSSyntaxRegExp is not implemented'; | 13 throw 'JSSyntaxRegExp is not implemented'; |
| 14 } | 14 } |
| 15 } | 15 } |
| 16 | 16 |
| 17 class StringBufferImpl { | 17 class StringBufferImpl { |
| 18 StringBufferImpl() { | 18 StringBufferImpl([content]) { |
| 19 throw 'StringBufferImpl is not implemented'; | 19 throw 'StringBufferImpl is not implemented'; |
| 20 } | 20 } |
| 21 } | 21 } |
| 22 | 22 |
| 23 class ReceivePortFactory { | 23 class ReceivePortFactory { |
| 24 factory ReceivePort() { | 24 factory ReceivePort() { |
| 25 throw 'factory ReceivePort is not implemented'; | 25 throw 'factory ReceivePort is not implemented'; |
| 26 } | 26 } |
| 27 | 27 |
| 28 factory ReceivePort.singleShot() { | 28 factory ReceivePort.singleShot() { |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 } | 272 } |
| 273 String twoDigitMinutes = | 273 String twoDigitMinutes = |
| 274 twoDigits(inMinutes.remainder(Duration.MINUTES_PER_HOUR)); | 274 twoDigits(inMinutes.remainder(Duration.MINUTES_PER_HOUR)); |
| 275 String twoDigitSeconds = | 275 String twoDigitSeconds = |
| 276 twoDigits(inSeconds.remainder(Duration.SECONDS_PER_MINUTE)); | 276 twoDigits(inSeconds.remainder(Duration.SECONDS_PER_MINUTE)); |
| 277 String threeDigitMs = | 277 String threeDigitMs = |
| 278 threeDigits(inMilliseconds.remainder(Duration.MILLISECONDS_PER_SECOND)); | 278 threeDigits(inMilliseconds.remainder(Duration.MILLISECONDS_PER_SECOND)); |
| 279 return "${inHours}:${twoDigitMinutes}:${twoDigitSeconds}.${threeDigitMs}"; | 279 return "${inHours}:${twoDigitMinutes}:${twoDigitSeconds}.${threeDigitMs}"; |
| 280 } | 280 } |
| 281 } | 281 } |
| OLD | NEW |