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

Side by Side Diff: pkg/watcher/test/utils.dart

Issue 140013002: Take a broader approach to filtering out bogus Mac OS watcher events. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « pkg/watcher/lib/src/directory_watcher/mac_os.dart ('k') | no next file » | 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) 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 library watcher.test.utils; 5 library watcher.test.utils;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection';
9 import 'dart:io'; 8 import 'dart:io';
10 9
11 import 'package:path/path.dart' as p; 10 import 'package:path/path.dart' as p;
12 import 'package:scheduled_test/scheduled_stream.dart'; 11 import 'package:scheduled_test/scheduled_stream.dart';
13 import 'package:scheduled_test/scheduled_test.dart'; 12 import 'package:scheduled_test/scheduled_test.dart';
14 import 'package:unittest/compact_vm_config.dart'; 13 import 'package:unittest/compact_vm_config.dart';
15 import 'package:watcher/watcher.dart'; 14 import 'package:watcher/watcher.dart';
16 import 'package:watcher/src/stat.dart'; 15 import 'package:watcher/src/stat.dart';
17 import 'package:watcher/src/utils.dart'; 16 import 'package:watcher/src/utils.dart';
18 17
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 var results = new Set(); 385 var results = new Set();
387 for (var i = 0; i < limit; i++) { 386 for (var i = 0; i < limit; i++) {
388 for (var j = 0; j < limit; j++) { 387 for (var j = 0; j < limit; j++) {
389 for (var k = 0; k < limit; k++) { 388 for (var k = 0; k < limit; k++) {
390 results.add(callback(i, j, k)); 389 results.add(callback(i, j, k));
391 } 390 }
392 } 391 }
393 } 392 }
394 return results; 393 return results;
395 } 394 }
OLDNEW
« no previous file with comments | « pkg/watcher/lib/src/directory_watcher/mac_os.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698