blob: 74fd4d7524bde614cc5215c6b203fd54bbb1766f [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
5#ifndef SHILL_MOCK_DEVICE_
6#define SHILL_MOCK_DEVICE_
7
8#include <string>
9
10#include <gmock/gmock.h>
11
12#include "shill/cellular.h"
13
14namespace shill {
15
16class MockCellular : public Cellular {
17 public:
18 MockCellular(ControlInterface *control_interface,
19 EventDispatcher *dispatcher,
20 Metrics *metrics,
21 Manager *manager,
22 const std::string &link_name,
23 const std::string &address,
24 int interface_index,
25 Type type,
26 const std::string &owner,
27 const std::string &path,
28 mobile_provider_db *provider_db);
29 virtual ~MockCellular();
30
31 MOCK_METHOD2(InitCapability, void(Type, ProxyFactory *));
Jason Glasgow4c0724a2012-04-17 15:47:40 -040032 MOCK_METHOD3(OnDBusPropertiesChanged, void(const std::string &,
33 const DBusPropertiesMap &,
34 const std::vector<std::string> &));
David Rochbergfa1d31d2012-03-20 10:38:07 -040035 MOCK_METHOD1(set_modem_state, void(ModemState));
36
37 private:
38 DISALLOW_COPY_AND_ASSIGN(MockCellular);
39};
40
41} // namespace shill
42
43#endif // SHILL_MOCK_CELLULAR_