blob: 78e766e58552411209b80e4a478564aafcab57b4 [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));
Chris Masone3bd3c8c2011-06-13 08:20:26 -070029 MOCK_METHOD0(CalculateState, std::string(void));
Chris Masone9be4a9d2011-05-16 15:44:09 -070030
31 private:
32 DISALLOW_COPY_AND_ASSIGN(MockService);
33};
34
35} // namespace shill
36
37#endif // SHILL_MOCK_SERVICE_