blob: 221de7d577a6b398f92e84748048b2f1cfc46034 [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 <string>
#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_METHOD0(OnConnectionDisconnected, void());
MOCK_METHOD2(Load, bool(StoreInterface *storage,
const std::string &storage_id));
MOCK_METHOD3(Save, bool(StoreInterface *storage,
const std::string &storage_id,
bool save_credentials));
MOCK_METHOD0(UnloadCredentials, void());
MOCK_METHOD1(InitPropertyStore, void(PropertyStore *store));
MOCK_CONST_METHOD0(GetProviderType, std::string());
private:
DISALLOW_COPY_AND_ASSIGN(MockVPNDriver);
};
} // namespace shill
#endif // SHILL_MOCK_VPN_DRIVER_