blob: 64b8f96a8e40ef4397f58ab0b4beafa416aa2d28 [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
Wade Guthrie60a37062013-04-02 11:39:09 -07005#ifndef SHILL_MOCK_PROFILE_H_
6#define SHILL_MOCK_PROFILE_H_
Chris Masone7aa5f902011-07-11 11:13:35 -07007
8#include <string>
9
10#include <gmock/gmock.h>
11
12#include "shill/profile.h"
Wade Guthrie60a37062013-04-02 11:39:09 -070013#include "shill/wifi_provider.h"
Chris Masone7aa5f902011-07-11 11:13:35 -070014
Chris Masone7aa5f902011-07-11 11:13:35 -070015namespace shill {
16
Chris Masone7aa5f902011-07-11 11:13:35 -070017class MockProfile : public Profile {
18 public:
Thieu Le5133b712013-02-19 14:47:21 -080019 MockProfile(ControlInterface *control, Metrics *metrics, Manager *manager);
Chris Masone2ae797d2011-08-23 20:41:00 -070020 MockProfile(ControlInterface *control,
Thieu Le5133b712013-02-19 14:47:21 -080021 Metrics *metrics,
Chris Masone7df0c672011-07-15 10:24:54 -070022 Manager *manager,
23 const std::string &identifier);
Chris Masone7aa5f902011-07-11 11:13:35 -070024 virtual ~MockProfile();
25
Paul Stewart3d9bcf52011-12-12 15:02:22 -080026 MOCK_METHOD1(AdoptService, bool(const ServiceRefPtr &service));
27 MOCK_METHOD1(AbandonService, bool(const ServiceRefPtr &service));
Paul Stewart2c575d22012-12-07 12:28:57 -080028 MOCK_METHOD1(LoadService, bool(const ServiceRefPtr &service));
Paul Stewarta41e38d2011-11-11 07:47:29 -080029 MOCK_METHOD1(ConfigureService, bool(const ServiceRefPtr &service));
30 MOCK_METHOD1(ConfigureDevice, bool(const DeviceRefPtr &device));
Darin Petkov9c6e9812013-03-26 13:49:07 +010031 MOCK_METHOD2(DeleteEntry, void(const std::string &entry_name, Error *error));
Paul Stewart1b1a7f22012-01-06 16:24:06 -080032 MOCK_METHOD0(GetRpcIdentifier, std::string());
Paul Stewart5ad16062013-02-21 18:10:48 -080033 MOCK_METHOD1(GetStoragePath, bool(base::FilePath *filepath));
Paul Stewart7f61e522012-03-22 11:13:45 -070034 MOCK_METHOD1(UpdateService, bool(const ServiceRefPtr &service));
Darin Petkove7c6ad32012-06-29 10:22:09 +020035 MOCK_METHOD1(UpdateDevice, bool(const DeviceRefPtr &device));
Wade Guthrie60a37062013-04-02 11:39:09 -070036 MOCK_METHOD1(UpdateWiFiProvider, bool(const WiFiProvider &wifi_provider));
Chris Masoneb9c00592011-10-06 13:10:39 -070037 MOCK_METHOD0(Save, bool());
Paul Stewart66815332012-04-09 18:09:36 -070038 MOCK_CONST_METHOD0(GetConstStorage, const StoreInterface *());
Chris Masone9d779932011-08-25 16:33:41 -070039
Chris Masone7aa5f902011-07-11 11:13:35 -070040 private:
41 DISALLOW_COPY_AND_ASSIGN(MockProfile);
42};
43
44} // namespace shill
45
Wade Guthrie60a37062013-04-02 11:39:09 -070046#endif // SHILL_MOCK_PROFILE_H_