blob: 53ae701e5b4ae31f996f0b6bfe8c21a16df839af [file] [log] [blame]
// Copyright (c) 2013 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 MIST_MOCK_UDEV_MONITOR_H_
#define MIST_MOCK_UDEV_MONITOR_H_
#include <gmock/gmock.h>
#include "mist/udev_monitor.h"
namespace mist {
class MockUdevMonitor : public UdevMonitor {
public:
MockUdevMonitor() = default;
~MockUdevMonitor() override = default;
MOCK_METHOD0(EnableReceiving, bool());
MOCK_METHOD1(SetReceiveBufferSize, bool(int size));
MOCK_CONST_METHOD0(GetFileDescriptor, int());
MOCK_METHOD0(ReceiveDevice, UdevDevice*());
MOCK_METHOD2(FilterAddMatchSubsystemDeviceType,
bool(const char* subsystem, const char* device_type));
MOCK_METHOD1(FilterAddMatchTag, bool(const char* tag));
MOCK_METHOD0(FilterUpdate, bool());
MOCK_METHOD0(FilterRemove, bool());
private:
DISALLOW_COPY_AND_ASSIGN(MockUdevMonitor);
};
} // namespace mist
#endif // MIST_MOCK_UDEV_MONITOR_H_