Move some test filters from vendor to chromecast_tests.gyp.

Those filters are generic to non-Android ARM platforms, and should be
available to all products.

BUG=

Review URL: https://codereview.chromium.org/986673003

Cr-Commit-Position: refs/heads/master@{#319771}
diff --git a/chromecast/chromecast_tests.gypi b/chromecast/chromecast_tests.gypi
index 200d3cd32..a3171b39 100644
--- a/chromecast/chromecast_tests.gypi
+++ b/chromecast/chromecast_tests.gypi
@@ -38,14 +38,58 @@
         '../ui/base/ui_base_tests.gyp:ui_base_unittests',
         '../url/url.gyp:url_unittests',
       ],
-      'variables': {
-        'filters': [
-          # Disable OutOfMemoryDeathTest.ViaSharedLibraries due to gTrusty eglibc incompatibility
-          # See: crbug/428211
-          'base_unittests --gtest_filter=-OutOfMemoryDeathTest.ViaSharedLibraries',
-        ],
-      },
       'conditions': [
+        ['target_arch=="arm" and OS!="android"', {
+          'variables': {
+            'filters': [
+              # Run net_unittests first to avoid random failures due to slow python startup
+              # KeygenHandlerTest.SmokeTest and KeygenHandlerTest.ConcurrencyTest fail due to
+              # readonly certdb (b/8153161)
+              # Disable EndToEndTests/EndToEndTest (b/19100148)
+             'net_unittests --gtest_filter=-KeygenHandlerTest.SmokeTest:KeygenHandlerTest.ConcurrencyTest:EndToEndTests/EndToEndTest.*',
+              # Disable OutOfMemoryDeathTest.ViaSharedLibraries due to gTrusty eglibc incompatibility (crbug/428211)
+              # Disable ProcessMetricsTest.GetNumberOfThreads (b/15610509)
+              # Disable ProcessUtilTest.* (need to define OS_ANDROID)
+              # Disable StackContainer.BufferAlignment (don't support 16-byte alignment)
+              # Disable SystemMetrics2Test.GetSystemMemoryInfo (buffers>0 can't be guaranteed)
+              'base_unittests --gtest_filter=-OutOfMemoryDeathTest.ViaSharedLibraries:ProcessMetricsTest.GetNumberOfThreads:ProcessUtilTest.*:StackContainer.BufferAlignment:SystemMetrics2Test.GetSystemMemoryInfo',
+              # DesktopCaptureDeviceTest.*: No capture device on Eureka
+              # Disable PepperGamepadHostTest.WaitForReply (pepper not supported on Eureka)
+              # Disable GpuDataManagerImplPrivateTest.SetGLStrings and
+              # RenderWidgetHostTest.Background because we disable the blacklist to enable WebGL (b/16142554)
+              'content_unittests --gtest_filter=-DOMStorageDatabaseTest.TestCanOpenAndReadWebCoreDatabase:DesktopCaptureDeviceTest.Capture:GamepadProviderTest.PollingAccess:GpuDataManagerImplPrivateTest.SetGLStrings:PepperGamepadHostTest.WaitForReply:RenderWidgetHostTest.Background',
+              # Disable VP9 related tests (b/18593324)
+              #   PipelineIntegrationTest.BasicPlayback_MediaSource_VP9_WebM
+              #   PipelineIntegrationTest.BasicPlayback_VideoOnly_VP9_WebM
+              #   PipelineIntegrationTest.BasicPlayback_VP9*
+              #   PipelineIntegrationTest.P444_VP9_WebM
+              # Disable VP8A tests (b/18593324)
+              #   PipelineIntegrationTest.BasicPlayback_VP8A*
+              # Disable OpusAudioDecoderTest/AudioDecoderTest.ProduceAudioSamples/0 (unit
+              # test fails when Opus decoder uses fixed-point)
+              # Due to b/16456550, disable the following four test cases:
+              #   AudioOutputControllerTest.PlayDivertSwitchDeviceRevertClose
+              #   AudioOutputControllerTest.PlaySwitchDeviceClose
+              #   AudioStreamHandlerTest.Play
+              #   SoundsManagerTest.Play
+              # Disable AudioStreamHandlerTest.ConsecutivePlayRequests (b/16539293)
+              'media_unittests --gtest_filter=-AudioOutputControllerTest.PlayDivertSwitchDeviceRevertClose:AudioOutputControllerTest.PlaySwitchDeviceClose:AudioStreamHandlerTest.Play:AudioStreamHandlerTest.ConsecutivePlayRequests:PipelineIntegrationTest.BasicPlayback_MediaSource_VP9_WebM:PipelineIntegrationTest.BasicPlayback_VideoOnly_VP9_WebM:PipelineIntegrationTest.BasicPlayback_VP9*:PipelineIntegrationTest.P444_VP9_WebM:PipelineIntegrationTest.BasicPlayback_VP8A*:OpusAudioDecoderTest/AudioDecoderTest.ProduceAudioSamples/0:SoundsManagerTest.Play',
+              'sync_unit_tests --gtest_filter=-SyncHttpBridgeTest.*',
+              # DoAppendUTF8Invalid fails because of dcheck_always_on flag in Eng builds
+              'url_unittests --gtest_filter=-URLCanonTest.DoAppendUTF8Invalid',
+            ],
+          },
+        }, { # else "x86" or "android"
+          'variables': {
+            'filters': [
+              # Disable OutOfMemoryDeathTest.ViaSharedLibraries due to gTrusty eglibc incompatibility
+              # See: crbug/428211
+              'base_unittests --gtest_filter=-OutOfMemoryDeathTest.ViaSharedLibraries',
+              # Disable PipelineIntegrationTest.BasicPlayback_MediaSource_VP9_WebM (not supported)
+              'media_unittests --gtest_filter=-PipelineIntegrationTest.BasicPlayback_MediaSource_VP9_WebM',
+            ],
+          }
+        }],
         ['disable_display==0', {
           'dependencies': [
             '../gpu/gpu.gyp:gpu_unittests',