Merge "tests: Split unit tests out of component/applypatch_test.cpp."