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

Unified Diff: dart/compiler/javatests/com/google/dart/compiler/resolver/MockLibraryUnit.java

Issue 20722006: Removed compiler/ directory from repository (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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
Index: dart/compiler/javatests/com/google/dart/compiler/resolver/MockLibraryUnit.java
diff --git a/dart/compiler/javatests/com/google/dart/compiler/resolver/MockLibraryUnit.java b/dart/compiler/javatests/com/google/dart/compiler/resolver/MockLibraryUnit.java
deleted file mode 100644
index 37bec076cb02980054b842e9dd30376b0c6c567b..0000000000000000000000000000000000000000
--- a/dart/compiler/javatests/com/google/dart/compiler/resolver/MockLibraryUnit.java
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright (c) 2011, 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.
-package com.google.dart.compiler.resolver;
-
-import com.google.dart.compiler.LibrarySource;
-import com.google.dart.compiler.MockLibrarySource;
-import com.google.dart.compiler.ast.DartUnit;
-import com.google.dart.compiler.ast.LibraryUnit;
-
-/**
- * Testing support for {@link LibraryUnit}.
- */
-public final class MockLibraryUnit {
- /**
- * @return the mock {@link LibraryUnit}.
- */
- public static LibraryUnit create() {
- LibrarySource librarySource = new MockLibrarySource();
- return new LibraryUnit(librarySource);
- }
-
- /**
- * Creates the mock {@link LibraryUnit} and sets it for given {@link DartUnit}.
- *
- * @return the mock {@link LibraryUnit}.
- */
- public static LibraryUnit create(DartUnit unit) {
- LibraryUnit libraryUnit = create();
- unit.setLibrary(libraryUnit);
- return libraryUnit;
- }
-}

Powered by Google App Engine
This is Rietveld 408576698