blob: 30d0c1b62eeeab41ad37796ee30884a79f43f9ef [file] [log] [blame]
Jason Glasgow14521872012-05-07 19:12:15 -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_CELLULAR_SERVICE_H_
6#define SHILL_MOCK_CELLULAR_SERIVCE_H_
7
8#include <string>
9
10#include <gmock/gmock.h>
11
12#include "shill/cellular_service.h"
13
14namespace shill {
15
16class MockCellularService : public CellularService {
17 public:
Prathmesh Prabhu0d36b4f2013-04-01 11:45:54 -070018 MockCellularService(ModemInfo *modem_info,
Jason Glasgow14521872012-05-07 19:12:15 -040019 const CellularRefPtr &device);
20 virtual ~MockCellularService();
21
Arman Ugurayc7b15602013-02-16 00:56:18 -080022 MOCK_METHOD0(AutoConnect, void());
Jason Glasgow14521872012-05-07 19:12:15 -040023 MOCK_METHOD1(SetLastGoodApn, void(const Stringmap &apn_info));
24 MOCK_METHOD0(ClearLastGoodApn, void());
Arman Ugurayc7b15602013-02-16 00:56:18 -080025 MOCK_METHOD1(SetActivationState, void(const std::string &state));
Arman Ugurayf84a4242013-04-09 20:01:07 -070026 MOCK_METHOD1(Disconnect, void(Error *error));
mukesh agrawal0381f9a2013-07-11 16:41:52 -070027 MOCK_METHOD1(SetState, void(ConnectState state));
28 MOCK_METHOD1(SetFailure, void(ConnectFailure failure));
29 MOCK_METHOD1(SetFailureSilent, void(ConnectFailure failure));
Jason Glasgow14521872012-05-07 19:12:15 -040030
31 private:
32 DISALLOW_COPY_AND_ASSIGN(MockCellularService);
33};
34
35} // namespace shill
36
37#endif // SHILL_MOCK_CELLULAR_SERVICE_H_