Encode data for compression + add initial tests

Bug: webrtc:13607
Change-Id: I3bbec5558e676ca45125fad3fdbd10cc47c84601
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/251390
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Christoffer Jansson <jansson@google.com>
Cr-Commit-Position: refs/heads/main@{#36003}
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index ed4e141..b83f262 100755
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -829,6 +829,12 @@
   ]
 
   tests = []
+  skipped_tests = [
+      # This test should be run manually after webrtc_dashboard_upload target
+      # has been built.
+      r'catapult_uploader_test\.py$'
+  ]
+
   for directory in test_directories:
     tests.extend(
         input_api.canned_checks.GetUnitTestsInDirectory(
@@ -836,6 +842,7 @@
             output_api,
             directory,
             files_to_check=[r'.+_test\.py$'],
+            files_to_skip=skipped_tests,
             run_on_python2=False))
   return input_api.RunTests(tests, parallel=True)