17 #ifndef __TEST_STORE_HPP__
18 #define __TEST_STORE_HPP__
20 #include <gmock/gmock.h>
42 using testing::DoDefault;
43 using testing::Invoke;
48 .WillRepeatedly(DoDefault());
50 ON_CALL(*
this,
get(_, _))
52 EXPECT_CALL(*
this,
get(_, _))
53 .WillRepeatedly(DoDefault());
64 const std::string& backend));
73 const std::string& backend)
75 if (!image.has_appc()) {
82 std::vector<std::string>({rootfs.
get()->root}),
None()};
96 #endif // __TEST_STORE_HPP__
Definition: nothing.hpp:16
Definition: option.hpp:28
TestStore(const hashmap< std::string, process::Shared< Rootfs >> &_rootfses)
Definition: store.hpp:38
Definition: future.hpp:664
MOCK_METHOD1(get, process::Future< slave::ImageInfo >(const Image &image, const std::string &backend))
process::Future< Nothing > unmocked_recover()
Definition: store.hpp:66
bool isSome() const
Definition: option.hpp:115
Definition: hashmap.hpp:38
MOCK_METHOD0(recover, process::Future< Nothing >())
const T & get() const &
Definition: option.hpp:118
process::Future< slave::ImageInfo > unmocked_get(const Image &image, const std::string &backend)
Definition: store.hpp:71
virtual process::Future< Nothing > recover()=0
URI image(const std::string &repository, const std::string &reference, const std::string ®istry, const Option< std::string > &scheme=None(), const Option< int > &port=None())
Definition: docker.hpp:30