/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
- #ifndef NEBUTEST_MOCKRESTCLIENTADAPTER_H_
- #define NEBUTEST_MOCKRESTCLIENTADAPTER_H_
- #include "gmock/gmock.h"
- #include "nebu/restClientAdapter.h"
- namespace nebu
- {
- namespace test
- {
- class MockRestClientAdapter : public nebu::common::RestClientAdapter
- {
- public:
- MOCK_CONST_METHOD1(get, RestClient::response(const std::string& url));
- MOCK_CONST_METHOD3(post, RestClient::response(const std::string& url,
- const std::string& ctype, const std::string& data));
- MOCK_CONST_METHOD3(put, RestClient::response(const std::string& url,
- const std::string& ctype, const std::string& data));
- MOCK_CONST_METHOD1(del, RestClient::response(const std::string& url));
- };
- }
- }
- #endif