[PATCH 2/2] Fix build when using GTest-1.11
authorVictor Berger <victor.berger@m4x.org>
Thu, 8 Jul 2021 17:39:30 +0000 (19:39 +0200)
committerPeter Michael Green <plugwash@raspbian.org>
Sun, 9 Jan 2022 23:11:32 +0000 (23:11 +0000)
Some change in GTest 1.11 headers caused a conflict on the name
`Pointer`. Removing the unconditional import of namespace `testing`
in favor of individual imports of the used items fixes it.

cc #205

Gbp-Pq: Name 0002-Fix-build-when-using-GTest-1.11.patch

tests/pointer_constraints.cpp
tests/relative_pointer.cpp

index d306710dad457b0813d5c2834f48b38f3d693f06..6ee856ff578f3469b89f378a5f77e28a62990b73 100644 (file)
 
 #include <memory>
 
-using namespace testing;
+using testing::AnyNumber;
+using testing::Eq;
+using testing::Ne;
+using testing::NotNull;
+
 using namespace wlcs;
 
 namespace
index c33316c3018f7cf30ef3ef949c3ac37613c120bf..c5c53587bd79649871e9881653407ef6c02efb1f 100644 (file)
 
 #include <gmock/gmock.h>
 
-using namespace testing;
+using testing::AnyNumber;
+using testing::IsTrue;
+using testing::NotNull;
+using testing::_;
+
 using namespace wlcs;
 
 namespace