| 31 | namespace tests { |
| 32 | |
| 33 | MockFetcherProcess::MockFetcherProcess(const slave::Flags& flags) |
| 34 | : slave::FetcherProcess(flags) |
| 35 | { |
| 36 | // Set up default behaviors, calling the original methods. |
| 37 | EXPECT_CALL(*this, _fetch(_, _, _, _, _)) |
| 38 | .WillRepeatedly(Invoke(this, &MockFetcherProcess::unmocked__fetch)); |
| 39 | EXPECT_CALL(*this, run(_, _, _, _)) |
| 40 | .WillRepeatedly(Invoke(this, &MockFetcherProcess::unmocked_run)); |
| 41 | } |
| 42 | |
| 43 | |
| 44 | MockFetcherProcess::~MockFetcherProcess() {} |