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

Side by Side Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothCharacteristicProperties.cpp

Issue 2883353002: Replace ASSERT with DCHECK_LE/GE/GT/LT/NE as appropriate (Closed)
Patch Set: DCHECK in BluetoothCharacteristicProperties.cpp Created 3 years, 7 months 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
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 "modules/bluetooth/BluetoothCharacteristicProperties.h" 5 #include "modules/bluetooth/BluetoothCharacteristicProperties.h"
6 6
7 namespace blink { 7 namespace blink {
8 8
9 BluetoothCharacteristicProperties* BluetoothCharacteristicProperties::Create( 9 BluetoothCharacteristicProperties* BluetoothCharacteristicProperties::Create(
10 uint32_t properties) { 10 uint32_t properties) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 bool BluetoothCharacteristicProperties::reliableWrite() const { 42 bool BluetoothCharacteristicProperties::reliableWrite() const {
43 return properties & Property::kReliableWrite; 43 return properties & Property::kReliableWrite;
44 } 44 }
45 45
46 bool BluetoothCharacteristicProperties::writableAuxiliaries() const { 46 bool BluetoothCharacteristicProperties::writableAuxiliaries() const {
47 return properties & Property::kWritableAuxiliaries; 47 return properties & Property::kWritableAuxiliaries;
48 } 48 }
49 49
50 BluetoothCharacteristicProperties::BluetoothCharacteristicProperties( 50 BluetoothCharacteristicProperties::BluetoothCharacteristicProperties(
51 uint32_t device_properties) { 51 uint32_t device_properties) {
52 ASSERT(device_properties != Property::kNone); 52 DCHECK(device_properties != Property::kNone);
53 properties = device_properties; 53 properties = device_properties;
54 } 54 }
55 55
56 } // namespace blink 56 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698