blob: 987a131c17a714259c2a27139d2ab0324fa25194 [file] [log] [blame]
Samuel Tan1c0debc2015-07-24 13:26:21 -07001// Copyright 2015 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_ICMP_SESSION_H_
6#define SHILL_MOCK_ICMP_SESSION_H_
7
8#include "shill/icmp_session.h"
9
10#include <gmock/gmock.h>
11
12#include "shill/net/ip_address.h"
13
14namespace shill {
15
16class MockIcmpSession : public IcmpSession {
17 public:
18 explicit MockIcmpSession(EventDispatcher* dispatcher);
19 ~MockIcmpSession() override;
20
21 MOCK_METHOD2(
22 Start,
23 bool(const IPAddress& destination,
24 const IcmpSession::IcmpSessionResultCallback& result_callback));
25 MOCK_METHOD0(Stop, void());
26
27 private:
28 DISALLOW_COPY_AND_ASSIGN(MockIcmpSession);
29};
30
31} // namespace shill
32
33#endif // SHILL_MOCK_ICMP_SESSION_H_