PageRenderTime 11ms CodeModel.GetById 7ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/test/mocks/mockRestClientAdapter.h

https://github.com/deltaforge/nebu-common-cpp
C Header | 27 lines | 21 code | 6 blank | 0 comment | 0 complexity | e99d556f309562d11fa1452a9b825d34 MD5 | raw file
 1#ifndef NEBUTEST_MOCKRESTCLIENTADAPTER_H_
 2#define NEBUTEST_MOCKRESTCLIENTADAPTER_H_
 3
 4#include "gmock/gmock.h"
 5
 6#include "nebu/restClientAdapter.h"
 7
 8namespace nebu
 9{
10	namespace test
11	{
12
13		class MockRestClientAdapter : public nebu::common::RestClientAdapter
14		{
15		public:
16			MOCK_CONST_METHOD1(get, RestClient::response(const std::string& url));
17			MOCK_CONST_METHOD3(post, RestClient::response(const std::string& url,
18					const std::string& ctype, const std::string& data));
19			MOCK_CONST_METHOD3(put, RestClient::response(const std::string& url,
20					const std::string& ctype, const std::string& data));
21			MOCK_CONST_METHOD1(del, RestClient::response(const std::string& url));
22		};
23
24	}
25}
26
27#endif