Index: third_party/pkg/route_hierarchical/test/util/mocks.dart |
diff --git a/third_party/pkg/route_hierarchical/test/util/mocks.dart b/third_party/pkg/route_hierarchical/test/util/mocks.dart |
deleted file mode 100644 |
index 41191e5f0135968cd52b71e1831cc5181b9164ef..0000000000000000000000000000000000000000 |
--- a/third_party/pkg/route_hierarchical/test/util/mocks.dart |
+++ /dev/null |
@@ -1,36 +0,0 @@ |
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
-library route.test_mocks; |
- |
-import 'dart:html'; |
-import 'package:mock/mock.dart'; |
- |
-class MockWindow extends Mock implements Window { |
- final history = new MockHistory(); |
- final location = new MockLocation(); |
- final document = new MockDocument(); |
-} |
- |
-class MockHistory extends Mock implements History { |
- //TODO(pavelgj): ugly hack for making tests run in dart2js |
- void pushState(Object data, String title, [String url]) { |
- log.add(new LogEntry(name, 'pushState', [data, title, url], Action.IGNORE)); |
- } |
- |
- //TODO(pavelgj): ugly hack for making tests run in dart2js |
- void replaceState(Object data, String title, [String url]) { |
- log.add(new LogEntry(name, 'replaceState', [data, title, url], Action.IGNORE)); |
- } |
-} |
- |
-class MockLocation extends Mock implements Location { |
-} |
- |
-class MockDocument extends Mock implements HtmlDocument { |
- //TODO(pavelgj): ugly hack for making tests run in dart2js |
- set title(String title) { |
- log.add(new LogEntry(name, '=title', [title], Action.IGNORE)); |
- } |
-} |