blob: 8c2a94b8f6f627e32f57560e722bebed28d4f4ab [file] [log] [blame]
Peter Qiu7e8b8ee2014-11-25 13:55:57 -08001// Copyright 2014 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_DEVICE_CLAIMER_H_
6#define SHILL_MOCK_DEVICE_CLAIMER_H_
7
8#include "shill/device_claimer.h"
9
10#include <string>
11
12#include <base/macros.h>
13#include <gmock/gmock.h>
14
15namespace shill {
16
17class MockDeviceClaimer : public DeviceClaimer {
18 public:
19 explicit MockDeviceClaimer(const std::string &dbus_service_name);
20 ~MockDeviceClaimer() override;
21
22 MOCK_METHOD2(Claim, bool(const std::string &device_name, Error *error));
23 MOCK_METHOD2(Release, bool(const std::string &device_name, Error *error));
24 MOCK_METHOD0(DevicesClaimed, bool());
25
26 private:
27 DISALLOW_COPY_AND_ASSIGN(MockDeviceClaimer);
28};
29
30} // namespace shill
31
32#endif // SHILL_MOCK_DEVICE_CLAIMER_H_