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 | |
| 5 | #ifndef SHILL_MOCK_PROFILE_ |
| 6 | #define SHILL_MOCK_PROFILE_ |
| 7 | |
| 8 | #include <string> |
| 9 | |
| 10 | #include <gmock/gmock.h> |
| 11 | |
| 12 | #include "shill/profile.h" |
| 13 | |
Chris Masone | 7aa5f90 | 2011-07-11 11:13:35 -0700 | [diff] [blame] | 14 | namespace shill { |
| 15 | |
Chris Masone | 7aa5f90 | 2011-07-11 11:13:35 -0700 | [diff] [blame] | 16 | class MockProfile : public Profile { |
| 17 | public: |
Chris Masone | 9d77993 | 2011-08-25 16:33:41 -0700 | [diff] [blame] | 18 | MockProfile(ControlInterface *control, Manager *manager); |
Chris Masone | 2ae797d | 2011-08-23 20:41:00 -0700 | [diff] [blame] | 19 | MockProfile(ControlInterface *control, |
Chris Masone | 7df0c67 | 2011-07-15 10:24:54 -0700 | [diff] [blame] | 20 | Manager *manager, |
| 21 | const std::string &identifier); |
Chris Masone | 7aa5f90 | 2011-07-11 11:13:35 -0700 | [diff] [blame] | 22 | virtual ~MockProfile(); |
| 23 | |
Paul Stewart | 3d9bcf5 | 2011-12-12 15:02:22 -0800 | [diff] [blame] | 24 | MOCK_METHOD1(AdoptService, bool(const ServiceRefPtr &service)); |
| 25 | MOCK_METHOD1(AbandonService, bool(const ServiceRefPtr &service)); |
Paul Stewart | a41e38d | 2011-11-11 07:47:29 -0800 | [diff] [blame] | 26 | MOCK_METHOD1(ConfigureService, bool(const ServiceRefPtr &service)); |
| 27 | MOCK_METHOD1(ConfigureDevice, bool(const DeviceRefPtr &device)); |
Paul Stewart | 1b1a7f2 | 2012-01-06 16:24:06 -0800 | [diff] [blame] | 28 | MOCK_METHOD0(GetRpcIdentifier, std::string()); |
Paul Stewart | 3d9bcf5 | 2011-12-12 15:02:22 -0800 | [diff] [blame] | 29 | MOCK_METHOD1(GetStoragePath, bool(FilePath *filepath)); |
Paul Stewart | 7f61e52 | 2012-03-22 11:13:45 -0700 | [diff] [blame] | 30 | MOCK_METHOD1(UpdateService, bool(const ServiceRefPtr &service)); |
Chris Masone | b9c0059 | 2011-10-06 13:10:39 -0700 | [diff] [blame] | 31 | MOCK_METHOD0(Save, bool()); |
Paul Stewart | 6681533 | 2012-04-09 18:09:36 -0700 | [diff] [blame] | 32 | MOCK_CONST_METHOD0(GetConstStorage, const StoreInterface *()); |
Chris Masone | 9d77993 | 2011-08-25 16:33:41 -0700 | [diff] [blame] | 33 | |
Chris Masone | 7aa5f90 | 2011-07-11 11:13:35 -0700 | [diff] [blame] | 34 | private: |
| 35 | DISALLOW_COPY_AND_ASSIGN(MockProfile); |
| 36 | }; |
| 37 | |
| 38 | } // namespace shill |
| 39 | |
| 40 | #endif // SHILL_MOCK_PROFILE_ |