OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "device/bluetooth/test/device_connection_helper.h" |
| 6 |
| 7 namespace bluetooth { |
| 8 DeviceConnectionHelper::DeviceConnectionHelper( |
| 9 mojo::Binding<mojom::Device>* binding) |
| 10 : callback_ran_(false), binding_(binding) {} |
| 11 |
| 12 DeviceConnectionHelper::~DeviceConnectionHelper() { |
| 13 if (!callback_ran_) { |
| 14 DCHECK(!binding_->is_bound()); |
| 15 } |
| 16 } |
| 17 |
| 18 void DeviceConnectionHelper::SetCallbackRan(bool callback_ran) { |
| 19 callback_ran_ = callback_ran; |
| 20 } |
| 21 } // namespace bluetooth |
OLD | NEW |