| // Copyright (c) 2019, 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 com.android.tools.r8.references.ClassReference; |
| import com.android.tools.r8.references.Reference; |
| import com.android.tools.r8.utils.ListUtils; |
| import java.util.function.Consumer; |
| public class GenerateMainDexListRunResult |
| extends SingleTestRunResult<GenerateMainDexListRunResult> { |
| List<String> mainDexList; |
| public GenerateMainDexListRunResult(List<String> mainDexList, TestState state) { |
| this.mainDexList = mainDexList; |
| public List<ClassReference> getMainDexList() { |
| assert entry.endsWith(".class"); |
| String binaryName = entry.substring(0, entry.length() - ".class".length()); |
| return Reference.classFromBinaryName(binaryName); |
| public GenerateMainDexListRunResult inspectDiagnosticMessages( |
| Consumer<TestDiagnosticMessages> consumer) { |
| consumer.accept(state.getDiagnosticsMessages()); |
| protected GenerateMainDexListRunResult self() { |