Paul Stewart | 1b1a7f2 | 2012-01-06 16:24:06 -0800 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
Chris Masone | 7aa5f90 | 2011-07-11 11:13:35 -0700 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
Wade Guthrie | 60a3706 | 2013-04-02 11:39:09 -0700 | [diff] [blame] | 5 | #ifndef SHILL_MOCK_PROFILE_H_ |
| 6 | #define SHILL_MOCK_PROFILE_H_ |
Chris Masone | 7aa5f90 | 2011-07-11 11:13:35 -0700 | [diff] [blame] | 7 | |
| 8 | #include <string> |
| 9 | |
| 10 | #include <gmock/gmock.h> |
| 11 | |
| 12 | #include "shill/profile.h" |
Ben Chan | d6a8b51 | 2014-11-18 10:45:15 -0800 | [diff] [blame] | 13 | #include "shill/wifi/wifi_provider.h" |
Chris Masone | 7aa5f90 | 2011-07-11 11:13:35 -0700 | [diff] [blame] | 14 | |
Chris Masone | 7aa5f90 | 2011-07-11 11:13:35 -0700 | [diff] [blame] | 15 | namespace shill { |
| 16 | |
Chris Masone | 7aa5f90 | 2011-07-11 11:13:35 -0700 | [diff] [blame] | 17 | class MockProfile : public Profile { |
| 18 | public: |
Paul Stewart | 1e006c6 | 2015-06-16 12:29:06 -0700 | [diff] [blame] | 19 | MockProfile(ControlInterface* control, Metrics* metrics, Manager* manager); |
| 20 | MockProfile(ControlInterface* control, |
| 21 | Metrics* metrics, |
| 22 | Manager* manager, |
| 23 | const std::string& identifier); |
Ben Chan | 5ea763b | 2014-08-13 11:07:54 -0700 | [diff] [blame] | 24 | ~MockProfile() override; |
Chris Masone | 7aa5f90 | 2011-07-11 11:13:35 -0700 | [diff] [blame] | 25 | |
Paul Stewart | 1e006c6 | 2015-06-16 12:29:06 -0700 | [diff] [blame] | 26 | MOCK_METHOD1(AdoptService, bool(const ServiceRefPtr& service)); |
| 27 | MOCK_METHOD1(AbandonService, bool(const ServiceRefPtr& service)); |
| 28 | MOCK_METHOD1(LoadService, bool(const ServiceRefPtr& service)); |
| 29 | MOCK_METHOD1(ConfigureService, bool(const ServiceRefPtr& service)); |
| 30 | MOCK_METHOD1(ConfigureDevice, bool(const DeviceRefPtr& device)); |
| 31 | MOCK_METHOD2(DeleteEntry, void(const std::string& entry_name, Error* error)); |
Paul Stewart | 1b1a7f2 | 2012-01-06 16:24:06 -0800 | [diff] [blame] | 32 | MOCK_METHOD0(GetRpcIdentifier, std::string()); |
Paul Stewart | 1e006c6 | 2015-06-16 12:29:06 -0700 | [diff] [blame] | 33 | MOCK_METHOD1(GetStoragePath, bool(base::FilePath* filepath)); |
| 34 | MOCK_METHOD1(UpdateService, bool(const ServiceRefPtr& service)); |
| 35 | MOCK_METHOD1(UpdateDevice, bool(const DeviceRefPtr& device)); |
| 36 | MOCK_METHOD1(UpdateWiFiProvider, bool(const WiFiProvider& wifi_provider)); |
Chris Masone | b9c0059 | 2011-10-06 13:10:39 -0700 | [diff] [blame] | 37 | MOCK_METHOD0(Save, bool()); |
Paul Stewart | 1e006c6 | 2015-06-16 12:29:06 -0700 | [diff] [blame] | 38 | MOCK_METHOD0(GetStorage, StoreInterface*()); |
| 39 | MOCK_CONST_METHOD0(GetConstStorage, const StoreInterface*()); |
mukesh agrawal | 9842441 | 2014-09-30 15:21:52 -0700 | [diff] [blame] | 40 | MOCK_CONST_METHOD0(IsDefault, bool()); |
Chris Masone | 9d77993 | 2011-08-25 16:33:41 -0700 | [diff] [blame] | 41 | |
Chris Masone | 7aa5f90 | 2011-07-11 11:13:35 -0700 | [diff] [blame] | 42 | private: |
| 43 | DISALLOW_COPY_AND_ASSIGN(MockProfile); |
| 44 | }; |
| 45 | |
| 46 | } // namespace shill |
| 47 | |
Wade Guthrie | 60a3706 | 2013-04-02 11:39:09 -0700 | [diff] [blame] | 48 | #endif // SHILL_MOCK_PROFILE_H_ |