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

Unified Diff: dart/compiler/javatests/com/google/dart/compiler/DartSourceTest.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/DartSourceTest.java
diff --git a/dart/compiler/javatests/com/google/dart/compiler/DartSourceTest.java b/dart/compiler/javatests/com/google/dart/compiler/DartSourceTest.java
deleted file mode 100644
index bbb27fd162f18e0e68643ce7500899a3f443d7d3..0000000000000000000000000000000000000000
--- a/dart/compiler/javatests/com/google/dart/compiler/DartSourceTest.java
+++ /dev/null
@@ -1,52 +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;
-
-import java.io.Reader;
-import java.io.StringReader;
-import java.net.URL;
-
-public class DartSourceTest extends SourceTest implements DartSource {
- private final String path;
- private final String src;
- private final LibrarySource lib;
-
- public DartSourceTest(Class<?> base, String path, LibrarySource lib) {
- super(path);
-
- this.path = path;
- this.lib = lib;
- URL url = CompilerTestCase.inputUrlFor(base, path);
- src = CompilerTestCase.readUrl(url);
- }
-
- public DartSourceTest(String path, String source, LibrarySource lib) {
- super(path + ".dart");
-
- this.path = path;
- this.src = source;
- this.lib = lib;
- }
-
- @Override
- public LibrarySource getLibrary() {
- return lib;
- }
-
- @Override
- public String getName() {
- return path;
- }
-
- @Override
- public Reader getSourceReader() {
- return new StringReader(src);
- }
-
- @Override
- public String getRelativePath() {
- return path;
- }
-}

Powered by Google App Engine
This is Rietveld 408576698