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

Unified Diff: device/bluetooth/bluez/bluetooth_audio_sink_bluez_unittest.cc

Issue 2311093005: Remove calls to deprecated MessageLoop methods in device. (Closed)
Patch Set: Created 4 years, 3 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/bluez/bluetooth_advertisement_bluez_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluez/bluetooth_audio_sink_bluez_unittest.cc
diff --git a/device/bluetooth/bluez/bluetooth_audio_sink_bluez_unittest.cc b/device/bluetooth/bluez/bluetooth_audio_sink_bluez_unittest.cc
index bd1ee6b977d372d5452c0188bb13592be9ff5d2d..a6330d96a09d2ef6c9c068b9ce5c340f608ce38b 100644
--- a/device/bluetooth/bluez/bluetooth_audio_sink_bluez_unittest.cc
+++ b/device/bluetooth/bluez/bluetooth_audio_sink_bluez_unittest.cc
@@ -446,7 +446,7 @@ TEST_F(BluetoothAudioSinkBlueZTest, MediaRemovedDuringActiveState) {
fake_transport_->SetState(media_endpoint_->object_path(), "pending");
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
// Acquire is called when the state of |audio_sink_| becomes STATE_PENDING,
// and Acquire will trigger state change. Therefore, the state will be
@@ -533,7 +533,7 @@ TEST_F(BluetoothAudioSinkBlueZTest, TransportRemovedDuringActiveState) {
fake_transport_->SetState(media_endpoint_->object_path(), "pending");
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
// Acquire is called when the state of |audio_sink_| becomes STATE_PENDING,
// and Acquire will trigger state change. Therefore, the state will be
@@ -706,7 +706,7 @@ TEST_F(BluetoothAudioSinkBlueZTest, UnregisterAudioSinkDuringActiveState) {
fake_transport_->SetState(media_endpoint_->object_path(), "pending");
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
// Acquire is called when the state of |audio_sink_| becomes STATE_PENDING,
// and Acquire will trigger state change. Therefore, the state will be
@@ -834,7 +834,7 @@ TEST_F(BluetoothAudioSinkBlueZTest, AcquireFD) {
std::vector<char> data_one(16, 0x12);
fake_transport_->WriteData(media_endpoint_->object_path(), data_one);
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
// Acquire is called when the state of |audio_sink_| becomes STATE_PENDING,
// and Acquire will trigger state change. Therefore, the state will be
@@ -877,7 +877,7 @@ TEST_F(BluetoothAudioSinkBlueZTest, PauseAndResume) {
std::vector<char> data_one(16, 0x12);
fake_transport_->WriteData(media_endpoint_->object_path(), data_one);
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
EXPECT_EQ(observer_->data_, data_one);
EXPECT_EQ(observer_->read_mtu_,
@@ -897,7 +897,7 @@ TEST_F(BluetoothAudioSinkBlueZTest, PauseAndResume) {
std::vector<char> data_two(8, 0x10);
fake_transport_->WriteData(media_endpoint_->object_path(), data_two);
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
EXPECT_EQ(observer_->data_, data_two);
EXPECT_EQ(observer_->read_mtu_,
@@ -935,7 +935,7 @@ TEST_F(BluetoothAudioSinkBlueZTest, ContinuouslyStreaming) {
std::vector<char> data_one(16, 0x12);
fake_transport_->WriteData(media_endpoint_->object_path(), data_one);
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
EXPECT_EQ(observer_->data_, data_one);
EXPECT_EQ(observer_->read_mtu_,
@@ -946,7 +946,7 @@ TEST_F(BluetoothAudioSinkBlueZTest, ContinuouslyStreaming) {
std::vector<char> data_two(8, 0x10);
fake_transport_->WriteData(media_endpoint_->object_path(), data_two);
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
EXPECT_EQ(observer_->data_, data_two);
EXPECT_EQ(observer_->read_mtu_,
« no previous file with comments | « device/bluetooth/bluez/bluetooth_advertisement_bluez_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698