@@ -3283,6 +3283,7 @@ - (void)checkAttributeReportTriggersConfigurationChanged:(MTRAttributeIDType)att
3283
3283
3284
3284
// Check if the received attribute report matches the injected attribute report.
3285
3285
delegate.onAttributeDataReceived = ^(NSArray<NSDictionary<NSString *, id> *> * attributeReport) {
3286
+ NSLog(@"checkAttributeReportTriggersConfigurationChanged: onAttributeDataReceived called");
3286
3287
attributeReportsReceived += attributeReport.count;
3287
3288
XCTAssert(attributeReportsReceived > 0, @"%@", description);
3288
3289
for (NSDictionary<NSString *, id> * attributeDict in attributeReport) {
@@ -3309,12 +3310,14 @@ - (void)checkAttributeReportTriggersConfigurationChanged:(MTRAttributeIDType)att
3309
3310
};
3310
3311
3311
3312
delegate.onReportEnd = ^() {
3313
+ NSLog(@"checkAttributeReportTriggersConfigurationChanged: onReportEnd called");
3312
3314
[gotAttributeReportEndExpectation fulfill];
3313
3315
};
3314
3316
3315
3317
__block BOOL wasOnDeviceConfigurationChangedCallbackCalled = NO;
3316
3318
3317
3319
delegate.onDeviceConfigurationChanged = ^() {
3320
+ NSLog(@"checkAttributeReportTriggersConfigurationChanged: onDeviceConfigurationChanged called");
3318
3321
[deviceConfigurationChangedExpectation fulfill];
3319
3322
wasOnDeviceConfigurationChangedCallbackCalled = YES;
3320
3323
};
@@ -3365,6 +3368,7 @@ - (void)test033_TestMTRDeviceDeviceConfigurationChanged
3365
3368
__block NSNumber * endpointForPowerSourceConfigurationSources;
3366
3369
3367
3370
delegate.onAttributeDataReceived = ^(NSArray<NSDictionary<NSString *, id> *> * attributeReport) {
3371
+ NSLog(@"test033_TestMTRDeviceDeviceConfigurationChanged: onAttributeDataReceived called");
3368
3372
attributeReportsReceived += attributeReport.count;
3369
3373
XCTAssert(attributeReportsReceived > 0);
3370
3374
@@ -3423,6 +3427,7 @@ - (void)test033_TestMTRDeviceDeviceConfigurationChanged
3423
3427
};
3424
3428
3425
3429
delegate.onReportEnd = ^() {
3430
+ NSLog(@"test033_TestMTRDeviceDeviceConfigurationChanged: onReportEnd called");
3426
3431
XCTAssertNotNil(dataVersionForDescriptor);
3427
3432
XCTAssertNotNil(dataVersionForOvenCavityOperationalState);
3428
3433
XCTAssertNotNil(dataVersionForIdentify);
@@ -3660,16 +3665,19 @@ - (void)test033_TestMTRDeviceDeviceConfigurationChanged
3660
3665
XCTestExpectation * gotAttributeReportWithMultipleAttributesEndExpectation = [self expectationWithDescription:@"Attribute report with multiple attributes has ended"];
3661
3666
XCTestExpectation * deviceConfigurationChangedExpectationForAttributeReportWithMultipleAttributes = [self expectationWithDescription:@"Device configuration changed was receieved due to an attribute report with multiple attributes "];
3662
3667
delegate.onAttributeDataReceived = ^(NSArray<NSDictionary<NSString *, id> *> * attributeReport) {
3668
+ NSLog(@"test033_TestMTRDeviceDeviceConfigurationChanged: onAttributeDataReceived called with multiple attributes");
3663
3669
attributeReportsReceived += attributeReport.count;
3664
3670
XCTAssert(attributeReportsReceived > 0);
3665
3671
[gotAttributeReportWithMultipleAttributesExpectation fulfill];
3666
3672
};
3667
3673
3668
3674
delegate.onReportEnd = ^() {
3675
+ NSLog(@"test033_TestMTRDeviceDeviceConfigurationChanged: onReportEnd called with multiple attributes");
3669
3676
[gotAttributeReportWithMultipleAttributesEndExpectation fulfill];
3670
3677
};
3671
3678
3672
3679
delegate.onDeviceConfigurationChanged = ^() {
3680
+ NSLog(@"test033_TestMTRDeviceDeviceConfigurationChanged: onDeviceConfigurationChanged called for testing with multiple attributes");
3673
3681
[deviceConfigurationChangedExpectationForAttributeReportWithMultipleAttributes fulfill];
3674
3682
};
3675
3683
0 commit comments