blob: f4e356ee5aff6cad0135ba99dbc73a91a54caf04 [file] [log] [blame]
// 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 MockDevice : public Device {
public:
MockDevice(ControlInterface *control_interface,
EventDispatcher *dispatcher,
Manager *manager,
const std::string &link_name,
const std::string &address,
int interface_index);
virtual ~MockDevice();
MOCK_METHOD0(Start, void());
MOCK_METHOD0(Stop, void());
MOCK_METHOD1(Scan, void(Error *error));
MOCK_CONST_METHOD1(TechnologyIs,
bool(const Technology::Identifier technology));
MOCK_METHOD1(Save, bool(StoreInterface*));
private:
DISALLOW_COPY_AND_ASSIGN(MockDevice);
};
} // namespace shill
#endif // SHILL_MOCK_DEVICE_