| 40 | namespace tests { |
| 41 | |
| 42 | MockDocker::MockDocker( |
| 43 | const string& path, |
| 44 | const string& socket, |
| 45 | const Option<JSON::Object>& config) |
| 46 | : Docker(path, socket, config) |
| 47 | { |
| 48 | EXPECT_CALL(*this, ps(_, _)) |
| 49 | .WillRepeatedly(Invoke(this, &MockDocker::_ps)); |
| 50 | |
| 51 | EXPECT_CALL(*this, pull(_, _, _)) |
| 52 | .WillRepeatedly(Invoke(this, &MockDocker::_pull)); |
| 53 | |
| 54 | EXPECT_CALL(*this, stop(_, _, _)) |
| 55 | .WillRepeatedly(Invoke(this, &MockDocker::_stop)); |
| 56 | |
| 57 | EXPECT_CALL(*this, run(_, _, _)) |
| 58 | .WillRepeatedly(Invoke(this, &MockDocker::_run)); |
| 59 | |
| 60 | EXPECT_CALL(*this, inspect(_, _)) |
| 61 | .WillRepeatedly(Invoke(this, &MockDocker::_inspect)); |
| 62 | } |
| 63 | |
| 64 | |
| 65 | MockDocker::~MockDocker() {} |