From 262f5c6e8853ff580b0a4b332c191478e0b7c088 Mon Sep 17 00:00:00 2001 From: Nikita Patskov Date: Wed, 30 Aug 2023 02:33:41 -0700 Subject: [PATCH] Record activities from tests Summary: Unwrapping new protocol methods Reviewed By: jbardini Differential Revision: D48679307 fbshipit-source-id: b404eaec9bb3cc72489b49c9387a2b06571573fc --- .../TestManager/FBTestManagerAPIMediator.m | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/XCTestBootstrap/TestManager/FBTestManagerAPIMediator.m b/XCTestBootstrap/TestManager/FBTestManagerAPIMediator.m index a11415120..a5cfbdd43 100644 --- a/XCTestBootstrap/TestManager/FBTestManagerAPIMediator.m +++ b/XCTestBootstrap/TestManager/FBTestManagerAPIMediator.m @@ -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 @@ -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]; }