summaryrefslogtreecommitdiffstats
path: root/device/bluetooth
diff options
context:
space:
mode:
authorjlebel <jlebel@chromium.org>2016-01-05 14:36:04 -0800
committerCommit bot <commit-bot@chromium.org>2016-01-05 22:36:44 +0000
commit612e92558f77ca407aed55e8a058c3726775a28d (patch)
treea1ff42d0e798d5df91ad870e19cd277e62605496 /device/bluetooth
parent258b98b54d30d7f790475cd6a1c2bc154d6a36ec (diff)
downloadchromium_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.h7
-rw-r--r--device/bluetooth/test/mock_bluetooth_central_manager_mac.mm12
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++;