17 #ifndef __TESTS_MOCK_FETCHER_HPP__ 18 #define __TESTS_MOCK_FETCHER_HPP__ 23 #include <gmock/gmock.h> 54 const ContainerID& containerId,
55 const std::string& sandboxDirectory,
56 const std::string& cacheDirectory,
64 const ContainerID& containerId,
65 const std::string& sandboxDirectory,
66 const std::string& cacheDirectory,
70 const ContainerID& containerId,
71 const std::string& sandboxDirectory,
73 const mesos::fetcher::FetcherInfo& info));
76 const ContainerID& containerId,
77 const std::string& sandboxDirectory,
79 const mesos::fetcher::FetcherInfo& info);
86 #endif // __TESTS_MOCK_FETCHER_HPP__ process::Future< Nothing > unmocked_run(const ContainerID &containerId, const std::string &sandboxDirectory, const Option< std::string > &user, const mesos::fetcher::FetcherInfo &info)
Definition: option.hpp:29
process::Future< Nothing > unmocked__fetch(const hashmap< CommandInfo::URI, Option< process::Future< std::shared_ptr< Cache::Entry >>>> &entries, const ContainerID &containerId, const std::string &sandboxDirectory, const std::string &cacheDirectory, const Option< std::string > &user)
~MockFetcherProcess() override
MOCK_METHOD4(run, process::Future< Nothing >(const ContainerID &containerId, const std::string &sandboxDirectory, const Option< std::string > &user, const mesos::fetcher::FetcherInfo &info))
Result< std::string > user(Option< uid_t > uid=None())
Definition: su.hpp:284
Definition: fetcher_process.hpp:41
virtual process::Future< Nothing > _fetch(const hashmap< CommandInfo::URI, Option< process::Future< std::shared_ptr< Cache::Entry >>>> &entries, const ContainerID &containerId, const std::string &sandboxDirectory, const std::string &cacheDirectory, const Option< std::string > &user)
Definition: hashmap.hpp:38
MOCK_METHOD5(_fetch, process::Future< Nothing >(const hashmap< CommandInfo::URI, Option< process::Future< std::shared_ptr< Cache::Entry >>>> &entries, const ContainerID &containerId, const std::string &sandboxDirectory, const std::string &cacheDirectory, const Option< std::string > &user))
virtual process::Future< Nothing > run(const ContainerID &containerId, const std::string &sandboxDirectory, const Option< std::string > &user, const mesos::fetcher::FetcherInfo &info)
MockFetcherProcess(const slave::Flags &flags)
Definition: attributes.hpp:24
Definition: mock_fetcher.hpp:43