Skip to content

Commit e98778c

Browse files
restyled-commitsnivi-apple
authored andcommitted
Restyled by clang-format
1 parent 217cd66 commit e98778c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/darwin/Framework/CHIPTests/MTRDeviceTests.m

+3-5
Original file line numberDiff line numberDiff line change
@@ -3126,15 +3126,14 @@ + (void)checkAttributeReportTriggersConfigurationChanged:(MTRAttributeIDType)att
31263126
__block BOOL wasOnDeviceConfigurationChangedCallbackCalled = NO;
31273127

31283128
delegate.onDeviceConfigurationChanged = ^() {
3129-
[deviceConfigurationChangedExpectation fulfill];
3129+
[deviceConfigurationChangedExpectation fulfill];
31303130
wasOnDeviceConfigurationChangedCallbackCalled = YES;
31313131
};
31323132

31333133
[device unitTestInjectAttributeReport:attributeReport];
31343134

31353135
[testcase waitForExpectations:@[ gotAttributeReportExpectation, gotAttributeReportEndExpectation, deviceConfigurationChangedExpectation ] timeout:kTimeoutInSeconds];
3136-
if (!expectConfigurationChanged)
3137-
{
3136+
if (!expectConfigurationChanged) {
31383137
XCTAssertFalse(wasOnDeviceConfigurationChangedCallbackCalled);
31393138
}
31403139
}
@@ -3416,7 +3415,7 @@ - (void)test033_TestMTRDeviceDeviceConfigurationChanged
34163415
}
34173416
];
34183417

3419-
// Test an attribute report with multiple attributes reported
3418+
// Test an attribute report with multiple attributes at least one of which triggers device configuration changed.
34203419
dataVersionForAttributeList = [NSNumber numberWithUnsignedLongLong:(dataVersionForAttributeList.unsignedLongLongValue + 1)];
34213420
dataVersionForFeatureMap = [NSNumber numberWithUnsignedLongLong:(dataVersionForFeatureMap.unsignedLongLongValue + 1)];
34223421
dataVersionForPowerConfigurationSources = [NSNumber numberWithUnsignedLongLong:(dataVersionForPowerConfigurationSources.unsignedLongLongValue + 1)];
@@ -3451,7 +3450,6 @@ - (void)test033_TestMTRDeviceDeviceConfigurationChanged
34513450
XCTestExpectation * gotAttributeReportWithMultipleAttributesEndExpectation = [self expectationWithDescription:@"Attribute report with multiple attributes has ended"];
34523451
XCTestExpectation * deviceConfigurationChangedExpectationForAttributeReportWithMultipleAttributes = [self expectationWithDescription:@"Device configuration changed was receieved due to an attribute report with multiple attributes "];
34533452
delegate.onAttributeDataReceived = ^(NSArray<NSDictionary<NSString *, id> *> * attributeReport) {
3454-
NSLog(@"got subscription report %@", attributeReport);
34553453
attributeReportsReceived += attributeReport.count;
34563454
XCTAssert(attributeReportsReceived > 0);
34573455
[gotAttributeReportWithMultipleAttributesExpectation fulfill];

0 commit comments

Comments
 (0)