1b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org/*
2b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org *  Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org *
4b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org *  Use of this source code is governed by a BSD-style license
5b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org *  that can be found in the LICENSE file in the root of the source
6b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org *  tree. An additional intellectual property rights grant can be found
7b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org *  in the file PATENTS.  All contributing project authors may
8b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org *  be found in the AUTHORS file in the root of the source tree.
9b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org */
10b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org#ifndef TEST_TESTSUPPORT_INCLUDE_GTEST_DISABLE_H_
11b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org#define TEST_TESTSUPPORT_INCLUDE_GTEST_DISABLE_H_
12b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org
13b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org// Helper macros for platform disables. These can be chained. Example use:
14b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org// TEST_F(ViEStandardIntegrationTest,
15b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org//        DISABLED_ON_LINUX(RunsBaseTestWithoutErrors)) {  // ...
16b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org//
17b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org// Or, you can disable a whole test class by wrapping all mentions of the test
18b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org// class name inside one of these macros.
19b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org//
20b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org// The platform #defines we are looking at here are set by the build system.
21b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org#ifdef WEBRTC_LINUX
22b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org#define DISABLED_ON_LINUX(test) DISABLED_##test
23b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org#else
24b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org#define DISABLED_ON_LINUX(test) test
25b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org#endif
26b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org
27b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org#ifdef WEBRTC_MAC
28b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org#define DISABLED_ON_MAC(test) DISABLED_##test
29b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org#else
30b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org#define DISABLED_ON_MAC(test) test
31b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org#endif
32b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org
33b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org#ifdef _WIN32
34b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org#define DISABLED_ON_WIN(test) DISABLED_##test
35b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org#else
36b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org#define DISABLED_ON_WIN(test) test
37b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org#endif
38b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org
397537dde7698d151f5c50b5f160e4ed28347b0c90henrike@webrtc.org#ifdef WEBRTC_ANDROID
407537dde7698d151f5c50b5f160e4ed28347b0c90henrike@webrtc.org#define DISABLED_ON_ANDROID(test) DISABLED_##test
417537dde7698d151f5c50b5f160e4ed28347b0c90henrike@webrtc.org#else
427537dde7698d151f5c50b5f160e4ed28347b0c90henrike@webrtc.org#define DISABLED_ON_ANDROID(test) test
437537dde7698d151f5c50b5f160e4ed28347b0c90henrike@webrtc.org#endif
447537dde7698d151f5c50b5f160e4ed28347b0c90henrike@webrtc.org
45b790741419ee844ae75d0abed27b8e4f0f0f1598phoglund@webrtc.org#endif  // TEST_TESTSUPPORT_INCLUDE_GTEST_DISABLE_H_
46