Skip to content

Commit

Permalink
Record activities from tests
Browse files Browse the repository at this point in the history
Summary: Unwrapping new protocol methods

Reviewed By: jbardini

Differential Revision: D48679307

fbshipit-source-id: b404eaec9bb3cc72489b49c9387a2b06571573fc
  • Loading branch information
Nikita Patskov authored and facebook-github-bot committed Aug 30, 2023
1 parent dc48813 commit 262f5c6
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions XCTestBootstrap/TestManager/FBTestManagerAPIMediator.m
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,16 @@ - (id)_XCT_testCase:(NSString *)testCase method:(NSString *)method willStartActi
return nil;
}

- (id)_XCT_testCaseWithIdentifier:(XCTTestIdentifier *)arg1 didFinishActivity:(XCActivityRecord *)arg2 {
[self.reporterAdapter _XCT_testCase:arg1.firstComponent method:arg1.lastComponent didFinishActivity:arg2];
return nil;
}

- (id)_XCT_testCaseWithIdentifier:(XCTTestIdentifier *)arg1 willStartActivity:(XCActivityRecord *)arg2 {
[self.reporterAdapter _XCT_testCase:arg1.firstComponent method:arg1.lastComponent willStartActivity:arg2];
return nil;
}

#pragma mark - Unimplemented

- (id)_XCT_nativeFocusItemDidChangeAtTime:(NSNumber *)arg1 parameterSnapshot:(XCElementSnapshot *)arg2 applicationSnapshot:(XCElementSnapshot *)arg3
Expand Down Expand Up @@ -613,14 +623,6 @@ - (id)_XCT_reportSelfDiagnosisIssue:(NSString *)arg1 description:(NSString *)arg
return [self handleUnimplementedXCTRequest:_cmd];
}

- (id)_XCT_testCaseWithIdentifier:(XCTTestIdentifier *)arg1 didFinishActivity:(XCActivityRecord *)arg2 {
return [self handleUnimplementedXCTRequest:_cmd];
}

- (id)_XCT_testCaseWithIdentifier:(XCTTestIdentifier *)arg1 willStartActivity:(XCActivityRecord *)arg2 {
return [self handleUnimplementedXCTRequest:_cmd];
}

- (id)_XCT_testCaseWithIdentifier:(XCTTestIdentifier *)arg1 didMeasureMetric:(NSDictionary *)arg2 file:(NSString *)arg3 line:(NSNumber *)arg4 {
return [self handleUnimplementedXCTRequest:_cmd];
}
Expand Down

0 comments on commit 262f5c6

Please sign in to comment.