31 lines
987 B
C
Raw Permalink Normal View History

/*
* Copyright (c) 2016 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_GTEST_H_
#define TEST_GTEST_H_
#include "rtc_base/ignore_wundef.h"
RTC_PUSH_IGNORING_WUNDEF()
// IWYU pragma: begin_exports
Reland "Adding gtest-spi.h in webrtc/test/gtest.h" This reverts commit 27e8a3e223098a023c3b2a0cb3c3ee9268b1cc63. Reason for revert: A CL to make downstream projects compatible has landend. Original change's description: > Revert "Adding gtest-spi.h in webrtc/test/gtest.h" > > This reverts commit 68f4904ac972fc75e81b642da4d2f46efe79071b. > > Reason for revert: Breaks downstream projects. > > Original change's description: > > Adding gtest-spi.h in webrtc/test/gtest.h > > > > The additional include is needed in order to use EXPECT_NONFATAL_FAILURE() > > in unit tests. > > > > Bug: webrtc:8948 > > Change-Id: If5b9ceb89a3a36480657d094cfabc81c9b0e15b7 > > Reviewed-on: https://webrtc-review.googlesource.com/58096 > > Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> > > Reviewed-by: Patrik Höglund <phoglund@webrtc.org> > > Commit-Queue: Alessio Bazzica <alessiob@webrtc.org> > > Cr-Commit-Position: refs/heads/master@{#22227} > > TBR=phoglund@webrtc.org,mbonadei@webrtc.org,alessiob@webrtc.org > > Change-Id: Id74c6563e1b8ac637667b5fb8777bbd6b7c8f5d0 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Bug: webrtc:8948 > Reviewed-on: https://webrtc-review.googlesource.com/58881 > Reviewed-by: Philip Eliasson <philipel@webrtc.org> > Commit-Queue: Philip Eliasson <philipel@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#22232} TBR=phoglund@webrtc.org,mbonadei@webrtc.org,alessiob@webrtc.org,philipel@webrtc.org # Not skipping CQ checks because original CL landed > 1 day ago. Bug: webrtc:8948 Change-Id: Ib8072ab3d508ae82f557306f3519c5bb00b37b25 Reviewed-on: https://webrtc-review.googlesource.com/66840 Reviewed-by: Alessio Bazzica <alessiob@webrtc.org> Reviewed-by: Patrik Höglund <phoglund@webrtc.org> Commit-Queue: Alessio Bazzica <alessiob@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22742}
2018-04-04 14:09:55 +00:00
#include "testing/gtest/include/gtest/gtest-spi.h"
#include "testing/gtest/include/gtest/gtest.h"
// IWYU pragma: end_exports
RTC_POP_IGNORING_WUNDEF()
// GTEST_HAS_DEATH_TEST is set to 1 when death tests are supported, but appears
// to be left unset if they're not supported. Rather than depend on this, we
// set it to 0 ourselves here.
#ifndef GTEST_HAS_DEATH_TEST
#define GTEST_HAS_DEATH_TEST 0
#endif
#endif // TEST_GTEST_H_