| OLD | NEW |
| 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 library unittest.backend.operating_system; | 5 library test.backend.operating_system; |
| 6 | 6 |
| 7 /// An enum of all operating systems supported by Dart. | 7 /// An enum of all operating systems supported by Dart. |
| 8 /// | 8 /// |
| 9 /// This is used for selecting which operating systems a test can run on. Even | 9 /// This is used for selecting which operating systems a test can run on. Even |
| 10 /// for browser tests, this indicates the operating system of the machine | 10 /// for browser tests, this indicates the operating system of the machine |
| 11 /// running the test runner. | 11 /// running the test runner. |
| 12 class OperatingSystem { | 12 class OperatingSystem { |
| 13 /// Microsoft Windows. | 13 /// Microsoft Windows. |
| 14 static const windows = const OperatingSystem._("windows"); | 14 static const windows = const OperatingSystem._("windows"); |
| 15 | 15 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 /// The name of the operating system. | 57 /// The name of the operating system. |
| 58 final String name; | 58 final String name; |
| 59 | 59 |
| 60 /// Whether this is a POSIX-ish operating system. | 60 /// Whether this is a POSIX-ish operating system. |
| 61 bool get isPosix => this != windows && this != none; | 61 bool get isPosix => this != windows && this != none; |
| 62 | 62 |
| 63 const OperatingSystem._(this.name); | 63 const OperatingSystem._(this.name); |
| 64 | 64 |
| 65 String toString() => name; | 65 String toString() => name; |
| 66 } | 66 } |
| OLD | NEW |