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

Unified Diff: third_party/pkg/route_hierarchical/test/util/mocks.dart

Issue 1086713003: Remove everything but markdown from third_party (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/pkg/route_hierarchical/test/url_template_test.dart ('k') | third_party/pkg/update.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
- }
-}
« no previous file with comments | « third_party/pkg/route_hierarchical/test/url_template_test.dart ('k') | third_party/pkg/update.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698