blob: ae35e334de643faf297174f6ddbf46240b33ef8a [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 Petkov5eb05422012-05-11 15:45:25 +020023 MOCK_METHOD0(OnConnectionDisconnected, void());
Darin Petkovf3c71d72012-03-21 12:32:15 +010024 MOCK_METHOD2(Load, bool(StoreInterface *storage,
25 const std::string &storage_id));
Darin Petkovcb715292012-04-25 13:04:37 +020026 MOCK_METHOD3(Save, bool(StoreInterface *storage,
27 const std::string &storage_id,
28 bool save_credentials));
29 MOCK_METHOD0(UnloadCredentials, void());
Paul Stewartebd38562012-03-23 13:06:40 -070030 MOCK_METHOD1(InitPropertyStore, void(PropertyStore *store));
Paul Stewart39964fa2012-04-04 09:50:25 -070031 MOCK_CONST_METHOD0(GetProviderType, std::string());
Darin Petkov79d74c92012-03-07 17:20:32 +010032
33 private:
34 DISALLOW_COPY_AND_ASSIGN(MockVPNDriver);
Darin Petkov33af05c2012-02-28 10:10:30 +010035};
36
37} // namespace shill
38
39#endif // SHILL_MOCK_VPN_DRIVER_