Add version number to serialized DownloadAction data

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=169681768
This commit is contained in:
eguven 2017-09-22 06:27:22 -07:00 committed by Oliver Woodman
parent 4fb18453e1
commit 1f8a8dbfa3

View File

@ -135,7 +135,8 @@ public class ProgressiveDownloadActionTest {
ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray()); ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray());
DataInputStream input = new DataInputStream(in); DataInputStream input = new DataInputStream(in);
DownloadAction action2 = ProgressiveDownloadAction.DESERIALIZER.readFromStream(input); DownloadAction action2 =
ProgressiveDownloadAction.DESERIALIZER.readFromStream(action1.getVersion(), input);
assertThat(action2).isEqualTo(action1); assertThat(action2).isEqualTo(action1);
} }