blob: fb2b525661f54f9715cad6aca039d0cf94ddc646 [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_SESSION_H_
#define SHILL_MOCK_ICMP_SESSION_H_
#include "shill/icmp_session.h"
#include <gmock/gmock.h>
#include "shill/net/ip_address.h"
namespace shill {
class MockIcmpSession : public IcmpSession {
public:
explicit MockIcmpSession(EventDispatcher* dispatcher);
~MockIcmpSession() override;
MOCK_METHOD(bool,
Start,
(const IPAddress&,
int,
const IcmpSession::IcmpSessionResultCallback&),
(override));
MOCK_METHOD(void, Stop, (), (override));
private:
DISALLOW_COPY_AND_ASSIGN(MockIcmpSession);
};
} // namespace shill
#endif // SHILL_MOCK_ICMP_SESSION_H_