blob: 99aa584ea1f71ae4f63586ba9825538f1f9be712 [file] [log] [blame]
// 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.retrace.stacktraces;
import static org.junit.Assert.fail;
import java.util.Arrays;
import java.util.List;
public class NullStackTrace implements StackTraceForTest {
@Override
public List<String> obfuscatedStackTrace() {
return Arrays.asList(
"a.b.c: Problem when compiling program",
" at r8.main(App:800)",
null,
" at r8.retrace(App:184)",
" ... 7 more");
}
@Override
public String mapping() {
return "foo.bar.baz -> a.b.c:";
}
@Override
public List<String> retracedStackTrace() {
// The obfuscated stack trace should never parse because of the null-line.
fail();
return null;
}
@Override
public int expectedWarnings() {
return 0;
}
}