Browse Source

Re-order includes and change to including gmock.

Sam Jaffe 5 years ago
parent
commit
50ce27ef56

+ 2 - 2
test/const_propogating_ptr_test.cxx

@@ -7,10 +7,10 @@
 
 #pragma once
 
-#include <cxxtest/TestSuite.h>
-
 #include "pointer/const_propogating_ptr.hpp"
 
+#include <gmock/gmock.h>
+
 class const_propogating_ptr_TestSuite : public CxxTest::TestSuite {
 public:
   struct mock_object {

+ 2 - 2
test/const_ptr_test.cxx

@@ -7,10 +7,10 @@
 
 #pragma once
 
-#include <cxxtest/TestSuite.h>
-
 #include "pointer/const_ptr.hpp"
 
+#include <gmock/gmock.h>
+
 class const_ptr_TestSuite : public CxxTest::TestSuite {
 public:
   struct mock_object {

+ 6 - 3
test/maybe_null_test.cxx

@@ -7,14 +7,17 @@
 
 #pragma once
 
-#include <cxxtest/TestSuite.h>
-#include <memory>
-
+// Define DEBUG in order to obtain certain checks...
 #ifndef DEBUG
 #define DEBUG
 #endif
+
 #include "pointer/maybe_null.hpp"
 
+#include <memory>
+
+#include <gmock/gmock.h>
+
 class maybe_null_TestSuite : public CxxTest::TestSuite {
 public:
   using ptr_base = std::shared_ptr<int>;

+ 2 - 2
test/not_null_test.cxx

@@ -7,10 +7,10 @@
 
 #pragma once
 
-#include <cxxtest/TestSuite.h>
-
 #include "pointer/not_null.hpp"
 
+#include <gmock/gmock.h>
+
 class not_null_TestSuite : public CxxTest::TestSuite {
 public:
   using ptr_base = std::shared_ptr<int>;

+ 2 - 2
test/value_ptr_test.cxx

@@ -7,11 +7,11 @@
 
 #pragma once
 
-#include <cxxtest/TestSuite.h>
+#include "pointer/value_ptr.hpp"
 
 #include <stdexcept>
 
-#include "pointer/value_ptr.hpp"
+#include <gmock/gmock.h>
 
 struct copy_me {};
 struct copy_me_throw {};