diff options
author | jlebel <jlebel@chromium.org> | 2016-01-05 14:36:04 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-05 22:36:44 +0000 |
commit | 612e92558f77ca407aed55e8a058c3726775a28d (patch) | |
tree | a1ff42d0e798d5df91ad870e19cd277e62605496 /device/bluetooth | |
parent | 258b98b54d30d7f790475cd6a1c2bc154d6a36ec (diff) | |
download | chromium_src-612e92558f77ca407aed55e8a058c3726775a28d.zip chromium_src-612e92558f77ca407aed55e8a058c3726775a28d.tar.gz chromium_src-612e92558f77ca407aed55e8a058c3726775a28d.tar.bz2 |
Clean up Objective-C unit tests.
In Objective-C, all instance variables are always set to 0 (or nil), so it is useless to set them to 0. Plus -[MockCentralManager initWithDelegate:queue:options:] is not used.
BUG=
Review URL: https://codereview.chromium.org/1548973002
Cr-Commit-Position: refs/heads/master@{#367670}
Diffstat (limited to 'device/bluetooth')
-rw-r--r-- | device/bluetooth/test/mock_bluetooth_central_manager_mac.h | 7 | ||||
-rw-r--r-- | device/bluetooth/test/mock_bluetooth_central_manager_mac.mm | 12 |
2 files changed, 0 insertions, 19 deletions
diff --git a/device/bluetooth/test/mock_bluetooth_central_manager_mac.h b/device/bluetooth/test/mock_bluetooth_central_manager_mac.h index 876bd477..6e60614 100644 --- a/device/bluetooth/test/mock_bluetooth_central_manager_mac.h +++ b/device/bluetooth/test/mock_bluetooth_central_manager_mac.h @@ -26,13 +26,6 @@ @property(nonatomic, assign) id<CBCentralManagerDelegate> delegate; @property(nonatomic, assign) CBCentralManagerState state; -// Designated initializer -- (instancetype)init; - -- (instancetype)initWithDelegate:(id<CBCentralManagerDelegate>)delegate - queue:(dispatch_queue_t)queue - options:(NSDictionary*)options; - - (void)scanForPeripheralsWithServices:(NSArray*)serviceUUIDs options:(NSDictionary*)options; diff --git a/device/bluetooth/test/mock_bluetooth_central_manager_mac.mm b/device/bluetooth/test/mock_bluetooth_central_manager_mac.mm index ca6164c..96e7ce9 100644 --- a/device/bluetooth/test/mock_bluetooth_central_manager_mac.mm +++ b/device/bluetooth/test/mock_bluetooth_central_manager_mac.mm @@ -11,18 +11,6 @@ @synthesize delegate = _delegate; @synthesize state = _state; -- (instancetype)init { - _scanForPeripheralsCallCount = 0; - _stopScanCallCount = 0; - return self; -} - -- (instancetype)initWithDelegate:(id<CBCentralManagerDelegate>)delegate - queue:(dispatch_queue_t)queue - options:(NSDictionary*)options { - return [self init]; -} - - (void)scanForPeripheralsWithServices:(NSArray*)serviceUUIDs options:(NSDictionary*)options { _scanForPeripheralsCallCount++; |