@@ -103,7 +103,7 @@ - (void)testCustomUserAgent {
103103
104104 XCTestExpectation *expectation = [self expectationWithDescription: @" User-Agent" ];
105105
106- MPNetworkCommunication *networkCommunication = [[MPNetworkCommunication alloc ] init ];
106+ MPNetworkCommunication_PRIVATE *networkCommunication = [[MPNetworkCommunication_PRIVATE alloc ] init ];
107107
108108 MPMessage *message = [[MPMessage alloc ] initWithSession: nil messageType: @" e" messageInfo: @{@" key" :@" value" } uploadStatus: MPUploadStatusBatch UUID: [[NSUUID UUID ] UUIDString ] timestamp: [[NSDate date ] timeIntervalSince1970 ] userId: [MPPersistenceController mpId ] dataPlanId: @" test" dataPlanVersion: @(1 )];
109109 MPUpload *upload = [[MPUpload alloc ] initWithSessionId: nil uploadDictionary: @{} dataPlanId: @" test" dataPlanVersion: @(1 ) uploadSettings: [MPUploadSettings currentUploadSettings ]];
@@ -130,7 +130,7 @@ - (void)testDisableCollectUserAgent {
130130
131131 XCTestExpectation *expectation = [self expectationWithDescription: @" User-Agent" ];
132132
133- MPNetworkCommunication *networkCommunication = [[MPNetworkCommunication alloc ] init ];
133+ MPNetworkCommunication_PRIVATE *networkCommunication = [[MPNetworkCommunication_PRIVATE alloc ] init ];
134134
135135 MPMessage *message = [[MPMessage alloc ] initWithSession: nil messageType: @" e" messageInfo: @{@" key" :@" value" } uploadStatus: MPUploadStatusBatch UUID: [[NSUUID UUID ] UUIDString ] timestamp: [[NSDate date ] timeIntervalSince1970 ] userId: [MPPersistenceController mpId ] dataPlanId: @" test" dataPlanVersion: @(1 )];
136136 MPUpload *upload = [[MPUpload alloc ] initWithSessionId: nil uploadDictionary: @{} dataPlanId: @" test" dataPlanVersion: @(1 ) uploadSettings: [MPUploadSettings currentUploadSettings ]];
@@ -182,7 +182,7 @@ - (void)testInvalidHMACSha256Encode {
182182}
183183
184184- (void )testURLRequestComposition {
185- MPNetworkCommunication *networkCommunication = [[MPNetworkCommunication alloc ] init ];
185+ MPNetworkCommunication_PRIVATE *networkCommunication = [[MPNetworkCommunication_PRIVATE alloc ] init ];
186186 MPURLRequestBuilder *urlRequestBuilder = [MPURLRequestBuilder newBuilderWithURL: [networkCommunication configURL ] message: nil httpMethod: @" GET" ];
187187 NSMutableURLRequest *asyncURLRequest = [urlRequestBuilder build ];
188188
@@ -250,7 +250,7 @@ - (void)testEtag {
250250 NSTimeInterval requestTimestamp = [[NSDate date ] timeIntervalSince1970 ];
251251 [[MPIUserDefaults standardUserDefaults ] setConfiguration: responseConfiguration eTag: eTag requestTimestamp: requestTimestamp currentAge: @" 0" maxAge: nil ];
252252
253- MPNetworkCommunication *networkCommunication = [[MPNetworkCommunication alloc ] init ];
253+ MPNetworkCommunication_PRIVATE *networkCommunication = [[MPNetworkCommunication_PRIVATE alloc ] init ];
254254 MPURLRequestBuilder *urlRequestBuilder = [MPURLRequestBuilder newBuilderWithURL: [networkCommunication configURL ] message: nil httpMethod: @" GET" ];
255255 NSMutableURLRequest *asyncURLRequest = [urlRequestBuilder build ];
256256
@@ -397,7 +397,7 @@ - (void)testEventRequest {
397397
398398 XCTAssertEqual ([MPURLRequestBuilder requestTimeout ], 10 , @" Should have been equal." );
399399
400- MPNetworkCommunication *networkCommunication = [[MPNetworkCommunication alloc ] init ];
400+ MPNetworkCommunication_PRIVATE *networkCommunication = [[MPNetworkCommunication_PRIVATE alloc ] init ];
401401
402402 MPMessage *message = [[MPMessage alloc ] initWithSession: nil messageType: @" e" messageInfo: @{@" key" :@" value" } uploadStatus: MPUploadStatusBatch UUID: [[NSUUID UUID ] UUIDString ] timestamp: [[NSDate date ] timeIntervalSince1970 ] userId: [MPPersistenceController mpId ] dataPlanId: @" test" dataPlanVersion: @(1 )];
403403 MPUpload *upload = [[MPUpload alloc ] initWithSessionId: nil uploadDictionary: @{} dataPlanId: @" test" dataPlanVersion: @(1 ) uploadSettings: [MPUploadSettings currentUploadSettings ]];
@@ -435,7 +435,7 @@ - (void)testEventRequest {
435435}
436436
437437- (void )testSignatureRelativePath {
438- MPNetworkCommunication *networkCommunication = [[MPNetworkCommunication alloc ] init ];
438+ MPNetworkCommunication_PRIVATE *networkCommunication = [[MPNetworkCommunication_PRIVATE alloc ] init ];
439439 MPNetworkOptions *networkOptions = [[MPNetworkOptions alloc ] init ];
440440 MParticle *sharedInstance = [MParticle sharedInstance ];
441441 id mockMParticle = OCMPartialMock (sharedInstance);
0 commit comments