blob: 80cf1d89bded3f188e292fa300687919efb2ad37 [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
11#include "shill/service.h"
12
13namespace shill {
14
15class ControlInterface;
16class EventDispatcher;
17
Chris Masone9be4a9d2011-05-16 15:44:09 -070018class MockService : public Service {
19 public:
20 // A constructor for the Service object
21 MockService(ControlInterface *control_interface,
22 EventDispatcher *dispatcher,
Chris Masonec1e50412011-06-07 13:04:53 -070023 DeviceConfigInterfaceRefPtr interface,
Chris Masonea82b7112011-05-25 15:16:29 -070024 const std::string& name);
25 virtual ~MockService();
Chris Masone9be4a9d2011-05-16 15:44:09 -070026
27 MOCK_METHOD0(Connect, void(void));
28 MOCK_METHOD0(Disconnect, void(void));
29
30 private:
31 DISALLOW_COPY_AND_ASSIGN(MockService);
32};
33
34} // namespace shill
35
36#endif // SHILL_MOCK_SERVICE_