[Fuchsia] Shard Cr-Fuchsia code coverage test suites

Shard test suites that are currently running into OOM issues.
Switch to headless ozone when running code coverage

Bug: 1181465
Change-Id: Ieccb4951e3142f77fd5398b4d96f6c69d810522f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2716513
Auto-Submit: Chong Gu <[email protected]>
Reviewed-by: Brian Sheedy <[email protected]>
Commit-Queue: Chong Gu <[email protected]>
Cr-Commit-Position: refs/heads/master@{#856965}
diff --git a/testing/buildbot/test_suite_exceptions.pyl b/testing/buildbot/test_suite_exceptions.pyl
index 9c37eea..8ec567861 100644
--- a/testing/buildbot/test_suite_exceptions.pyl
+++ b/testing/buildbot/test_suite_exceptions.pyl
@@ -146,6 +146,25 @@
       },
     },
   },
+  'aura_unittests': {
+    'modifications': {
+      'fuchsia-code-coverage': {
+        'args': [
+          # http://crbug.com/1181465
+          '--child-arg=--ozone-platform=headless',
+        ],
+      },
+    },
+  },
+  'base_unittests': {
+    'modifications': {
+      'fuchsia-code-coverage': {
+        'swarming': {
+          'shards': 5,
+        },
+      },
+    },
+  },
   'blink_platform_unittests': {
     'modifications': {
       # TODO(crbug.com/1108121): Remove this filter
@@ -677,6 +696,11 @@
           '--test-launcher-filter-file=../../testing/buildbot/filters/android.emulator.cc_unittests.filter',
         ],
       },
+      'fuchsia-code-coverage': {
+        'swarming': {
+          'shards': 4,
+        },
+      },
     },
   },
   'check_static_initializers': {
@@ -929,6 +953,7 @@
       'Fuchsia ARM64',  # https://crbug.com/961457
       'Fuchsia x64', # https://crbug.com/961457
       'android-code-coverage-native', # crbug/1018431
+      'fuchsia-code-coverage',  # https://crbug.com/961457
       'fuchsia-fyi-arm64-dbg',  # https://crbug.com/961457
       'fuchsia-fyi-arm64-rel',  # https://crbug.com/961457
       'fuchsia-fyi-x64-dbg',  # https://crbug.com/961457
@@ -973,6 +998,16 @@
       },
     },
   },
+  'compositor_unittests': {
+    'modifications': {
+      'fuchsia-code-coverage': {
+        'args': [
+          # http://crbug.com/1181465
+          '--child-arg=--ozone-platform=headless',
+        ],
+      },
+    },
+  },
   'content_browsertests': {
     'remove_from': [
       'CrWinAsan(dll)', # https://crbug.com/935598
@@ -1273,6 +1308,15 @@
       },
     },
   },
+  'gfx_unittests': {
+    'modifications': {
+      'fuchsia-code-coverage': {
+        'swarming': {
+          'shards': 2,
+        },
+      },
+    },
+  },
   'gin_unittests': {
     'remove_from': [
       'ToTLinuxASan',  # https://crbug.com/831667
@@ -1434,6 +1478,15 @@
       'Android FYI Release (Pixel 2)',
     ],
   },
+  'gpu_unittests': {
+    'modifications': {
+      'fuchsia-code-coverage': {
+        'swarming': {
+          'shards': 5,
+        },
+      },
+    },
+  },
   'hardware_accelerated_feature_tests': {
     # TODO(https://crbug.com/850107): Remove the Android FYI Release (Pixel 2)
     # exception once there is enough capacity to run these tests.
@@ -1681,6 +1734,11 @@
           '--test-launcher-filter-file=../../testing/buildbot/filters/android.emulator_p.media_unittests.filter',
         ],
       },
+      'fuchsia-code-coverage': {
+        'swarming': {
+          'shards': 3,
+        },
+      },
     },
   },
   'mojo_unittests': {
@@ -1690,6 +1748,11 @@
           'shards': 5,
         },
       },
+      'fuchsia-code-coverage': {
+        'swarming': {
+          'shards': 2,
+        },
+      },
     },
   },
   'monochrome_public_apk_checker': {
@@ -2331,6 +2394,16 @@
       }
     }
   },
+  'snapshot_unittests': {
+    'modifications': {
+      'fuchsia-code-coverage': {
+        'args': [
+          # http://crbug.com/1181465
+          '--child-arg=--ozone-platform=headless',
+        ],
+      },
+    },
+  },
   'swiftshader_unittests': {
     'remove_from': [
       # Save capacity on the hardware where we have only a few machines.
@@ -2671,6 +2744,12 @@
           '--test-launcher-filter-file=../../testing/buildbot/filters/android.emulator.viz_unittests.filter',
         ],
       },
+      'fuchsia-code-coverage': {
+        'args': [
+          # http://crbug.com/1181465
+          '--child-arg=--ozone-platform=headless',
+        ],
+      },
     },
   },
   'vr_android_unittests': {