blob: 20dbb1fc58db39b04137d5693a4fc6051981130e [file] [log] [blame]
// Copyright 2018 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SHILL_MOCK_ICMP_H_
#define SHILL_MOCK_ICMP_H_
#include "shill/icmp.h"
#include <gmock/gmock.h>
#include "shill/net/ip_address.h"
namespace shill {
class MockIcmp : public Icmp {
public:
MockIcmp();
~MockIcmp() override;
MOCK_METHOD2(Start, bool(const IPAddress& destination, int interface_index));
MOCK_METHOD0(Stop, void());
MOCK_CONST_METHOD0(IsStarted, bool());
MOCK_METHOD2(TransmitEchoRequest, bool(uint16_t id, uint16_t seq_num));
private:
DISALLOW_COPY_AND_ASSIGN(MockIcmp);
};
} // namespace shill
#endif // SHILL_MOCK_ICMP_H_