chrome: bluetooth: hook up the AdapterAdded signal
[chromium-blink-merge.git] / dbus / mock_object_proxy.h
blobb5d44777b7035cba9b8a0a3c638a92091002d121
1 // Copyright (c) 2011 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_OBJECT_PROXY_H_
6 #define DBUS_MOCK_OBJECT_PROXY_H_
7 #pragma once
9 #include <string>
11 #include "dbus/object_proxy.h"
12 #include "testing/gmock/include/gmock/gmock.h"
14 namespace dbus {
16 // Mock for ObjectProxy.
17 class MockObjectProxy : public ObjectProxy {
18 public:
19 MockObjectProxy(Bus* bus,
20 const std::string& service_name,
21 const std::string& object_path);
22 virtual ~MockObjectProxy();
24 MOCK_METHOD2(CallMethodAndBlock, Response*(MethodCall* method_call,
25 int timeout_ms));
26 MOCK_METHOD3(CallMethod, void(MethodCall* method_call,
27 int timeout_ms,
28 ResponseCallback callback));
29 MOCK_METHOD4(ConnectToSignal,
30 void(const std::string& interface_name,
31 const std::string& signal_name,
32 SignalCallback signal_callback,
33 OnConnectedCallback on_connected_callback));
34 MOCK_METHOD0(Detach, void());
37 } // namespace dbus
39 #endif // DBUS_MOCK_OBJECT_PROXY_H_