Index: device/bluetooth/bluetooth_device_win_unittest.cc |
diff --git a/device/bluetooth/bluetooth_device_win_unittest.cc b/device/bluetooth/bluetooth_device_win_unittest.cc |
index 45a4a81a31b6280d35ebaf45b2da03a4411e5e46..e784863e3cd770f9b563e7e96f71e9ccb327a7c3 100644 |
--- a/device/bluetooth/bluetooth_device_win_unittest.cc |
+++ b/device/bluetooth/bluetooth_device_win_unittest.cc |
@@ -6,9 +6,12 @@ |
#include "base/bind.h" |
#include "base/memory/scoped_ptr.h" |
#include "base/memory/scoped_vector.h" |
+#include "base/sequenced_task_runner.h" |
#include "base/strings/string_number_conversions.h" |
+#include "base/test/test_simple_task_runner.h" |
#include "device/bluetooth/bluetooth_device_win.h" |
#include "device/bluetooth/bluetooth_service_record.h" |
+#include "device/bluetooth/bluetooth_socket_thread_win.h" |
#include "device/bluetooth/bluetooth_task_manager_win.h" |
#include "device/bluetooth/bluetooth_uuid.h" |
#include "testing/gtest/include/gtest/gtest.h" |
@@ -60,11 +63,23 @@ class BluetoothDeviceWinTest : public testing::Test { |
base::HexStringToBytes(kTestVideoSdpBytes, &video_state->sdp_bytes); |
device_state.service_record_states.push_back(video_state); |
- device_.reset(new BluetoothDeviceWin(device_state)); |
+ scoped_refptr<base::SequencedTaskRunner> ui_task_runner( |
+ new base::TestSimpleTaskRunner()); |
+ scoped_refptr<BluetoothSocketThreadWin> socket_thread( |
+ BluetoothSocketThreadWin::Get()); |
+ device_.reset(new BluetoothDeviceWin(device_state, |
+ ui_task_runner, |
+ socket_thread, |
+ NULL, |
+ net::NetLog::Source())); |
// Add empty device. |
device_state.service_record_states.clear(); |
- empty_device_.reset(new BluetoothDeviceWin(device_state)); |
+ empty_device_.reset(new BluetoothDeviceWin(device_state, |
+ ui_task_runner, |
+ socket_thread, |
+ NULL, |
+ net::NetLog::Source())); |
} |
protected: |