blob: 7941e49cf3be9b40031239002430b4f1bf6f49c8 [file] [log] [blame]
Paul Stewart1b1a7f22012-01-06 16:24:06 -08001// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
Chris Masone7aa5f902011-07-11 11:13:35 -07002// 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 Masone7aa5f902011-07-11 11:13:35 -070014namespace shill {
15
Chris Masone7aa5f902011-07-11 11:13:35 -070016class MockProfile : public Profile {
17 public:
Chris Masone9d779932011-08-25 16:33:41 -070018 MockProfile(ControlInterface *control, Manager *manager);
Chris Masone2ae797d2011-08-23 20:41:00 -070019 MockProfile(ControlInterface *control,
Chris Masone7df0c672011-07-15 10:24:54 -070020 Manager *manager,
21 const std::string &identifier);
Chris Masone7aa5f902011-07-11 11:13:35 -070022 virtual ~MockProfile();
23
Paul Stewart3d9bcf52011-12-12 15:02:22 -080024 MOCK_METHOD1(AdoptService, bool(const ServiceRefPtr &service));
25 MOCK_METHOD1(AbandonService, bool(const ServiceRefPtr &service));
Paul Stewarta41e38d2011-11-11 07:47:29 -080026 MOCK_METHOD1(ConfigureService, bool(const ServiceRefPtr &service));
27 MOCK_METHOD1(ConfigureDevice, bool(const DeviceRefPtr &device));
Paul Stewart1b1a7f22012-01-06 16:24:06 -080028 MOCK_METHOD0(GetRpcIdentifier, std::string());
Paul Stewart3d9bcf52011-12-12 15:02:22 -080029 MOCK_METHOD1(GetStoragePath, bool(FilePath *filepath));
Paul Stewart7f61e522012-03-22 11:13:45 -070030 MOCK_METHOD1(UpdateService, bool(const ServiceRefPtr &service));
Chris Masoneb9c00592011-10-06 13:10:39 -070031 MOCK_METHOD0(Save, bool());
Chris Masone9d779932011-08-25 16:33:41 -070032
Chris Masone7aa5f902011-07-11 11:13:35 -070033 private:
34 DISALLOW_COPY_AND_ASSIGN(MockProfile);
35};
36
37} // namespace shill
38
39#endif // SHILL_MOCK_PROFILE_