| 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 <vector> | 5 #include <vector> |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
| 12 #include "device/bluetooth/bluetooth_adapter.h" | 13 #include "device/bluetooth/bluetooth_adapter.h" |
| 13 #include "device/bluetooth/bluetooth_adapter_factory.h" | 14 #include "device/bluetooth/bluetooth_adapter_factory.h" |
| 14 #include "device/bluetooth/bluetooth_advertisement.h" | 15 #include "device/bluetooth/bluetooth_advertisement.h" |
| 15 #include "device/bluetooth/bluetooth_advertisement_bluez.h" | 16 #include "device/bluetooth/bluetooth_advertisement_bluez.h" |
| 16 #include "device/bluetooth/dbus/bluez_dbus_manager.h" | 17 #include "device/bluetooth/dbus/bluez_dbus_manager.h" |
| 17 #include "device/bluetooth/dbus/fake_bluetooth_le_advertisement_service_provider
.h" | 18 #include "device/bluetooth/dbus/fake_bluetooth_le_advertisement_service_provider
.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 TriggerReleased(advertisement); | 232 TriggerReleased(advertisement); |
| 232 EXPECT_TRUE(observer_->released()); | 233 EXPECT_TRUE(observer_->released()); |
| 233 | 234 |
| 234 // Unregistering an advertisement that has been released should give us an | 235 // Unregistering an advertisement that has been released should give us an |
| 235 // error. | 236 // error. |
| 236 UnregisterAdvertisement(advertisement); | 237 UnregisterAdvertisement(advertisement); |
| 237 ExpectError(BluetoothAdvertisement::ERROR_ADVERTISEMENT_DOES_NOT_EXIST); | 238 ExpectError(BluetoothAdvertisement::ERROR_ADVERTISEMENT_DOES_NOT_EXIST); |
| 238 } | 239 } |
| 239 | 240 |
| 240 } // namespace bluez | 241 } // namespace bluez |
| OLD | NEW |