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@3347 4adac7df-926f-26a2-2b94-8c16560cd09d
40 lines
1.3 KiB
C
40 lines
1.3 KiB
C
/*
|
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
#ifndef TEST_TESTSUPPORT_INCLUDE_GTEST_DISABLE_H_
|
|
#define TEST_TESTSUPPORT_INCLUDE_GTEST_DISABLE_H_
|
|
|
|
// Helper macros for platform disables. These can be chained. Example use:
|
|
// TEST_F(ViEStandardIntegrationTest,
|
|
// DISABLED_ON_LINUX(RunsBaseTestWithoutErrors)) { // ...
|
|
//
|
|
// Or, you can disable a whole test class by wrapping all mentions of the test
|
|
// class name inside one of these macros.
|
|
//
|
|
// The platform #defines we are looking at here are set by the build system.
|
|
#ifdef WEBRTC_LINUX
|
|
#define DISABLED_ON_LINUX(test) DISABLED_##test
|
|
#else
|
|
#define DISABLED_ON_LINUX(test) test
|
|
#endif
|
|
|
|
#ifdef WEBRTC_MAC
|
|
#define DISABLED_ON_MAC(test) DISABLED_##test
|
|
#else
|
|
#define DISABLED_ON_MAC(test) test
|
|
#endif
|
|
|
|
#ifdef _WIN32
|
|
#define DISABLED_ON_WIN(test) DISABLED_##test
|
|
#else
|
|
#define DISABLED_ON_WIN(test) test
|
|
#endif
|
|
|
|
#endif // TEST_TESTSUPPORT_INCLUDE_GTEST_DISABLE_H_
|