Rename SonarConnectionMock
Summary: Renames SonarConnectionMock Reviewed By: jknoxville Differential Revision: D10026707 fbshipit-source-id: eb1be0ad5fa53ab1fc6ca0c7e8482bb61521daeb
This commit is contained in:
committed by
Facebook Github Bot
parent
ef6ee6281f
commit
f7aef49d8a
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
#import <FlipperKit/FlipperConnection.h>
|
#import <FlipperKit/FlipperConnection.h>
|
||||||
|
|
||||||
@interface SonarConnectionMock : NSObject<FlipperConnection>
|
@interface FlipperConnectionMock : NSObject<FlipperConnection>
|
||||||
|
|
||||||
@property (nonatomic, assign, getter=isConnected) BOOL connected;
|
@property (nonatomic, assign, getter=isConnected) BOOL connected;
|
||||||
@property (nonatomic, readonly) NSDictionary<NSString *, SonarReceiver> *receivers;
|
@property (nonatomic, readonly) NSDictionary<NSString *, SonarReceiver> *receivers;
|
||||||
@@ -5,9 +5,9 @@
|
|||||||
* file in the root directory of this source tree.
|
* file in the root directory of this source tree.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#import "SonarConnectionMock.h"
|
#import "FlipperConnectionMock.h"
|
||||||
|
|
||||||
@implementation SonarConnectionMock
|
@implementation FlipperConnectionMock
|
||||||
|
|
||||||
- (instancetype)init
|
- (instancetype)init
|
||||||
{
|
{
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
#import <FlipperKitLayoutPlugin/SKDescriptorMapper.h>
|
#import <FlipperKitLayoutPlugin/SKDescriptorMapper.h>
|
||||||
#import <FlipperKitLayoutPlugin/SKNodeDescriptor.h>
|
#import <FlipperKitLayoutPlugin/SKNodeDescriptor.h>
|
||||||
#import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h>
|
#import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h>
|
||||||
#import <FlipperKitTestUtils/SonarConnectionMock.h>
|
#import <FlipperKitTestUtils/FlipperConnectionMock.h>
|
||||||
#import <FlipperKitTestUtils/SonarResponderMock.h>
|
#import <FlipperKitTestUtils/SonarResponderMock.h>
|
||||||
|
|
||||||
#import "SKTapListenerMock.h"
|
#import "SKTapListenerMock.h"
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
withTapListener: nil
|
withTapListener: nil
|
||||||
withDescriptorMapper: _descriptorMapper];
|
withDescriptorMapper: _descriptorMapper];
|
||||||
|
|
||||||
SonarConnectionMock *connection = [SonarConnectionMock new];
|
FlipperConnectionMock *connection = [FlipperConnectionMock new];
|
||||||
SonarResponderMock *responder = [SonarResponderMock new];
|
SonarResponderMock *responder = [SonarResponderMock new];
|
||||||
[plugin didConnect:connection];
|
[plugin didConnect:connection];
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
|
|
||||||
- (void)testGetEmptyNodes {
|
- (void)testGetEmptyNodes {
|
||||||
FlipperKitLayoutPlugin *plugin = [FlipperKitLayoutPlugin new];
|
FlipperKitLayoutPlugin *plugin = [FlipperKitLayoutPlugin new];
|
||||||
SonarConnectionMock *connection = [SonarConnectionMock new];
|
FlipperConnectionMock *connection = [FlipperConnectionMock new];
|
||||||
SonarResponderMock *responder = [SonarResponderMock new];
|
SonarResponderMock *responder = [SonarResponderMock new];
|
||||||
[plugin didConnect:connection];
|
[plugin didConnect:connection];
|
||||||
|
|
||||||
@@ -85,7 +85,7 @@
|
|||||||
withTapListener: nil
|
withTapListener: nil
|
||||||
withDescriptorMapper: _descriptorMapper];
|
withDescriptorMapper: _descriptorMapper];
|
||||||
|
|
||||||
SonarConnectionMock *connection = [SonarConnectionMock new];
|
FlipperConnectionMock *connection = [FlipperConnectionMock new];
|
||||||
SonarResponderMock *responder = [SonarResponderMock new];
|
SonarResponderMock *responder = [SonarResponderMock new];
|
||||||
[plugin didConnect:connection];
|
[plugin didConnect:connection];
|
||||||
|
|
||||||
@@ -136,7 +136,7 @@
|
|||||||
withTapListener: nil
|
withTapListener: nil
|
||||||
withDescriptorMapper: _descriptorMapper];
|
withDescriptorMapper: _descriptorMapper];
|
||||||
|
|
||||||
SonarConnectionMock *connection = [SonarConnectionMock new];
|
FlipperConnectionMock *connection = [FlipperConnectionMock new];
|
||||||
SonarResponderMock *responder = [SonarResponderMock new];
|
SonarResponderMock *responder = [SonarResponderMock new];
|
||||||
[plugin didConnect:connection];
|
[plugin didConnect:connection];
|
||||||
|
|
||||||
@@ -175,7 +175,7 @@
|
|||||||
withTapListener: tapListener
|
withTapListener: tapListener
|
||||||
withDescriptorMapper: _descriptorMapper];
|
withDescriptorMapper: _descriptorMapper];
|
||||||
|
|
||||||
SonarConnectionMock *connection = [SonarConnectionMock new];
|
FlipperConnectionMock *connection = [FlipperConnectionMock new];
|
||||||
SonarResponderMock *responder = [SonarResponderMock new];
|
SonarResponderMock *responder = [SonarResponderMock new];
|
||||||
[plugin didConnect:connection];
|
[plugin didConnect:connection];
|
||||||
|
|
||||||
@@ -195,7 +195,7 @@
|
|||||||
withTapListener: tapListener
|
withTapListener: tapListener
|
||||||
withDescriptorMapper: _descriptorMapper];
|
withDescriptorMapper: _descriptorMapper];
|
||||||
|
|
||||||
SonarConnectionMock *connection = [SonarConnectionMock new];
|
FlipperConnectionMock *connection = [FlipperConnectionMock new];
|
||||||
SonarResponderMock *responder = [SonarResponderMock new];
|
SonarResponderMock *responder = [SonarResponderMock new];
|
||||||
[plugin didConnect:connection];
|
[plugin didConnect:connection];
|
||||||
|
|
||||||
@@ -227,7 +227,7 @@
|
|||||||
withTapListener: tapListener
|
withTapListener: tapListener
|
||||||
withDescriptorMapper: _descriptorMapper];
|
withDescriptorMapper: _descriptorMapper];
|
||||||
|
|
||||||
SonarConnectionMock *connection = [SonarConnectionMock new];
|
FlipperConnectionMock *connection = [FlipperConnectionMock new];
|
||||||
SonarResponderMock *responder = [SonarResponderMock new];
|
SonarResponderMock *responder = [SonarResponderMock new];
|
||||||
[plugin didConnect:connection];
|
[plugin didConnect:connection];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user