| // 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_OPENVPN_DRIVER_ |
| #define SHILL_MOCK_OPENVPN_DRIVER_ |
| |
| #include <gmock/gmock.h> |
| |
| #include "shill/openvpn_driver.h" |
| |
| namespace shill { |
| |
| class MockOpenVPNDriver : public OpenVPNDriver { |
| public: |
| MockOpenVPNDriver(); |
| virtual ~MockOpenVPNDriver(); |
| |
| MOCK_METHOD1(OnReconnecting, void(ReconnectReason reason)); |
| MOCK_METHOD0(IdleService, void()); |
| MOCK_METHOD2(FailService, void(Service::ConnectFailure failure, |
| const std::string &error_details)); |
| |
| private: |
| DISALLOW_COPY_AND_ASSIGN(MockOpenVPNDriver); |
| }; |
| |
| } // namespace shill |
| |
| #endif // SHILL_MOCK_OPENVPN_DRIVER_ |