• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *  Copyright (c) 2019 The WebRTC project authors. All Rights Reserved.
3  *
4  *  Use of this source code is governed by a BSD-style license
5  *  that can be found in the LICENSE file in the root of the source
6  *  tree. An additional intellectual property rights grant can be found
7  *  in the file PATENTS.  All contributing project authors may
8  *  be found in the AUTHORS file in the root of the source tree.
9  */
10 
11 #ifndef TEST_TESTSUPPORT_RTC_EXPECT_DEATH_H_
12 #define TEST_TESTSUPPORT_RTC_EXPECT_DEATH_H_
13 
14 #include "test/gtest.h"
15 
16 #if RTC_CHECK_MSG_ENABLED
17 #define RTC_EXPECT_DEATH(statement, regex) EXPECT_DEATH(statement, regex)
18 #else
19 // If RTC_CHECKs messages are disabled we can't validate failure message
20 #define RTC_EXPECT_DEATH(statement, regex) EXPECT_DEATH(statement, "")
21 #endif
22 
23 #endif  // TEST_TESTSUPPORT_RTC_EXPECT_DEATH_H_
24