blob: f0e5e270116fc5ae1ed379b1eedb48a6a1501866 [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
18using ::testing::_;
19using ::testing::Return;
20
21class MockService : public Service {
22 public:
23 // A constructor for the Service object
24 MockService(ControlInterface *control_interface,
25 EventDispatcher *dispatcher,
26 Device *interface)
27 : Service(control_interface, dispatcher, interface) { }
28 virtual ~MockService() {}
29
30 MOCK_METHOD0(Connect, void(void));
31 MOCK_METHOD0(Disconnect, void(void));
32
33 private:
34 DISALLOW_COPY_AND_ASSIGN(MockService);
35};
36
37} // namespace shill
38
39#endif // SHILL_MOCK_SERVICE_