/test/mocks/mockPhysicalDataCenterFactory.h

https://github.com/deltaforge/nebu-common-cpp · C Header · 28 lines · 18 code · 9 blank · 1 comment · 0 complexity · 95d5fcbaeb57c12a7079b48f2e08c9b0 MD5 · raw file

  1. #ifndef NEBUTEST_MOCKPHYSICALDATACENTERFACTORY_H_
  2. #define NEBUTEST_MOCKPHYSICALDATACENTERFACTORY_H_
  3. #include "gmock/gmock.h"
  4. #include "nebu/topology/physicalDataCenterFactory.h"
  5. namespace nebu
  6. {
  7. namespace test
  8. {
  9. class MockPhysicalDataCenterFactory : public nebu::common::PhysicalDataCenterFactory
  10. {
  11. public:
  12. MockPhysicalDataCenterFactory() : PhysicalDataCenterFactory() { };
  13. // virtual ~MockPhysicalDataCenterFactory() { };
  14. MOCK_CONST_METHOD1(parseXML, nebu::common::Traits<nebu::common::PhysicalDataCenter>::Ptr(const tinyxml2::XMLElement *elem));
  15. private:
  16. };
  17. }
  18. }
  19. #endif