From 1f8a8dbfa39d8b50a2465d6b04b5508d799f0d68 Mon Sep 17 00:00:00 2001 From: eguven Date: Fri, 22 Sep 2017 06:27:22 -0700 Subject: [PATCH] Add version number to serialized DownloadAction data ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=169681768 --- .../exoplayer2/offline/ProgressiveDownloadActionTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/core/src/test/java/com/google/android/exoplayer2/offline/ProgressiveDownloadActionTest.java b/library/core/src/test/java/com/google/android/exoplayer2/offline/ProgressiveDownloadActionTest.java index 95dd218092..44fe6c069b 100644 --- a/library/core/src/test/java/com/google/android/exoplayer2/offline/ProgressiveDownloadActionTest.java +++ b/library/core/src/test/java/com/google/android/exoplayer2/offline/ProgressiveDownloadActionTest.java @@ -135,7 +135,8 @@ public class ProgressiveDownloadActionTest { ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray()); DataInputStream input = new DataInputStream(in); - DownloadAction action2 = ProgressiveDownloadAction.DESERIALIZER.readFromStream(input); + DownloadAction action2 = + ProgressiveDownloadAction.DESERIALIZER.readFromStream(action1.getVersion(), input); assertThat(action2).isEqualTo(action1); }