blob: 5092ef05bb425a3b90bfc6df51ba981a38195de1 [file] [log] [blame]
// Copyright (c) 2012 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_CONNECTION_H_
#define SHILL_MOCK_CONNECTION_H_
#include <base/basictypes.h>
#include <gmock/gmock.h>
#include "shill/connection.h"
namespace shill {
class MockConnection : public Connection {
public:
MockConnection(const DeviceInfo *device_info);
virtual ~MockConnection();
MOCK_METHOD1(UpdateFromIPConfig, void(const IPConfigRefPtr &config));
MOCK_CONST_METHOD0(is_default, bool());
MOCK_METHOD1(SetIsDefault, void(bool is_default));
MOCK_METHOD0(RequestRouting, void());
MOCK_METHOD0(ReleaseRouting, void());
MOCK_CONST_METHOD0(interface_name, const std::string &());
MOCK_CONST_METHOD0(dns_servers, const std::vector<std::string> &());
MOCK_METHOD1(RequestHostRoute, bool(const IPAddress &destination));
private:
DISALLOW_COPY_AND_ASSIGN(MockConnection);
};
} // namespace shill
#endif // SHILL_MOCK_CONNECTION_H_