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

Side by Side Diff: device/bluetooth/test/device_connection_helper.cc

Issue 2448713002: bluetooth: Add Device connection logic and accompanying user interface. (Closed)
Patch Set: Add comment for SetCallbackRan function in device connection helper Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698