blob: b465aff5ad52a333db857b4648168ce42b4a769e [file] [log] [blame]
Paul Stewart35eff132013-04-12 12:08:40 -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_EAP_PROVIDER_H_
6#define SHILL_MOCK_ETHERNET_EAP_PROVIDER_H_
7
8#include "shill/ethernet_eap_provider.h"
9
10#include <gmock/gmock.h>
11
12#include "shill/ethernet_eap_service.h"
13
14namespace shill {
15
16class MockEthernetEapProvider : public EthernetEapProvider {
17 public:
18 MockEthernetEapProvider();
19 virtual ~MockEthernetEapProvider();
20
21 MOCK_METHOD0(Start, void());
22 MOCK_METHOD0(Stop, void());
23 MOCK_METHOD2(SetCredentialChangeCallback,
24 void(Ethernet *device, CredentialChangeCallback callback));
25 MOCK_METHOD1(ClearCredentialChangeCallback, void(Ethernet *device));
26 MOCK_CONST_METHOD0(OnCredentialsChanged, void());
27
28 private:
29 DISALLOW_COPY_AND_ASSIGN(MockEthernetEapProvider);
30};
31
32} // namespace shill
33
34#endif // SHILL_MOCK_ETHERNET_EAP_PROVIDER_H_