blob: a4c319ac4f7e7e5ba1488e7d14cd1964bb2e757b [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 *));
32 MOCK_METHOD1(OnModemManagerPropertiesChanged,
33 void(const DBusPropertiesMap &));
34 MOCK_METHOD1(set_modem_state, void(ModemState));
35
36 private:
37 DISALLOW_COPY_AND_ASSIGN(MockCellular);
38};
39
40} // namespace shill
41
42#endif // SHILL_MOCK_CELLULAR_