summaryrefslogtreecommitdiff
path: root/mock_device.cc
blob: 4e5187ac6f1bbb9d475d35a5695307ecc377865a (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.

#include "shill/mock_device.h"

#include <string>

#include <base/memory/ref_counted.h>
#include <base/stringprintf.h>
#include <gmock/gmock.h>

namespace shill {

class ControlInterface;
class EventDispatcher;

using ::testing::_;
using ::testing::Return;
using std::string;

MockDevice::MockDevice(ControlInterface *control_interface,
                       EventDispatcher *dispatcher,
                       Manager *manager,
                       const std::string &link_name,
                       const std::string &address,
                       int interface_index)
    : Device(control_interface,
             dispatcher,
             manager,
             link_name,
             address,
             interface_index) {
  ON_CALL(*this, TechnologyIs(_)).WillByDefault(Return(false));
}

MockDevice::~MockDevice() {}

}  // namespace shill