Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1374)

Side by Side Diff: chromeos/dbus/fake_bluetooth_adapter_client.h

Issue 91413002: Remove fake client creation from DBusClients' Create() functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_BLUETOOTH_ADAPTER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_ADAPTER_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_ADAPTER_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_ADAPTER_CLIENT_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/observer_list.h" 12 #include "base/observer_list.h"
13 #include "chromeos/chromeos_export.h" 13 #include "chromeos/chromeos_export.h"
14 #include "chromeos/dbus/bluetooth_adapter_client.h" 14 #include "chromeos/dbus/bluetooth_adapter_client.h"
15 #include "chromeos/dbus/dbus_client_implementation_type.h"
16 #include "dbus/object_path.h" 15 #include "dbus/object_path.h"
17 #include "dbus/property.h" 16 #include "dbus/property.h"
18 17
19 namespace chromeos { 18 namespace chromeos {
20 19
21 // FakeBluetoothAdapterClient simulates the behavior of the Bluetooth Daemon 20 // FakeBluetoothAdapterClient simulates the behavior of the Bluetooth Daemon
22 // adapter objects and is used both in test cases in place of a mock and on 21 // adapter objects and is used both in test cases in place of a mock and on
23 // the Linux desktop. 22 // the Linux desktop.
24 class CHROMEOS_EXPORT FakeBluetoothAdapterClient 23 class CHROMEOS_EXPORT FakeBluetoothAdapterClient
25 : public BluetoothAdapterClient { 24 : public BluetoothAdapterClient {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 bool visible_; 84 bool visible_;
86 bool second_visible_; 85 bool second_visible_;
87 86
88 // Number of times we've been asked to discover. 87 // Number of times we've been asked to discover.
89 int discovering_count_; 88 int discovering_count_;
90 }; 89 };
91 90
92 } // namespace chromeos 91 } // namespace chromeos
93 92
94 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_ADAPTER_CLIENT_H_ 93 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_ADAPTER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/debug_daemon_client.h ('k') | chromeos/dbus/fake_bluetooth_agent_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698