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

Unified Diff: device/bluetooth/bluetooth_device_win_unittest.cc

Issue 180163009: chrome.bluetooth API improvements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ChromeOS Full build. Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/bluetooth/bluetooth_device_win.cc ('k') | device/bluetooth/bluetooth_profile_chromeos_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:
« no previous file with comments | « device/bluetooth/bluetooth_device_win.cc ('k') | device/bluetooth/bluetooth_profile_chromeos_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698