17 #ifndef __TESTS_MASTER_MOCK_API_SUBSCRIBER__ 18 #define __TESTS_MASTER_MOCK_API_SUBSCRIBER__ 22 #include <gmock/gmock.h> 30 #include "master/master.hpp" 37 class MockMasterAPISubscriberProcess;
46 MOCK_METHOD1(subscribed,
void(const ::mesos::v1::master::Event::Subscribed&));
48 MOCK_METHOD1(taskAdded,
void(const ::mesos::v1::master::Event::TaskAdded&));
51 void(const ::mesos::v1::master::Event::TaskUpdated&));
54 void(const ::mesos::v1::master::Event::AgentAdded&));
57 void(const ::mesos::v1::master::Event::AgentRemoved&));
60 void(const ::mesos::v1::master::Event::FrameworkAdded&));
63 void(const ::mesos::v1::master::Event::FrameworkUpdated&));
66 void(const ::mesos::v1::master::Event::FrameworkRemoved&));
100 #endif // __TESTS_MASTER_MOCK_API_SUBSCRIBER__
process::Future< Nothing > subscribe(const process::PID< mesos::internal::master::Master > &masterPid, ContentType contentType=ContentType::PROTOBUF)
ContentType
Definition: http.hpp:43
MOCK_METHOD1(subscribed, void(const ::mesos::v1::master::Event::Subscribed &))
MOCK_METHOD0(heartbeat, void())
mesos::v1::scheduler::Event Event
Definition: mesos.hpp:2852
virtual ~MockMasterAPISubscriber()
Definition: mock_master_api_subscriber.hpp:42
A "process identifier" used to uniquely identify a process when dispatching messages.
Definition: pid.hpp:289
Definition: attributes.hpp:24
friend class MockMasterAPISubscriberProcess
Definition: mock_master_api_subscriber.hpp:87
MockMasterAPISubscriber()