blob: 8c4f4b1f36824f25783a82f3d9cc93322a91777a [file] [log] [blame]
Darin Petkov79d74c92012-03-07 17:20:32 +01001// Copyright (c) 2012 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_VPN_SERVICE_
6#define SHILL_MOCK_VPN_SERVICE_
7
8#include <gmock/gmock.h>
9
10#include "shill/vpn_service.h"
11
12namespace shill {
13
14class MockVPNService : public VPNService {
15 public:
16 MockVPNService(ControlInterface *control,
17 EventDispatcher *dispatcher,
18 Metrics *metrics,
19 Manager *manager,
20 VPNDriver *driver);
21 virtual ~MockVPNService();
22
23 MOCK_METHOD1(SetState, void(ConnectState state));
Darin Petkov85d53172013-03-13 16:43:28 +010024 MOCK_METHOD1(SetFailure, void(ConnectFailure failure));
Paul Stewartebd38562012-03-23 13:06:40 -070025 MOCK_METHOD0(InitDriverPropertyStore, void());
Paul Stewart65512e12012-03-26 18:01:08 -070026 MOCK_CONST_METHOD0(unloaded, bool());
Darin Petkov79d74c92012-03-07 17:20:32 +010027
28 private:
29 DISALLOW_COPY_AND_ASSIGN(MockVPNService);
30};
31
32} // namespace shill
33
34#endif // SHILL_MOCK_VPN_SERVICE_