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

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

Issue 910433002: Fix crash on second failed connect to a paired device (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bugfix unit tests Created 5 years, 10 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
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_DEVICE_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 static const char kJustWorksPath[]; 165 static const char kJustWorksPath[];
166 static const char kJustWorksName[]; 166 static const char kJustWorksName[];
167 static const char kJustWorksAddress[]; 167 static const char kJustWorksAddress[];
168 static const uint32 kJustWorksClass; 168 static const uint32 kJustWorksClass;
169 169
170 static const char kLowEnergyPath[]; 170 static const char kLowEnergyPath[];
171 static const char kLowEnergyName[]; 171 static const char kLowEnergyName[];
172 static const char kLowEnergyAddress[]; 172 static const char kLowEnergyAddress[];
173 static const uint32 kLowEnergyClass; 173 static const uint32 kLowEnergyClass;
174 174
175 static const char kPairedUnconnectableDevicePath[];
176 static const char kPairedUnconnectableDeviceName[];
177 static const char kPairedUnconnectableDeviceAddress[];
178 static const uint32 kPairedUnconnectableDeviceClass;
179
175 private: 180 private:
176 // Property callback passed when we create Properties* structures. 181 // Property callback passed when we create Properties* structures.
177 void OnPropertyChanged(const dbus::ObjectPath& object_path, 182 void OnPropertyChanged(const dbus::ObjectPath& object_path,
178 const std::string& property_name); 183 const std::string& property_name);
179 184
180 void DiscoverySimulationTimer(); 185 void DiscoverySimulationTimer();
181 void IncomingPairingSimulationTimer(); 186 void IncomingPairingSimulationTimer();
182 187
183 void CompleteSimulatedPairing( 188 void CompleteSimulatedPairing(
184 const dbus::ObjectPath& object_path, 189 const dbus::ObjectPath& object_path,
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 bool pairing_cancelled_; 257 bool pairing_cancelled_;
253 258
254 int16 connection_rssi_; 259 int16 connection_rssi_;
255 int16 transmit_power_; 260 int16 transmit_power_;
256 int16 max_transmit_power_; 261 int16 max_transmit_power_;
257 }; 262 };
258 263
259 } // namespace chromeos 264 } // namespace chromeos
260 265
261 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_ 266 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/metrics/chromeos_metrics_provider_unittest.cc ('k') | chromeos/dbus/fake_bluetooth_device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698