blob: e07b7767a25bbfe3d2d02aa3b6b7aa5bbd8b464e [file] [log] [blame]
// Copyright (c) 2020, 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.retrace;
import com.android.tools.r8.TestDiagnosticMessagesImpl;
import com.android.tools.r8.retrace.mappings.FieldsWithSameMinifiedNameMapping;
import com.android.tools.r8.retrace.mappings.MappingForTest;
import java.util.function.Consumer;
import org.junit.Test;
public class RetraceFieldTests {
@Test
public void testFieldsWithSameMinifiedName() {
FieldsWithSameMinifiedNameMapping mapping = new FieldsWithSameMinifiedNameMapping();
runRetraceTest(mapping, mapping::inspect);
}
private void runRetraceTest(MappingForTest mappingForTest, Consumer<Retracer> inspection) {
inspection.accept(
Retracer.createDefault(
ProguardMapProducer.fromString(mappingForTest.mapping()),
new TestDiagnosticMessagesImpl()));
}
}