blob: a5039bf08df5921c53f1c26d298a8646822e0311 [file] [log] [blame]
// Copyright (c) 2013 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_ETHERNET_SERVICE_H_
#define SHILL_MOCK_ETHERNET_SERVICE_H_
#include <gmock/gmock.h>
#include "shill/ethernet_service.h"
namespace shill {
class MockEthernetService : public EthernetService {
public:
MockEthernetService(ControlInterface *control_interface, Metrics *metrics);
virtual ~MockEthernetService();
MOCK_METHOD2(AddEAPCertification, bool(const std::string &name,
size_t depth));
MOCK_METHOD0(ClearEAPCertification, void ());
MOCK_METHOD2(Configure, void(const KeyValueStore &args, Error *error));
MOCK_METHOD2(DisconnectWithFailure,
void(ConnectFailure failure, Error *error));
MOCK_METHOD1(GetDeviceRpcId, std::string(Error *error));
MOCK_CONST_METHOD0(GetStorageIdentifier, std::string());
MOCK_CONST_METHOD0(Is8021xConnectable, bool());
MOCK_CONST_METHOD0(IsConnected, bool());
MOCK_CONST_METHOD0(IsConnecting, bool());
MOCK_CONST_METHOD0(IsRemembered, bool());
MOCK_METHOD1(SetFailure, void(ConnectFailure failure));
MOCK_METHOD1(SetFailureSilent, void(ConnectFailure failure));
MOCK_METHOD1(SetState, void(ConnectState state));
private:
DISALLOW_COPY_AND_ASSIGN(MockEthernetService);
};
} // namespace shill
#endif // SHILL_MOCK_ETHERNET_SERVICE_H_