blob: a5039bf08df5921c53f1c26d298a8646822e0311 [file] [log] [blame]
Paul Stewart9413bcc2013-04-04 16:12:43 -07001// Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef SHILL_MOCK_ETHERNET_SERVICE_H_
6#define SHILL_MOCK_ETHERNET_SERVICE_H_
7
8#include <gmock/gmock.h>
9
10#include "shill/ethernet_service.h"
11
12namespace shill {
13
14class MockEthernetService : public EthernetService {
15 public:
16 MockEthernetService(ControlInterface *control_interface, Metrics *metrics);
17 virtual ~MockEthernetService();
18
19 MOCK_METHOD2(AddEAPCertification, bool(const std::string &name,
20 size_t depth));
21 MOCK_METHOD0(ClearEAPCertification, void ());
22 MOCK_METHOD2(Configure, void(const KeyValueStore &args, Error *error));
23 MOCK_METHOD2(DisconnectWithFailure,
24 void(ConnectFailure failure, Error *error));
25 MOCK_METHOD1(GetDeviceRpcId, std::string(Error *error));
26 MOCK_CONST_METHOD0(GetStorageIdentifier, std::string());
27 MOCK_CONST_METHOD0(Is8021xConnectable, bool());
28 MOCK_CONST_METHOD0(IsConnected, bool());
29 MOCK_CONST_METHOD0(IsConnecting, bool());
30 MOCK_CONST_METHOD0(IsRemembered, bool());
31 MOCK_METHOD1(SetFailure, void(ConnectFailure failure));
32 MOCK_METHOD1(SetFailureSilent, void(ConnectFailure failure));
33 MOCK_METHOD1(SetState, void(ConnectState state));
34
35 private:
36 DISALLOW_COPY_AND_ASSIGN(MockEthernetService);
37};
38
39} // namespace shill
40
41#endif // SHILL_MOCK_ETHERNET_SERVICE_H_