| commit | fb3b632fdebf18a93e137159c52bc90e4812318f | [log] [tgz] |
|---|---|---|
| author | Alex Deymo <deymo@google.com> | Wed Sep 27 14:28:54 2017 +0200 |
| committer | Alex Deymo <deymo@google.com> | Thu Sep 28 19:36:57 2017 +0200 |
| tree | 6d0cb5374559306bbde716084cfe4b12be2ea119 | |
| parent | 538a75d13b8061deb99f33c5766542d286563aad [diff] |
Add unittest for the PatchWriter. Split the unittest logic between bsdiff() function and the PatchWriter. This patch now tests individually the PatchWriter logic that writes to disk and the bsdiff() logic to create patches in the same very simple cases. We also update the Android.bp file to only pass -DBSDIFF_TARGET_UNITTEST when building for the target. Bug: 34220646 Test: ran unittests. Change-Id: I9350157ee4a0b5a617f44bb187bd7652f6d6f017