Skip to content

Commit

Permalink
Directly include gmock.h and gtest.h in gmock-matchers tests.
Browse files Browse the repository at this point in the history
These headers have been included through `gmock-matchers_test.h`

PiperOrigin-RevId: 657612455
Change-Id: I65675f1cfe7789f1821ccacbe60acf90efd5c221
  • Loading branch information
Abseil Team authored and copybara-github committed Jul 30, 2024
1 parent 5bcb2d7 commit ffa31ae
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions googlemock/test/gmock-matchers-arithmetic_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
#include <memory>
#include <string>

#include "gmock/gmock.h"
#include "test/gmock-matchers_test.h"
#include "gtest/gtest.h"

// Silence warning C4244: 'initializing': conversion from 'int' to 'short',
// possible loss of data and C4100, unreferenced local parameter
Expand Down
2 changes: 2 additions & 0 deletions googlemock/test/gmock-matchers-comparisons_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
#include <tuple>
#include <vector>

#include "gmock/gmock.h"
#include "test/gmock-matchers_test.h"
#include "gtest/gtest.h"

// Silence warning C4244: 'initializing': conversion from 'int' to 'short',
// possible loss of data and C4100, unreferenced local parameter
Expand Down
4 changes: 2 additions & 2 deletions googlemock/test/gmock-matchers-containers_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@
#include <tuple>
#include <vector>

#include "gmock/gmock.h"
#include "test/gmock-matchers_test.h"
#include "gtest/gtest.h"

// Silence warning C4244: 'initializing': conversion from 'int' to 'short',
// possible loss of data and C4100, unreferenced local parameter
GTEST_DISABLE_MSC_WARNINGS_PUSH_(4244 4100)

#include "test/gmock-matchers_test.h"

namespace testing {
namespace gmock_matchers_test {
namespace {
Expand Down
4 changes: 2 additions & 2 deletions googlemock/test/gmock-matchers-misc_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@
#include <utility>
#include <vector>

#include "gmock/gmock.h"
#include "test/gmock-matchers_test.h"
#include "gtest/gtest.h"

// Silence warning C4244: 'initializing': conversion from 'int' to 'short',
// possible loss of data and C4100, unreferenced local parameter
GTEST_DISABLE_MSC_WARNINGS_PUSH_(4244 4100)

#include "test/gmock-matchers_test.h"

namespace testing {
namespace gmock_matchers_test {
namespace {
Expand Down

0 comments on commit ffa31ae

Please sign in to comment.