Skip to content

Commit

Permalink
Remove gtest headers from public headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Jan 20, 2016
1 parent 64c722a commit 472710f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 0 additions & 2 deletions include/pdal/Kernel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@
#include <string>
#include <vector>

#include <gtest/gtest.h>

namespace po = boost::program_options;

namespace pdal
Expand Down
2 changes: 0 additions & 2 deletions include/pdal/Stage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@

#include <boost/property_tree/ptree.hpp>

#include <gtest/gtest.h>

namespace pdal
{

Expand Down
7 changes: 7 additions & 0 deletions include/pdal/pdal_internal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@

#include <boost/version.hpp>

// This is an extraction from the gtest header. It allows us to make test
// functions friends of classes without including the gtest headers.
#ifndef FRIEND_TEST
#define FRIEND_TEST(test_case_name, test_name)\
friend class test_case_name##_##test_name##_Test
#endif

// See http://stackoverflow.com/questions/1814548/boostsystem-category-defined-but-not-used
#ifndef BOOST_SYSTEM_NO_DEPRECATED
#define BOOST_SYSTEM_NO_DEPRECATED 1
Expand Down

0 comments on commit 472710f

Please sign in to comment.