Disable flaky tests on mac perf bot

Bug: webrtc:9840
Change-Id: Ie95fdb7bc698604a85ad56242ba092c36a99002e
Reviewed-on: https://webrtc-review.googlesource.com/c/104801
Reviewed-by: Erik Språng <sprang@webrtc.org>
Commit-Queue: Ilya Nikolaevskiy <ilnik@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25080}
diff --git a/video/full_stack_tests.cc b/video/full_stack_tests.cc
index e4a7a67..21a8e62 100644
--- a/video/full_stack_tests.cc
+++ b/video/full_stack_tests.cc
@@ -47,8 +47,6 @@
 
 namespace {
 static const int kFullStackTestDurationSecs = 45;
-const char kScreenshareSimulcastExperiment[] =
-    "WebRTC-SimulcastScreenshare/Enabled/";
 const char kPacerPushBackExperiment[] =
     "WebRTC-PacerPushbackExperiment/Enabled/";
 
@@ -642,6 +640,11 @@
   fixture->RunWithAnalyzer(screenshare);
 }
 
+// TODO(bugs.webrtc.org/9840): Investigate why is this test flaky on MAC.
+#if !defined(WEBRTC_MAC)
+const char kScreenshareSimulcastExperiment[] =
+    "WebRTC-SimulcastScreenshare/Enabled/";
+
 TEST(FullStackTest, ScreenshareSlidesVP8_3TL_Simulcast) {
   auto fixture = CreateVideoQualityTestFixture();
   test::ScopedFieldTrials field_trial(kScreenshareSimulcastExperiment);
@@ -670,6 +673,7 @@
       false};
   fixture->RunWithAnalyzer(screenshare);
 }
+#endif  // !defined(WEBRTC_MAC)
 
 TEST(FullStackTest, ScreenshareSlidesVP8_2TL_Scroll) {
   auto fixture = CreateVideoQualityTestFixture();
@@ -1104,7 +1108,8 @@
 class DualStreamsTest : public ::testing::TestWithParam<int> {};
 
 // Disable dual video test on mobile device becuase it's too heavy.
-#if !defined(WEBRTC_ANDROID) && !defined(WEBRTC_IOS)
+// TODO(bugs.webrtc.org/9840): Investigate why is this test flaky on MAC.
+#if !defined(WEBRTC_ANDROID) && !defined(WEBRTC_IOS) && !defined(WEBRTC_MAC)
 TEST_P(DualStreamsTest,
        ModeratelyRestricted_SlidesVp8_3TL_Simulcast_Video_Simulcast_High) {
   test::ScopedFieldTrials field_trial(
@@ -1168,7 +1173,8 @@
   auto fixture = CreateVideoQualityTestFixture();
   fixture->RunWithAnalyzer(dual_streams);
 }
-#endif  // !defined(WEBRTC_ANDROID) && !defined(WEBRTC_IOS)
+#endif  // !defined(WEBRTC_ANDROID) && !defined(WEBRTC_IOS) &&
+        // !defined(WEBRTC_MAC)
 
 TEST_P(DualStreamsTest, Conference_Restricted) {
   test::ScopedFieldTrials field_trial(