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 <stdint.h> |
| 6 |
5 #include "base/macros.h" | 7 #include "base/macros.h" |
6 #include "device/bluetooth/bluetooth_discovery_session.h" | 8 #include "device/bluetooth/bluetooth_discovery_session.h" |
7 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
8 | 10 |
9 namespace { | 11 namespace { |
10 | 12 |
11 const device::BluetoothUUID uuid1003("1003"); | 13 const device::BluetoothUUID uuid1003("1003"); |
12 const device::BluetoothUUID uuid1004("1004"); | 14 const device::BluetoothUUID uuid1004("1004"); |
13 const device::BluetoothUUID uuid1020("1020"); | 15 const device::BluetoothUUID uuid1020("1020"); |
14 | 16 |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 result = BluetoothDiscoveryFilter::Merge(&df1, &df3); | 174 result = BluetoothDiscoveryFilter::Merge(&df1, &df3); |
173 EXPECT_EQ(BluetoothDiscoveryFilter::Transport::TRANSPORT_DUAL, | 175 EXPECT_EQ(BluetoothDiscoveryFilter::Transport::TRANSPORT_DUAL, |
174 result->GetTransport()); | 176 result->GetTransport()); |
175 | 177 |
176 // Merging with null should alway result with empty filter. | 178 // Merging with null should alway result with empty filter. |
177 result = BluetoothDiscoveryFilter::Merge(&df1, nullptr); | 179 result = BluetoothDiscoveryFilter::Merge(&df1, nullptr); |
178 EXPECT_TRUE(result->IsDefault()); | 180 EXPECT_TRUE(result->IsDefault()); |
179 } | 181 } |
180 | 182 |
181 } // namespace device | 183 } // namespace device |
OLD | NEW |