blob: 8ff965d4a11349fd1df3187435b735ce98d1f7ca [file] [log] [blame]
Chris Masone9be4a9d2011-05-16 15:44:09 -07001// Copyright (c) 2011 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_SERVICE_
6#define SHILL_MOCK_SERVICE_
7
8#include <base/memory/ref_counted.h>
9#include <gmock/gmock.h>
10
Chris Masone7aa5f902011-07-11 11:13:35 -070011#include "shill/refptr_types.h"
Chris Masone9be4a9d2011-05-16 15:44:09 -070012#include "shill/service.h"
13
14namespace shill {
15
16class ControlInterface;
17class EventDispatcher;
Chris Masone6791a432011-07-12 13:23:19 -070018class Manager;
Chris Masone9be4a9d2011-05-16 15:44:09 -070019
Chris Masone9be4a9d2011-05-16 15:44:09 -070020class MockService : public Service {
21 public:
22 // A constructor for the Service object
23 MockService(ControlInterface *control_interface,
24 EventDispatcher *dispatcher,
mukesh agrawal51a7e932011-07-27 16:18:26 -070025 Manager *manager);
Chris Masonea82b7112011-05-25 15:16:29 -070026 virtual ~MockService();
Chris Masone9be4a9d2011-05-16 15:44:09 -070027
Chris Masone6791a432011-07-12 13:23:19 -070028 MOCK_METHOD0(Connect, void());
29 MOCK_METHOD0(Disconnect, void());
30 MOCK_METHOD0(CalculateState, std::string());
31 MOCK_METHOD0(GetDeviceRpcId, std::string());
32 MOCK_CONST_METHOD0(GetRpcIdentifier, std::string());
Chris Masone9be4a9d2011-05-16 15:44:09 -070033 private:
34 DISALLOW_COPY_AND_ASSIGN(MockService);
35};
36
37} // namespace shill
38
39#endif // SHILL_MOCK_SERVICE_