mukesh agrawal | 3195024 | 2011-07-14 11:53:38 -0700 | [diff] [blame] | 1 | // Copyright (c) 2011 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 MOCK_SUPPLICANT_PROCESS_PROXY_H_ |
| 6 | #define MOCK_SUPPLICANT_PROCESS_PROXY_H_ |
| 7 | |
Hristo Stefanov | ed2c28c | 2011-11-29 15:37:30 -0800 | [diff] [blame] | 8 | #include <map> |
| 9 | #include <string> |
| 10 | |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 11 | #include <base/basictypes.h> |
mukesh agrawal | 3195024 | 2011-07-14 11:53:38 -0700 | [diff] [blame] | 12 | #include <gmock/gmock.h> |
| 13 | |
Gaurav Shah | 3df47b7 | 2013-03-22 15:40:41 -0700 | [diff] [blame] | 14 | #include "shill/dbus_variant_gmock_printer.h" |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 15 | #include "shill/supplicant_process_proxy_interface.h" |
mukesh agrawal | 3195024 | 2011-07-14 11:53:38 -0700 | [diff] [blame] | 16 | |
| 17 | namespace shill { |
| 18 | |
| 19 | class MockSupplicantProcessProxy : public SupplicantProcessProxyInterface { |
| 20 | public: |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 21 | MockSupplicantProcessProxy(); |
| 22 | virtual ~MockSupplicantProcessProxy(); |
mukesh agrawal | 3195024 | 2011-07-14 11:53:38 -0700 | [diff] [blame] | 23 | |
| 24 | MOCK_METHOD1(CreateInterface, |
| 25 | ::DBus::Path( |
| 26 | const std::map<std::string, ::DBus::Variant> &args)); |
| 27 | MOCK_METHOD1(GetInterface, ::DBus::Path(const std::string &ifname)); |
| 28 | MOCK_METHOD1(RemoveInterface, void(const ::DBus::Path &path)); |
Paul Stewart | 5581d07 | 2012-12-17 17:30:20 -0800 | [diff] [blame] | 29 | MOCK_METHOD0(GetDebugLevel, std::string()); |
| 30 | MOCK_METHOD1(SetDebugLevel, void(const std::string &level)); |
mukesh agrawal | 3195024 | 2011-07-14 11:53:38 -0700 | [diff] [blame] | 31 | |
| 32 | private: |
| 33 | DISALLOW_COPY_AND_ASSIGN(MockSupplicantProcessProxy); |
| 34 | }; |
| 35 | |
| 36 | } // namespace shill |
| 37 | |
| 38 | #endif // MOCK_SUPPLICANT_PROCESS_PROXY_H_ |