Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ABI checker with testing module #427

Merged
merged 2 commits into from
Aug 30, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions testing/include/gz/common/testing/AutoLogFixture.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2022 Open Source Robotics Foundation
* Copyright (C) 2022 Open Source Robotics FoundationO
mjcarroll marked this conversation as resolved.
Show resolved Hide resolved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -17,7 +17,8 @@
#ifndef GZ_COMMON_TESTING_AUTOLOGFIXTURE_HH_
#define GZ_COMMON_TESTING_AUTOLOGFIXTURE_HH_

#include <gtest/gtest.h>
/// Protect to guarantee that gtest is included before this header.
#ifdef GTEST_API_

#include <memory>
#include <string>
Expand Down Expand Up @@ -56,4 +57,8 @@ class AutoLogFixture : public ::testing::Test

#include <gz/common/testing/detail/AutoLogFixture.hh>

#else
#warning "AutoLogFixture needs <gtest/gtest.h> to be included in order to work"
#endif // GTEST_API_

#endif // GZ_COMMON_TESTING_AUTOLOGFIXTURE_HH_