Generalized mechanism for excluding gtests on platforms, disabled broken tests on mac.

BUG=1268
TEST=vie_auto_test on mac and linux
TBR=mflodman, kjellander

Review URL: https://webrtc-codereview.appspot.com/1027006

git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@3347 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/video_engine/test/auto_test/automated/vie_extended_integration_test.cc b/video_engine/test/auto_test/automated/vie_extended_integration_test.cc
index 7d16db0..c091475 100644
--- a/video_engine/test/auto_test/automated/vie_extended_integration_test.cc
+++ b/video_engine/test/auto_test/automated/vie_extended_integration_test.cc
@@ -8,54 +8,61 @@
  *  be found in the AUTHORS file in the root of the source tree.
  */
 
-/**
- * Runs "extended" integration tests.
- */
-
 #include "gtest/gtest.h"
-#include "legacy_fixture.h"
-#include "vie_autotest.h"
+#include "webrtc/test/testsupport/gtest_disable.h"
+#include "webrtc/video_engine/test/auto_test/automated/legacy_fixture.h"
+#include "webrtc/video_engine/test/auto_test/interface/vie_autotest.h"
 
 namespace {
 
-class ViEExtendedIntegrationTest : public LegacyFixture {
+// TODO(phoglund): These tests are generally broken on mac.
+// http://code.google.com/p/webrtc/issues/detail?id=1268
+class DISABLED_ON_MAC(ViEExtendedIntegrationTest) : public LegacyFixture {
 };
 
-TEST_F(ViEExtendedIntegrationTest, RunsBaseTestWithoutErrors) {
+TEST_F(DISABLED_ON_MAC(ViEExtendedIntegrationTest), RunsBaseTestWithoutErrors) {
   tests_->ViEBaseExtendedTest();
 }
 
 // TODO(phoglund): Crashes on the v4l2loopback camera.
-TEST_F(ViEExtendedIntegrationTest, DISABLED_RunsCaptureTestWithoutErrors) {
+TEST_F(DISABLED_ON_MAC(ViEExtendedIntegrationTest),
+       DISABLED_RunsCaptureTestWithoutErrors) {
   tests_->ViECaptureExtendedTest();
 }
 
-TEST_F(ViEExtendedIntegrationTest, RunsCodecTestWithoutErrors) {
+TEST_F(DISABLED_ON_MAC(ViEExtendedIntegrationTest),
+       RunsCodecTestWithoutErrors) {
   tests_->ViECodecExtendedTest();
 }
 
-TEST_F(ViEExtendedIntegrationTest, RunsEncryptionTestWithoutErrors) {
+TEST_F(DISABLED_ON_MAC(ViEExtendedIntegrationTest),
+       RunsEncryptionTestWithoutErrors) {
   tests_->ViEEncryptionExtendedTest();
 }
 
-TEST_F(ViEExtendedIntegrationTest, RunsFileTestWithoutErrors) {
+TEST_F(DISABLED_ON_MAC(ViEExtendedIntegrationTest),
+       RunsFileTestWithoutErrors) {
   tests_->ViEFileExtendedTest();
 }
 
-TEST_F(ViEExtendedIntegrationTest, RunsImageProcessTestWithoutErrors) {
+TEST_F(DISABLED_ON_MAC(ViEExtendedIntegrationTest),
+       RunsImageProcessTestWithoutErrors) {
   tests_->ViEImageProcessExtendedTest();
 }
 
-TEST_F(ViEExtendedIntegrationTest, RunsNetworkTestWithoutErrors) {
+TEST_F(DISABLED_ON_MAC(ViEExtendedIntegrationTest),
+       RunsNetworkTestWithoutErrors) {
   tests_->ViENetworkExtendedTest();
 }
 
-TEST_F(ViEExtendedIntegrationTest, RunsRenderTestWithoutErrors) {
+TEST_F(DISABLED_ON_MAC(ViEExtendedIntegrationTest),
+       RunsRenderTestWithoutErrors) {
   tests_->ViERenderExtendedTest();
 }
 
-TEST_F(ViEExtendedIntegrationTest, RunsRtpRtcpTestWithoutErrors) {
+TEST_F(DISABLED_ON_MAC(ViEExtendedIntegrationTest),
+       RunsRtpRtcpTestWithoutErrors) {
   tests_->ViERtpRtcpExtendedTest();
 }
 
-} // namespace
+}  // namespace