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

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

Issue 982593002: Fix BluetoothAdapterProfileChromeOS lifecycle management (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address nits, remove test debug logging Created 5 years, 9 months 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
« no previous file with comments | « no previous file | chromeos/dbus/fake_bluetooth_profile_manager_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PROFILE_MANAGER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_PROFILE_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_PROFILE_MANAGER_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_PROFILE_MANAGER_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 void RegisterProfileServiceProvider( 44 void RegisterProfileServiceProvider(
45 FakeBluetoothProfileServiceProvider* service_provider); 45 FakeBluetoothProfileServiceProvider* service_provider);
46 void UnregisterProfileServiceProvider( 46 void UnregisterProfileServiceProvider(
47 FakeBluetoothProfileServiceProvider* service_provider); 47 FakeBluetoothProfileServiceProvider* service_provider);
48 FakeBluetoothProfileServiceProvider* GetProfileServiceProvider( 48 FakeBluetoothProfileServiceProvider* GetProfileServiceProvider(
49 const std::string& uuid); 49 const std::string& uuid);
50 50
51 // UUIDs recognised for testing. 51 // UUIDs recognised for testing.
52 static const char kL2capUuid[]; 52 static const char kL2capUuid[];
53 static const char kRfcommUuid[]; 53 static const char kRfcommUuid[];
54 static const char kUnregisterableUuid[];
54 55
55 private: 56 private:
56 // Map of a D-Bus object path to the FakeBluetoothProfileServiceProvider 57 // Map of a D-Bus object path to the FakeBluetoothProfileServiceProvider
57 // registered for it; maintained by RegisterProfileServiceProvider() and 58 // registered for it; maintained by RegisterProfileServiceProvider() and
58 // UnregisterProfileServiceProvicer() called by the constructor and 59 // UnregisterProfileServiceProvicer() called by the constructor and
59 // destructor of FakeBluetoothProfileServiceProvider. 60 // destructor of FakeBluetoothProfileServiceProvider.
60 typedef std::map<dbus::ObjectPath, FakeBluetoothProfileServiceProvider*> 61 typedef std::map<dbus::ObjectPath, FakeBluetoothProfileServiceProvider*>
61 ServiceProviderMap; 62 ServiceProviderMap;
62 ServiceProviderMap service_provider_map_; 63 ServiceProviderMap service_provider_map_;
63 64
64 // Map of Profile UUID to the D-Bus object path of the service provider 65 // Map of Profile UUID to the D-Bus object path of the service provider
65 // in |service_provider_map_|. Maintained by RegisterProfile() and 66 // in |service_provider_map_|. Maintained by RegisterProfile() and
66 // UnregisterProfile() in response to BluetoothProfile methods. 67 // UnregisterProfile() in response to BluetoothProfile methods.
67 typedef std::map<std::string, dbus::ObjectPath> ProfileMap; 68 typedef std::map<std::string, dbus::ObjectPath> ProfileMap;
68 ProfileMap profile_map_; 69 ProfileMap profile_map_;
69 }; 70 };
70 71
71 } // namespace chromeos 72 } // namespace chromeos
72 73
73 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_PROFILE_MANAGER_CLIENT_H_ 74 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_PROFILE_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chromeos/dbus/fake_bluetooth_profile_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698