blob: 0fb63ee5f99e4775a90b652b7984fe41eebc6767 [file] [log] [blame] [edit]
// Copyright 2018 The ChromiumOS Authors
// 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 <string>
#include <vector>
#include <gmock/gmock.h>
#include "shill/connection.h"
namespace shill {
class MockConnection : public Connection {
public:
MockConnection();
MockConnection(const MockConnection&) = delete;
MockConnection& operator=(const MockConnection&) = delete;
~MockConnection() override;
MOCK_METHOD(void,
UpdateFromIPConfig,
(const IPConfig::Properties& properties),
(override));
MOCK_METHOD(bool, IsDefault, (), (const, override));
MOCK_METHOD(void, SetPriority, (uint32_t, bool), (override));
MOCK_METHOD(void, SetUseDNS, (bool), (override));
MOCK_METHOD(const std::string&, interface_name, (), (const, override));
MOCK_METHOD(void,
UpdateDNSServers,
(const std::vector<std::string>&),
(override));
MOCK_METHOD(bool, IsIPv6, (), (override));
};
} // namespace shill
#endif // SHILL_MOCK_CONNECTION_H_