OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include <stddef.h> |
| 6 #include <stdint.h> |
| 7 |
5 #include <vector> | 8 #include <vector> |
6 | 9 |
7 #include "base/bind.h" | 10 #include "base/bind.h" |
8 #include "base/logging.h" | 11 #include "base/logging.h" |
9 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
10 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
11 #include "dbus/object_path.h" | 14 #include "dbus/object_path.h" |
12 #include "device/bluetooth/bluetooth_adapter.h" | 15 #include "device/bluetooth/bluetooth_adapter.h" |
13 #include "device/bluetooth/bluetooth_adapter_factory.h" | 16 #include "device/bluetooth/bluetooth_adapter_factory.h" |
14 #include "device/bluetooth/bluetooth_audio_sink.h" | 17 #include "device/bluetooth/bluetooth_audio_sink.h" |
(...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
936 message_loop_.RunUntilIdle(); | 939 message_loop_.RunUntilIdle(); |
937 | 940 |
938 EXPECT_EQ(observer_->data_, data_two); | 941 EXPECT_EQ(observer_->data_, data_two); |
939 EXPECT_EQ(observer_->read_mtu_, | 942 EXPECT_EQ(observer_->read_mtu_, |
940 FakeBluetoothMediaTransportClient::kDefaultReadMtu); | 943 FakeBluetoothMediaTransportClient::kDefaultReadMtu); |
941 EXPECT_EQ(observer_->state_changed_count_, 3); | 944 EXPECT_EQ(observer_->state_changed_count_, 3); |
942 EXPECT_EQ(observer_->total_read_, data_one.size() + data_two.size()); | 945 EXPECT_EQ(observer_->total_read_, data_one.size() + data_two.size()); |
943 } | 946 } |
944 | 947 |
945 } // namespace bluez | 948 } // namespace bluez |
OLD | NEW |