OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROMEOS_DBUS_FAKE_INTROSPECTABLE_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_INTROSPECTABLE_CLIENT_H_ |
6 #define CHROMEOS_DBUS_FAKE_INTROSPECTABLE_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_INTROSPECTABLE_CLIENT_H_ |
7 | 7 |
8 #include "base/basictypes.h" | |
9 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
10 #include "chromeos/dbus/introspectable_client.h" | 9 #include "chromeos/dbus/introspectable_client.h" |
11 | 10 |
12 namespace chromeos { | 11 namespace chromeos { |
13 | 12 |
14 // The IntrospectableClient implementation used on Linux desktop, which does | 13 // The IntrospectableClient implementation used on Linux desktop, which does |
15 // nothing. | 14 // nothing. |
16 class FakeIntrospectableClient: public IntrospectableClient { | 15 class FakeIntrospectableClient: public IntrospectableClient { |
17 public: | 16 public: |
18 FakeIntrospectableClient(); | 17 FakeIntrospectableClient(); |
19 ~FakeIntrospectableClient() override; | 18 ~FakeIntrospectableClient() override; |
20 | 19 |
21 void Init(dbus::Bus* bus) override; | 20 void Init(dbus::Bus* bus) override; |
22 void Introspect(const std::string& service_name, | 21 void Introspect(const std::string& service_name, |
23 const dbus::ObjectPath& object_path, | 22 const dbus::ObjectPath& object_path, |
24 const IntrospectCallback& callback) override; | 23 const IntrospectCallback& callback) override; |
25 }; | 24 }; |
26 | 25 |
27 } // namespace chromeos | 26 } // namespace chromeos |
28 | 27 |
29 #endif // CHROMEOS_DBUS_INTROSPECTABLE_CLIENT_H_ | 28 #endif // CHROMEOS_DBUS_INTROSPECTABLE_CLIENT_H_ |
OLD | NEW |