diff --git a/src/darwin/Framework/CHIPTests/MTRDeviceTests.m b/src/darwin/Framework/CHIPTests/MTRDeviceTests.m index cb2acf2db2ce28..8a3188cbeb7db1 100644 --- a/src/darwin/Framework/CHIPTests/MTRDeviceTests.m +++ b/src/darwin/Framework/CHIPTests/MTRDeviceTests.m @@ -3283,6 +3283,7 @@ - (void)checkAttributeReportTriggersConfigurationChanged:(MTRAttributeIDType)att // Check if the received attribute report matches the injected attribute report. delegate.onAttributeDataReceived = ^(NSArray *> * attributeReport) { + NSLog(@"checkAttributeReportTriggersConfigurationChanged: onAttributeDataReceived called"); attributeReportsReceived += attributeReport.count; XCTAssert(attributeReportsReceived > 0, @"%@", description); for (NSDictionary * attributeDict in attributeReport) { @@ -3309,12 +3310,14 @@ - (void)checkAttributeReportTriggersConfigurationChanged:(MTRAttributeIDType)att }; delegate.onReportEnd = ^() { + NSLog(@"checkAttributeReportTriggersConfigurationChanged: onReportEnd called"); [gotAttributeReportEndExpectation fulfill]; }; __block BOOL wasOnDeviceConfigurationChangedCallbackCalled = NO; delegate.onDeviceConfigurationChanged = ^() { + NSLog(@"checkAttributeReportTriggersConfigurationChanged: onDeviceConfigurationChanged called"); [deviceConfigurationChangedExpectation fulfill]; wasOnDeviceConfigurationChangedCallbackCalled = YES; }; @@ -3365,6 +3368,7 @@ - (void)test033_TestMTRDeviceDeviceConfigurationChanged __block NSNumber * endpointForPowerSourceConfigurationSources; delegate.onAttributeDataReceived = ^(NSArray *> * attributeReport) { + NSLog(@"test033_TestMTRDeviceDeviceConfigurationChanged: onAttributeDataReceived called"); attributeReportsReceived += attributeReport.count; XCTAssert(attributeReportsReceived > 0); @@ -3423,6 +3427,7 @@ - (void)test033_TestMTRDeviceDeviceConfigurationChanged }; delegate.onReportEnd = ^() { + NSLog(@"test033_TestMTRDeviceDeviceConfigurationChanged: onReportEnd called"); XCTAssertNotNil(dataVersionForDescriptor); XCTAssertNotNil(dataVersionForOvenCavityOperationalState); XCTAssertNotNil(dataVersionForIdentify); @@ -3660,16 +3665,19 @@ - (void)test033_TestMTRDeviceDeviceConfigurationChanged XCTestExpectation * gotAttributeReportWithMultipleAttributesEndExpectation = [self expectationWithDescription:@"Attribute report with multiple attributes has ended"]; XCTestExpectation * deviceConfigurationChangedExpectationForAttributeReportWithMultipleAttributes = [self expectationWithDescription:@"Device configuration changed was receieved due to an attribute report with multiple attributes "]; delegate.onAttributeDataReceived = ^(NSArray *> * attributeReport) { + NSLog(@"test033_TestMTRDeviceDeviceConfigurationChanged: onAttributeDataReceived called with multiple attributes"); attributeReportsReceived += attributeReport.count; XCTAssert(attributeReportsReceived > 0); [gotAttributeReportWithMultipleAttributesExpectation fulfill]; }; delegate.onReportEnd = ^() { + NSLog(@"test033_TestMTRDeviceDeviceConfigurationChanged: onReportEnd called with multiple attributes"); [gotAttributeReportWithMultipleAttributesEndExpectation fulfill]; }; delegate.onDeviceConfigurationChanged = ^() { + NSLog(@"test033_TestMTRDeviceDeviceConfigurationChanged: onDeviceConfigurationChanged called for testing with multiple attributes"); [deviceConfigurationChangedExpectationForAttributeReportWithMultipleAttributes fulfill]; };