Skip to content

Commit

Permalink
Merge pull request swiftlang#364 from ddunbar/simplify-gtest-includes
Browse files Browse the repository at this point in the history
[gtest] Simplify include structure for gtest.
  • Loading branch information
ddunbar authored Sep 25, 2018
2 parents 7a639c2 + 40b6662 commit 3ad6421
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions utils/unittest/googletest/src/gtest-all.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
#include "gtest/gtest.h"

// The following lines pull in the real gtest *.cc files.
#include "src/gtest.cc"
#include "src/gtest-death-test.cc"
#include "src/gtest-filepath.cc"
#include "src/gtest-port.cc"
#include "src/gtest-printers.cc"
#include "src/gtest-test-part.cc"
#include "src/gtest-typed-test.cc"
#include "gtest.cc"
#include "gtest-death-test.cc"
#include "gtest-filepath.cc"
#include "gtest-port.cc"
#include "gtest-printers.cc"
#include "gtest-test-part.cc"
#include "gtest-typed-test.cc"
2 changes: 1 addition & 1 deletion utils/unittest/googletest/src/gtest-death-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
// prevent the accidental inclusion of gtest-internal-inl.h in the
// user's code.
#define GTEST_IMPLEMENTATION_ 1
#include "src/gtest-internal-inl.h"
#include "gtest-internal-inl.h"
#undef GTEST_IMPLEMENTATION_

namespace testing {
Expand Down
2 changes: 1 addition & 1 deletion utils/unittest/googletest/src/gtest-port.cc
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
// prevent the accidental inclusion of gtest-internal-inl.h in the
// user's code.
#define GTEST_IMPLEMENTATION_ 1
#include "src/gtest-internal-inl.h"
#include "gtest-internal-inl.h"
#undef GTEST_IMPLEMENTATION_

namespace testing {
Expand Down
2 changes: 1 addition & 1 deletion utils/unittest/googletest/src/gtest-test-part.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
// prevent the accidental inclusion of gtest-internal-inl.h in the
// user's code.
#define GTEST_IMPLEMENTATION_ 1
#include "src/gtest-internal-inl.h"
#include "gtest-internal-inl.h"
#undef GTEST_IMPLEMENTATION_

namespace testing {
Expand Down
2 changes: 1 addition & 1 deletion utils/unittest/googletest/src/gtest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
// prevent a user from accidentally including gtest-internal-inl.h in
// his code.
#define GTEST_IMPLEMENTATION_ 1
#include "src/gtest-internal-inl.h"
#include "gtest-internal-inl.h"
#undef GTEST_IMPLEMENTATION_

#if GTEST_OS_WINDOWS
Expand Down

0 comments on commit 3ad6421

Please sign in to comment.