blob: 85f7e0b55fec7c7c05ab52ed01e21819c1597448 [file] [log] [blame]
Arman Uguray6e5639f2012-11-15 20:30:19 -08001// 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_MM1_MOCK_BEARER_PROXY_H_
6#define SHILL_MM1_MOCK_BEARER_PROXY_H_
7
8#include <string>
9
10#include <base/basictypes.h>
11#include <gmock/gmock.h>
12
13#include "shill/mm1_bearer_proxy_interface.h"
14
15namespace shill {
16namespace mm1 {
17
18class MockBearerProxy : public BearerProxyInterface {
19 public:
20 MockBearerProxy();
21 virtual ~MockBearerProxy();
22
23 MOCK_METHOD3(Connect, void(Error *error,
24 const ResultCallback &callback,
25 int timeout));
26 MOCK_METHOD3(Disconnect, void(Error *error,
27 const ResultCallback &callback,
28 int timeout));
29
30 MOCK_METHOD0(Interface, const std::string());
31 MOCK_METHOD0(Connected, bool());
32 MOCK_METHOD0(Suspended, bool());
33 MOCK_METHOD0(Ip4Config, const DBusPropertiesMap());
34 MOCK_METHOD0(Ip6Config, const DBusPropertiesMap());
35 MOCK_METHOD0(IpTimeout, uint32_t());
36 MOCK_METHOD0(Properties, const DBusPropertiesMap());
37};
38
39} // namespace mm1
40} // namespace shill
41
42#endif // SHILL_MM1_MOCK_BEARER_PROXY_H_