Go to the documentation of this file.
9 #include <gtest/gtest.h>
10 #include <type_traits>
19 template <
class HTTPMock>
26 static_assert(std::is_base_of<MockServer, HTTPMock>::value,
27 "An instance derived from httpmock::MockServer required!");
34 static_assert(std::is_base_of<IMockServer, HTTPMock>::value,
35 "An instance derived from httpmock::IMockServer required!");
61 template <
typename HTTPMock>
63 unsigned startPort = 8080,
unsigned tryCount = 1000)
66 getFirstRunningMockServer<HTTPMock>(startPort, tryCount));
Definition: test_environment.h:20
virtual ~TestEnvironment()
Definition: test_environment.h:38
Definition: mock_server.cc:20
HTTPMock httpServer
Definition: test_environment.h:21
::testing::Environment * createMockServerEnvironment(unsigned startPort=8080, unsigned tryCount=1000)
Definition: test_environment.h:62
TestEnvironment()
Definition: test_environment.h:23
virtual void TearDown()
Definition: test_environment.h:46
const HTTPMock & getMock() const
Definition: test_environment.h:50
virtual void SetUp()
Definition: test_environment.h:40
TestEnvironment(HTTPMock &&mock)
Definition: test_environment.h:30