PageRenderTime 16ms CodeModel.GetById 11ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/test/mocks/mockAppVirtRequest.h

https://github.com/deltaforge/nebu-common-cpp
C Header | 27 lines | 19 code | 8 blank | 0 comment | 0 complexity | 0f832928fa65c7ae29dbd66c537e9e48 MD5 | raw file
 1
 2#ifndef NEBUTEST_MOCKAPPVIRTREQUEST_H_
 3#define NEBUTEST_MOCKAPPVIRTREQUEST_H_
 4
 5#include "nebu/appVirtRequest.h"
 6
 7#include "gmock/gmock.h"
 8
 9namespace nebu
10{
11	namespace test
12	{
13
14		class MockAppVirtRequest : public nebu::common::AppVirtRequest
15		{
16		public:
17			MockAppVirtRequest() : nebu::common::AppVirtRequest(std::shared_ptr<nebu::common::NebuClient>(), "") { }
18			virtual ~MockAppVirtRequest() { }
19
20			MOCK_CONST_METHOD1(getVirtualMachine, nebu::common::VirtualMachine(const std::string &uuid));
21			MOCK_CONST_METHOD0(getVirtualMachineIDs, std::vector<std::string>());
22		};
23
24	}
25}
26
27#endif