Index: device/bluetooth/bluetooth_profile_chromeos_unittest.cc |
diff --git a/device/bluetooth/bluetooth_profile_chromeos_unittest.cc b/device/bluetooth/bluetooth_profile_chromeos_unittest.cc |
index 24061b767b6fc922d20852663e9cd1dc1e0ece4a..277e8b39da05d0506216717506be57dbdf03a4d0 100644 |
--- a/device/bluetooth/bluetooth_profile_chromeos_unittest.cc |
+++ b/device/bluetooth/bluetooth_profile_chromeos_unittest.cc |
@@ -92,6 +92,10 @@ class BluetoothProfileChromeOSTest : public testing::Test { |
message_loop_.Quit(); |
} |
+ void ConnectToProfileErrorCallback(const std::string error) { |
+ ErrorCallback(); |
+ } |
+ |
void ProfileCallback(BluetoothProfile* profile) { |
++profile_callback_count_; |
last_profile_ = profile; |
@@ -157,7 +161,7 @@ TEST_F(BluetoothProfileChromeOSTest, L2capEndToEnd) { |
profile, |
base::Bind(&BluetoothProfileChromeOSTest::Callback, |
base::Unretained(this)), |
- base::Bind(&BluetoothProfileChromeOSTest::ErrorCallback, |
+ base::Bind(&BluetoothProfileChromeOSTest::ConnectToProfileErrorCallback, |
base::Unretained(this))); |
message_loop_.Run(); |
@@ -283,7 +287,7 @@ TEST_F(BluetoothProfileChromeOSTest, RfcommEndToEnd) { |
profile, |
base::Bind(&BluetoothProfileChromeOSTest::Callback, |
base::Unretained(this)), |
- base::Bind(&BluetoothProfileChromeOSTest::ErrorCallback, |
+ base::Bind(&BluetoothProfileChromeOSTest::ConnectToProfileErrorCallback, |
base::Unretained(this))); |
message_loop_.Run(); |