From be9f351f36afe7b29ccb78937720184747b90ee0 Mon Sep 17 00:00:00 2001
From: Chidera Olibie <colibie@google.com>
Date: Wed, 9 Aug 2023 09:50:36 +0000
Subject: [PATCH] [Cronet] NetHttpCoverageTests presubmit SLO fixes

- Adds NetHttpCoverageTests to postsubmit. This would allow us
to run tests with @SkipPresubmit in post submit.
- Don't jarjar com.android.testutil so that the annotation can
still be found by the testrunner.

Bug: b/293843426
Test: th
Change-Id: I9e792d338515acba798092bbc4c615aef2cac47a
---
 Cronet/tests/mts/jarjar_excludes.txt | 2 ++
 TEST_MAPPING                         | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/Cronet/tests/mts/jarjar_excludes.txt b/Cronet/tests/mts/jarjar_excludes.txt
index e8fd39b3d4..a0ce5c2917 100644
--- a/Cronet/tests/mts/jarjar_excludes.txt
+++ b/Cronet/tests/mts/jarjar_excludes.txt
@@ -1,3 +1,5 @@
+# Exclude some test prefixes, as they can't be found after being jarjared.
+com\.android\.testutils\..+
 # jarjar-gen can't handle some kotlin object expression, exclude packages that include them
 androidx\..+
 kotlin\.test\..+
diff --git a/TEST_MAPPING b/TEST_MAPPING
index 76e4af8f8f..d33453c264 100644
--- a/TEST_MAPPING
+++ b/TEST_MAPPING
@@ -140,6 +140,9 @@
     },
     {
       "name": "FrameworksNetTests"
+    },
+    {
+      "name": "NetHttpCoverageTests"
     }
   ],
   "mainline-presubmit": [
-- 
GitLab