blob: 022180b5e228a7ca444cc038adc8e8b07b98c99c [file] [log] [blame]
// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SHILL_MOCK_MANAGER_
#define SHILL_MOCK_MANAGER_
#include <base/basictypes.h>
#include <gmock/gmock.h>
#include "shill/manager.h"
namespace shill {
class MockManager : public Manager {
public:
MockManager(ControlInterface *control_interface,
EventDispatcher *dispatcher,
GLib *glib);
virtual ~MockManager();
MOCK_METHOD0(device_info, DeviceInfo*(void));
MOCK_METHOD0(mutable_store, PropertyStore*(void));
MOCK_CONST_METHOD0(store, const PropertyStore&(void));
MOCK_METHOD1(RegisterService, void(const ServiceRefPtr &to_manage));
MOCK_METHOD1(UpdateService, void(const ServiceConstRefPtr &to_update));
MOCK_METHOD1(DeregisterService, void(const ServiceRefPtr &to_forget));
private:
DISALLOW_COPY_AND_ASSIGN(MockManager);
};
} // namespace shill
#endif // SHILL_MOCK_MANAGER_