17 #ifndef __TEST_ISOLATOR_HPP__ 18 #define __TEST_ISOLATOR_HPP__ 20 #include <gmock/gmock.h> 72 EXPECT_CALL(*
this,
prepare(_, _))
73 .WillRepeatedly(Return(
None()));
75 EXPECT_CALL(*
this,
isolate(_, _))
76 .WillRepeatedly(Return(
Nothing()));
78 EXPECT_CALL(*
this,
watch(_))
83 .WillRepeatedly(Return(
Nothing()));
89 const std::vector<mesos::slave::ContainerState>&,
96 const mesos::slave::ContainerConfig&));
111 const google::protobuf::Map<std::string, Value::Scalar>&));
126 #endif // __TEST_ISOLATOR_HPP__ Definition: nothing.hpp:16
MOCK_METHOD3(update, process::Future< Nothing >(const ContainerID &, const Resources &, const google::protobuf::Map< std::string, Value::Scalar > &))
Definition: resources.hpp:83
virtual process::Future< Nothing > cleanup(const ContainerID &containerId)
Definition: isolator.hpp:130
MOCK_METHOD1(watch, process::Future< mesos::slave::ContainerLimitation >(const ContainerID &))
MOCK_METHOD2(recover, process::Future< Nothing >(const std::vector< mesos::slave::ContainerState > &, const hashset< ContainerID > &))
DWORD pid_t
Definition: windows.hpp:181
virtual process::Future< Nothing > recover(const std::vector< ContainerState > &states, const hashset< ContainerID > &orphans)
Definition: isolator.hpp:60
MockIsolator()
Definition: isolator.hpp:70
virtual process::Future< Nothing > update(const ContainerID &containerId, const Resources &resourceRequests, const google::protobuf::Map< std::string, Value::Scalar > &resourceLimits={})
Definition: isolator.hpp:98
Definition: attributes.hpp:24
virtual process::Future< ContainerLimitation > watch(const ContainerID &containerId)
Definition: isolator.hpp:91
virtual process::Future< Nothing > isolate(const ContainerID &containerId, pid_t pid)
Definition: isolator.hpp:81
virtual process::Future< Option< ContainerLaunchInfo > > prepare(const ContainerID &containerId, const ContainerConfig &containerConfig)
Definition: isolator.hpp:73
Definition: isolator.hpp:39
virtual process::Future< ResourceStatistics > usage(const ContainerID &containerId)
Definition: isolator.hpp:108
Definition: isolator.hpp:67