blob: 4d054f17eb674abd86af0dadb715015b780b3679 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// Copyright (c) 2011 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_DEVICE_
#define SHILL_MOCK_DEVICE_
#include <string>
#include <base/memory/ref_counted.h>
#include <gmock/gmock.h>
#include "shill/device.h"
namespace shill {
class ControlInterface;
class EventDispatcher;
class MockDevice : public Device {
public:
MockDevice(ControlInterface *control_interface,
EventDispatcher *dispatcher,
Manager *manager,
const std::string &link_name,
int interface_index);
virtual ~MockDevice();
MOCK_METHOD0(Start, void(void));
MOCK_METHOD0(Stop, void(void));
MOCK_METHOD1(TechnologyIs, bool(Technology));
private:
DISALLOW_COPY_AND_ASSIGN(MockDevice);
};
} // namespace shill
#endif // SHILL_MOCK_DEVICE_
|