Skip android_platform tests on Windows

The android_platform tests fail on Windows and probably shouldn't be
running there at all, so this change disables them on Windows rather
than trying to fix them.

This also removes a redundant call to PanProjectChecks - this is handled
by the root-level PRESUBMIT.py

This change was tested with this command:

    git cl presubmit --files=third_party\android_platform\*

Bug: 1309977
Change-Id: I87fe89b00f321a2a9059f2f62f8d8de4cdf4a16a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3618878
Reviewed-by: Benjamin Joyce <bjoyce@chromium.org>
Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
Cr-Commit-Position: refs/heads/main@{#998524}
NOKEYCHECK=True
GitOrigin-RevId: 458d31b47bd92049d56469abbd38b66a38eb6292
diff --git a/development/scripts/PRESUBMIT.py b/development/scripts/PRESUBMIT.py
index 6254928..63535e8 100644
--- a/development/scripts/PRESUBMIT.py
+++ b/development/scripts/PRESUBMIT.py
@@ -16,22 +16,19 @@
   output.extend(
     input_api.canned_checks.RunPylint(input_api, output_api, version='2.6'))
 
-  py_tests = input_api.canned_checks.GetUnitTestsRecursively(
-      input_api,
-      output_api,
-      input_api.PresubmitLocalPath(),
-      files_to_check=[r'.+_test\.py$'],
-      files_to_skip=[],
-      run_on_python2=False,
-      run_on_python3=True,
-      skip_shebang_check=True)
+  # These tests fail on Windows and don't need to run there.
+  if not input_api.is_windows:
+    py_tests = input_api.canned_checks.GetUnitTestsRecursively(
+        input_api,
+        output_api,
+        input_api.PresubmitLocalPath(),
+        files_to_check=[r'.+_test\.py$'],
+        files_to_skip=[],
+        run_on_python2=False,
+        run_on_python3=True,
+        skip_shebang_check=True)
 
-  output.extend(input_api.RunTests(py_tests, False))
-
-  if input_api.is_committing:
-    output.extend(
-        input_api.canned_checks.PanProjectChecks(
-            input_api, output_api, owners_check=False))
+    output.extend(input_api.RunTests(py_tests, False))
   return output