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

Side by Side Diff: lib/src/backend/platform_selector.dart

Issue 1717533002: Add new test configuration fields. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: 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 | « doc/package_config.md ('k') | lib/src/runner/configuration.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 'package:boolean_selector/boolean_selector.dart'; 5 import 'package:boolean_selector/boolean_selector.dart';
6 import 'package:source_span/source_span.dart'; 6 import 'package:source_span/source_span.dart';
7 7
8 import 'operating_system.dart'; 8 import 'operating_system.dart';
9 import 'test_platform.dart'; 9 import 'test_platform.dart';
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 } 59 }
60 60
61 /// Returns a new [PlatformSelector] that matches only platforms matched by 61 /// Returns a new [PlatformSelector] that matches only platforms matched by
62 /// both [this] and [other]. 62 /// both [this] and [other].
63 PlatformSelector intersection(PlatformSelector other) { 63 PlatformSelector intersection(PlatformSelector other) {
64 if (other == PlatformSelector.all) return this; 64 if (other == PlatformSelector.all) return this;
65 return new PlatformSelector._(_inner.intersection(other._inner)); 65 return new PlatformSelector._(_inner.intersection(other._inner));
66 } 66 }
67 67
68 String toString() => _inner.toString(); 68 String toString() => _inner.toString();
69
70 bool operator==(other) => other is PlatformSelector && _inner == other._inner;
71
72 int get hashCode => _inner.hashCode;
69 } 73 }
OLDNEW
« no previous file with comments | « doc/package_config.md ('k') | lib/src/runner/configuration.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698