diff options
author | Alex Deymo <deymo@google.com> | 2017-09-27 14:28:54 +0200 |
---|---|---|
committer | Alex Deymo <deymo@google.com> | 2017-09-28 19:36:57 +0200 |
commit | fb3b632fdebf18a93e137159c52bc90e4812318f (patch) | |
tree | 6d0cb5374559306bbde716084cfe4b12be2ea119 /Makefile | |
parent | 538a75d13b8061deb99f33c5766542d286563aad (diff) | |
download | bsdiff-fb3b632fdebf18a93e137159c52bc90e4812318f.tar.gz |
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
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -53,6 +53,7 @@ bsdiff_common_unittests := \ bspatch_unittest.cc \ extents_file_unittest.cc \ extents_unittest.cc \ + patch_writer_unittest.cc \ test_utils.cc \ testrunner.cc |