blob: 42d3c47008ebc45deaa692c63d89d94891683111 [file] [log] [blame]
// Copyright (c) 2017, the R8 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.android.tools.r8;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
public class D8NonLazyRunExamplesAndroidOTest
extends D8IncrementalRunExamplesAndroidOTest {
class D8LazyTestRunner extends D8IncrementalTestRunner {
D8LazyTestRunner(String testName, String packageName, String mainClass) {
super(testName, packageName, mainClass);
}
@Override
void addClasspathReference(Path testJarFile, D8Command.Builder builder) throws IOException {
builder.addClasspathFiles(testJarFile);
}
@Override
void addLibraryReference(D8Command.Builder builder, Path location) throws IOException {
builder.addLibraryFiles(Paths.get(ToolHelper.getAndroidJar(builder.getMinApiLevel())));
}
}
@Override
D8IncrementalTestRunner test(String testName, String packageName, String mainClass) {
return new D8LazyTestRunner(testName, packageName, mainClass);
}
}