Ben Chan | 3e4bf16 | 2013-04-03 18:14:51 -0700 | [diff] [blame] | 1 | // Copyright (c) 2013 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_SOCKET_INFO_READER_H_ |
| 6 | #define SHILL_MOCK_SOCKET_INFO_READER_H_ |
| 7 | |
| 8 | #include <vector> |
| 9 | |
Ben Chan | cc67c52 | 2014-09-03 07:19:18 -0700 | [diff] [blame] | 10 | #include <base/macros.h> |
Ben Chan | 3e4bf16 | 2013-04-03 18:14:51 -0700 | [diff] [blame] | 11 | #include <gmock/gmock.h> |
| 12 | |
| 13 | #include "shill/socket_info_reader.h" |
| 14 | |
| 15 | namespace shill { |
| 16 | |
| 17 | class SocketInfo; |
| 18 | |
| 19 | class MockSocketInfoReader : public SocketInfoReader { |
| 20 | public: |
| 21 | MockSocketInfoReader(); |
Ben Chan | 5ea763b | 2014-08-13 11:07:54 -0700 | [diff] [blame] | 22 | ~MockSocketInfoReader() override; |
Ben Chan | 3e4bf16 | 2013-04-03 18:14:51 -0700 | [diff] [blame] | 23 | |
Paul Stewart | 1e006c6 | 2015-06-16 12:29:06 -0700 | [diff] [blame] | 24 | MOCK_METHOD1(LoadTcpSocketInfo, bool(std::vector<SocketInfo>* info_list)); |
Ben Chan | 3e4bf16 | 2013-04-03 18:14:51 -0700 | [diff] [blame] | 25 | |
| 26 | private: |
| 27 | DISALLOW_COPY_AND_ASSIGN(MockSocketInfoReader); |
| 28 | }; |
| 29 | |
| 30 | } // namespace shill |
| 31 | |
| 32 | #endif // SHILL_MOCK_SOCKET_INFO_READER_H_ |