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 test.backend.test_platform; | |
6 | |
7 // TODO(nweiz): support pluggable platforms. | 5 // TODO(nweiz): support pluggable platforms. |
8 /// An enum of all platforms on which tests can run. | 6 /// An enum of all platforms on which tests can run. |
9 class TestPlatform { | 7 class TestPlatform { |
10 // When adding new platforms, be sure to update the baseline and derived | 8 // When adding new platforms, be sure to update the baseline and derived |
11 // variable tests in test/backend/platform_selector/evaluate_test. | 9 // variable tests in test/backend/platform_selector/evaluate_test. |
12 | 10 |
13 /// The command-line Dart VM. | 11 /// The command-line Dart VM. |
14 static const TestPlatform vm = | 12 static const TestPlatform vm = |
15 const TestPlatform._("VM", "vm", isDartVM: true); | 13 const TestPlatform._("VM", "vm", isDartVM: true); |
16 | 14 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 82 |
85 /// Whether this platform has no visible window. | 83 /// Whether this platform has no visible window. |
86 final bool isHeadless; | 84 final bool isHeadless; |
87 | 85 |
88 const TestPlatform._(this.name, this.identifier, {this.isDartVM: false, | 86 const TestPlatform._(this.name, this.identifier, {this.isDartVM: false, |
89 this.isBrowser: false, this.isJS: false, this.isBlink: false, | 87 this.isBrowser: false, this.isJS: false, this.isBlink: false, |
90 this.isHeadless: false}); | 88 this.isHeadless: false}); |
91 | 89 |
92 String toString() => name; | 90 String toString() => name; |
93 } | 91 } |
OLD | NEW |