blob: d08ef7f61f6f3155d77dcc86846db8d81570cf4d [file] [log] [blame]
Darin Petkov33af05c2012-02-28 10:10:30 +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_DRIVER_
6#define SHILL_MOCK_VPN_DRIVER_
7
8#include <gmock/gmock.h>
9
10#include "shill/vpn_driver.h"
11
12namespace shill {
13
14class MockVPNDriver : public VPNDriver {
15 public:
16 MockVPNDriver();
17 virtual ~MockVPNDriver();
18
Paul Stewartca6abd42012-03-01 15:45:29 -080019 MOCK_METHOD2(ClaimInterface, bool(const std::string &link_name,
20 int interface_index));
Darin Petkov79d74c92012-03-07 17:20:32 +010021 MOCK_METHOD2(Connect, void(const VPNServiceRefPtr &service, Error *error));
Darin Petkov6aa21872012-03-09 16:10:19 +010022 MOCK_METHOD0(Disconnect, void());
Darin Petkovf3c71d72012-03-21 12:32:15 +010023 MOCK_METHOD2(Load, bool(StoreInterface *storage,
24 const std::string &storage_id));
25 MOCK_METHOD2(Save, bool(StoreInterface *storage,
26 const std::string &storage_id));
Paul Stewartebd38562012-03-23 13:06:40 -070027 MOCK_METHOD1(InitPropertyStore, void(PropertyStore *store));
Paul Stewart39964fa2012-04-04 09:50:25 -070028 MOCK_CONST_METHOD0(GetProviderType, std::string());
Darin Petkov79d74c92012-03-07 17:20:32 +010029
30 private:
31 DISALLOW_COPY_AND_ASSIGN(MockVPNDriver);
Darin Petkov33af05c2012-02-28 10:10:30 +010032};
33
34} // namespace shill
35
36#endif // SHILL_MOCK_VPN_DRIVER_