Darin Petkov | 5a85047 | 2012-06-06 15:44:24 +0200 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef SHILL_MOCK_PROCESS_KILLER_H_ |
| 6 | #define SHILL_MOCK_PROCESS_KILLER_H_ |
| 7 | |
| 8 | #include <gmock/gmock.h> |
| 9 | |
| 10 | #include "shill/process_killer.h" |
| 11 | |
| 12 | namespace shill { |
| 13 | |
| 14 | class MockProcessKiller : public ProcessKiller { |
| 15 | public: |
| 16 | MockProcessKiller(); |
| 17 | virtual ~MockProcessKiller(); |
| 18 | |
Darin Petkov | 84a9553 | 2013-03-13 12:24:45 +0100 | [diff] [blame] | 19 | MOCK_METHOD2(Wait, bool(int pid, const base::Closure &callback)); |
Darin Petkov | 5a85047 | 2012-06-06 15:44:24 +0200 | [diff] [blame] | 20 | MOCK_METHOD2(Kill, void(int pid, const base::Closure &callback)); |
| 21 | |
| 22 | private: |
| 23 | DISALLOW_COPY_AND_ASSIGN(MockProcessKiller); |
| 24 | }; |
| 25 | |
| 26 | } // namespace shill |
| 27 | |
| 28 | #endif // SHILL_MOCK_PROCESS_KILLER_H_ |