blob: 45b2e0ccfe2c5b541b6eda16d3336a5107c7d0a7 [file] [log] [blame]
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SHILL_MOCK_VPN_DRIVER_
#define SHILL_MOCK_VPN_DRIVER_
#include <gmock/gmock.h>
#include "shill/vpn_driver.h"
namespace shill {
class MockVPNDriver : public VPNDriver {
public:
MockVPNDriver();
virtual ~MockVPNDriver();
MOCK_METHOD2(ClaimInterface, bool(const std::string &link_name,
int interface_index));
MOCK_METHOD2(Connect, void(const VPNServiceRefPtr &service, Error *error));
MOCK_METHOD0(Disconnect, void());
MOCK_METHOD2(Load, bool(StoreInterface *storage,
const std::string &storage_id));
MOCK_METHOD2(Save, bool(StoreInterface *storage,
const std::string &storage_id));
MOCK_METHOD1(InitPropertyStore, void(PropertyStore *store));
private:
DISALLOW_COPY_AND_ASSIGN(MockVPNDriver);
};
} // namespace shill
#endif // SHILL_MOCK_VPN_DRIVER_