chromeos: bluetooth: add BluetoothNodeClient
[chromium-blink-merge.git] / dbus / mock_exported_object.h
blob7deb1118d00c3d97538120e6618f5f451dc46199
1 // Copyright (c) 2012 The Chromium 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.
5 #ifndef DBUS_MOCK_EXPORTED_OBJECT_H_
6 #define DBUS_MOCK_EXPORTED_OBJECT_H_
7 #pragma once
9 #include <string>
11 #include "dbus/exported_object.h"
12 #include "dbus/object_path.h"
13 #include "testing/gmock/include/gmock/gmock.h"
15 namespace dbus {
17 // Mock for ExportedObject.
18 class MockExportedObject : public ExportedObject {
19 public:
20 MockExportedObject(Bus* bus,
21 const std::string& service_name,
22 const ObjectPath& object_path);
23 virtual ~MockExportedObject();
25 MOCK_METHOD3(ExportMethodAndBlock,
26 bool(const std::string& interface_name,
27 const std::string& method_name,
28 MethodCallCallback method_call_callback));
29 MOCK_METHOD4(ExportMethod,
30 void(const std::string& interface_name,
31 const std::string& method_name,
32 MethodCallCallback method_call_callback,
33 OnExportedCallback on_exported_callback));
34 MOCK_METHOD1(SendSignal, void(Signal* signal));
35 MOCK_METHOD0(Unregister, void());
38 } // namespace dbus
40 #endif // DBUS_MOCK_EXPORTED_OBJECT_H_