1 //******************************************************************
3 // Copyright 2014 Intel Corporation All Rights Reserved.
4 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
6 #ifndef MOCKPROTOCOL_H_
7 #define MOCKPROTOCOL_H_
9 // ============================================================================
11 // ============================================================================
15 #include "Protocol.hpp"
18 // ============================================================================
20 // ============================================================================
25 // ============================================================================
27 // ============================================================================
28 class MockProtocol : public Protocol
32 virtual ~MockProtocol();
34 virtual void setModel(const std::shared_ptr<Intel::CCFL::API::Model>& model);
35 virtual const Handle getHandle();
36 virtual void setHandle(const Handle handle);
37 virtual const std::string& getName();
38 virtual void setName(const std::string& name);
39 virtual void forceDeviceDiscovery();
44 std::weak_ptr<API::Model> model_;
48 void testAddDevice(const UUID_t& deviceId, const std::string deviceName);
49 void testRemoveDevice(const UUID_t& deviceId);
51 static const std::string MOCK_DEVICE_ID;
60 #endif /* MOCKPROTOCOL_H_ */