blob: e39ad5cc89fe01f17f468047deb9a38ecc8cc8ba [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_NET_MOCK_IO_HANDLER_FACTORY_H_
#define SHILL_NET_MOCK_IO_HANDLER_FACTORY_H_
#include <gmock/gmock.h>
#include "shill/net/io_handler_factory.h"
namespace shill {
class MockIOHandlerFactory : public IOHandlerFactory {
public:
MockIOHandlerFactory() = default;
~MockIOHandlerFactory() override = default;
MOCK_METHOD(IOHandler*,
CreateIOInputHandler,
(int,
const IOHandler::InputCallback&,
const IOHandler::ErrorCallback&),
(override));
MOCK_METHOD(IOHandler*,
CreateIOReadyHandler,
(int, IOHandler::ReadyMode, const IOHandler::ReadyCallback&),
(override));
private:
DISALLOW_COPY_AND_ASSIGN(MockIOHandlerFactory);
};
} // namespace shill
#endif // SHILL_NET_MOCK_IO_HANDLER_FACTORY_H_