Copy zip-related funcs build_utils -> zip_helpers

Non-android scripts use these helpers, so this moves them
outside of the //build/android directory.

This also modifies the helpers in the following ways:
* Renamed them.
* Added more assert checks about valid paths
* Fixed zip_directory() adding \s instead of /s on windows
* Merged in zipalign logic
* Changed compress_fn -> compress= (was unused)
* Do not call atomic_output from zip_directory()
  * Updated all callers to do so explicitly.


Bug: 1428082
Change-Id: I9ad5df6cc2491efb974bc914ddbcc6d9de2d4657
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4386354
Reviewed-by: Sam Maier <[email protected]>
Commit-Queue: Andrew Grieve <[email protected]>
Owners-Override: Andrew Grieve <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1124879}
diff --git a/build/android/test_runner.pydeps b/build/android/test_runner.pydeps
index 05971d7a..f81b0d49 100644
--- a/build/android/test_runner.pydeps
+++ b/build/android/test_runner.pydeps
@@ -143,12 +143,12 @@
 ../util/lib/results/__init__.py
 ../util/lib/results/result_sink.py
 ../util/lib/results/result_types.py
+../zip_helpers.py
 devil_chromium.py
 gyp/dex.py
 gyp/util/__init__.py
 gyp/util/build_utils.py
 gyp/util/md5_check.py
-gyp/util/zipalign.py
 incremental_install/__init__.py
 incremental_install/installer.py
 pylib/__init__.py