mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 05:40:42 +01:00
Add IWYU export pragmas to gtest/gmock
This prevents clangd from complaining about unused includes from test/gmock.h and test/gtest.h Bug: b/42226242 Change-Id: I2bd0f61f63981dff697d60f353d198fd81ab1457 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/349480 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Harald Alvestrand <hta@webrtc.org> Auto-Submit: Evan Shrubsole <eshr@google.com> Cr-Commit-Position: refs/heads/main@{#42200}
This commit is contained in:
parent
b2b6166dc4
commit
a3458809fc
2 changed files with 3 additions and 1 deletions
|
@ -14,7 +14,7 @@
|
||||||
#include "rtc_base/ignore_wundef.h"
|
#include "rtc_base/ignore_wundef.h"
|
||||||
|
|
||||||
RTC_PUSH_IGNORING_WUNDEF()
|
RTC_PUSH_IGNORING_WUNDEF()
|
||||||
#include "testing/gmock/include/gmock/gmock.h"
|
#include "testing/gmock/include/gmock/gmock.h" // IWYU pragma: export
|
||||||
RTC_POP_IGNORING_WUNDEF()
|
RTC_POP_IGNORING_WUNDEF()
|
||||||
|
|
||||||
#endif // TEST_GMOCK_H_
|
#endif // TEST_GMOCK_H_
|
||||||
|
|
|
@ -14,8 +14,10 @@
|
||||||
#include "rtc_base/ignore_wundef.h"
|
#include "rtc_base/ignore_wundef.h"
|
||||||
|
|
||||||
RTC_PUSH_IGNORING_WUNDEF()
|
RTC_PUSH_IGNORING_WUNDEF()
|
||||||
|
// IWYU pragma: begin_exports
|
||||||
#include "testing/gtest/include/gtest/gtest-spi.h"
|
#include "testing/gtest/include/gtest/gtest-spi.h"
|
||||||
#include "testing/gtest/include/gtest/gtest.h"
|
#include "testing/gtest/include/gtest/gtest.h"
|
||||||
|
// IWYU pragma: end_exports
|
||||||
RTC_POP_IGNORING_WUNDEF()
|
RTC_POP_IGNORING_WUNDEF()
|
||||||
|
|
||||||
// GTEST_HAS_DEATH_TEST is set to 1 when death tests are supported, but appears
|
// GTEST_HAS_DEATH_TEST is set to 1 when death tests are supported, but appears
|
||||||
|
|
Loading…
Reference in a new issue