From e003c5b6dcd4c8529713b2ce1c29a66e3d3a77aa Mon Sep 17 00:00:00 2001 From: eguven Date: Mon, 22 Aug 2016 06:32:00 -0700 Subject: [PATCH] Javadoc for FakeExtractorOutput.assertOutput() ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=130933435 --- .../android/exoplayer2/testutil/FakeExtractorOutput.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/testutils/src/main/java/com/google/android/exoplayer2/testutil/FakeExtractorOutput.java b/testutils/src/main/java/com/google/android/exoplayer2/testutil/FakeExtractorOutput.java index 9915938001..b0ab90789c 100644 --- a/testutils/src/main/java/com/google/android/exoplayer2/testutil/FakeExtractorOutput.java +++ b/testutils/src/main/java/com/google/android/exoplayer2/testutil/FakeExtractorOutput.java @@ -95,6 +95,15 @@ public final class FakeExtractorOutput implements ExtractorOutput, Dumper.Dumpab } } + /** + * Asserts that dump of this {@link FakeExtractorOutput} is equal to expected dump which is read + * from {@code dumpFile}. + * + *

If assertion fails because of an intended change in the output or a new dump file needs to + * be created, set {@link #WRITE_DUMP} flag to true and run the test again. Instead of assertion, + * actual dump will be written to {@code dumpFile}. This new dump file needs to be copied to the + * project, {@code library/src/androidTest/assets} folder manually. + */ public void assertOutput(Instrumentation instrumentation, String dumpFile) throws IOException { String actual = new Dumper().add(this).toString();