blob: 5e3eba53ae3d457a7870e9d2928b2bf960fc80ac [file] [log] [blame]
David Rochbergfa1d31d2012-03-20 10:38:07 -04001// Copyright (c) 2012 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
Jason Glasgow14521872012-05-07 19:12:15 -04005#ifndef SHILL_MOCK_CELLULAR_H_
6#define SHILL_MOCK_CELLULAR_H_
David Rochbergfa1d31d2012-03-20 10:38:07 -04007
8#include <string>
Jason Glasgow14521872012-05-07 19:12:15 -04009#include <vector>
David Rochbergfa1d31d2012-03-20 10:38:07 -040010
11#include <gmock/gmock.h>
12
13#include "shill/cellular.h"
14
15namespace shill {
16
17class MockCellular : public Cellular {
18 public:
19 MockCellular(ControlInterface *control_interface,
20 EventDispatcher *dispatcher,
21 Metrics *metrics,
22 Manager *manager,
23 const std::string &link_name,
24 const std::string &address,
25 int interface_index,
26 Type type,
27 const std::string &owner,
Jason Glasgowa585fc32012-06-06 11:04:09 -040028 const std::string &service,
David Rochbergfa1d31d2012-03-20 10:38:07 -040029 const std::string &path,
Ben Chan62028b22012-11-05 11:20:02 -080030 CellularOperatorInfo *cellular_operator_info,
Ben Chan3ecdf822012-08-06 12:29:23 -070031 mobile_provider_db *provider_db,
32 ProxyFactory *proxy_factory);
David Rochbergfa1d31d2012-03-20 10:38:07 -040033 virtual ~MockCellular();
34
Christopher Wiley7d0953e2012-11-16 00:37:10 -080035 MOCK_METHOD1(Disconnect, void(Error *error));
Christopher Wiley7d0953e2012-11-16 00:37:10 -080036 MOCK_METHOD3(OnDBusPropertiesChanged, void(
37 const std::string &interface,
38 const DBusPropertiesMap &changed_properties,
39 const std::vector<std::string> &invalidated_properties));
40 MOCK_METHOD1(set_modem_state, void(ModemState state));
Darin Petkova0a0efe2012-06-27 12:50:01 +020041 MOCK_METHOD0(DestroyService, void());
David Rochbergfa1d31d2012-03-20 10:38:07 -040042
43 private:
44 DISALLOW_COPY_AND_ASSIGN(MockCellular);
45};
46
47} // namespace shill
48
Jason Glasgow14521872012-05-07 19:12:15 -040049#endif // SHILL_MOCK_CELLULAR_H_