@@ -111,7 +111,7 @@ class TestCommandBridge : public CHIPCommandBridge,
111
111
CHIP_ERROR WaitForMs (
112
112
const char * _Nullable identity, const chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type & value)
113
113
{
114
- dispatch_time_t delayTime = dispatch_time (DISPATCH_TIME_NOW, (int64_t )(value.ms * NSEC_PER_MSEC));
114
+ dispatch_time_t delayTime = dispatch_time (DISPATCH_TIME_NOW, (int64_t ) (value.ms * NSEC_PER_MSEC));
115
115
dispatch_after (delayTime, mCallbackQueue, ^(void ) {
116
116
NextTest ();
117
117
});
@@ -310,7 +310,8 @@ class TestCommandBridge : public CHIPCommandBridge,
310
310
return ConstraintsChecker::CheckConstraintIsHexString (itemName, value, expectHexString);
311
311
}
312
312
313
- template <typename T> bool CheckConstraintContains (const char * _Nonnull itemName, const NSArray * _Nonnull current, T expected)
313
+ template <typename T>
314
+ bool CheckConstraintContains (const char * _Nonnull itemName, const NSArray * _Nonnull current, T expected)
314
315
{
315
316
for (id currentElement in current) {
316
317
if ([currentElement isEqualToNumber: @(expected)]) {
@@ -322,7 +323,8 @@ class TestCommandBridge : public CHIPCommandBridge,
322
323
return false ;
323
324
}
324
325
325
- template <typename T> bool CheckConstraintExcludes (const char * _Nonnull itemName, const NSArray * _Nonnull current, T expected)
326
+ template <typename T>
327
+ bool CheckConstraintExcludes (const char * _Nonnull itemName, const NSArray * _Nonnull current, T expected)
326
328
{
327
329
for (id currentElement in current) {
328
330
if ([currentElement isEqualToNumber: @(expected)]) {
@@ -388,7 +390,8 @@ class TestCommandBridge : public CHIPCommandBridge,
388
390
return CheckConstraintNotValue (itemName, current, @(expected));
389
391
}
390
392
391
- template <typename T> bool CheckConstraintNotValue (const char * _Nonnull itemName, NSError * _Nullable current, T expected)
393
+ template <typename T>
394
+ bool CheckConstraintNotValue (const char * _Nonnull itemName, NSError * _Nullable current, T expected)
392
395
{
393
396
NSNumber * currentValue = @(MTRErrorToCHIPErrorCode (current).AsInteger ());
394
397
return CheckConstraintNotValue (itemName, currentValue, @(expected));
@@ -540,25 +543,29 @@ class TestCommandBridge : public CHIPCommandBridge,
540
543
return CheckValue (itemName, currentValue, expected);
541
544
}
542
545
543
- template <typename T> bool CheckValue (const char * _Nonnull itemName, NSNumber * _Nonnull current, T expected)
546
+ template <typename T>
547
+ bool CheckValue (const char * _Nonnull itemName, NSNumber * _Nonnull current, T expected)
544
548
{
545
549
return CheckValue (itemName, current, @(expected));
546
550
}
547
551
548
- template <typename T> bool CheckValue (const char * _Nonnull itemName, id _Nonnull current, T expected)
552
+ template <typename T>
553
+ bool CheckValue (const char * _Nonnull itemName, id _Nonnull current, T expected)
549
554
{
550
555
NSNumber * currentValue = current;
551
556
return CheckValue (itemName, currentValue, @(expected));
552
557
}
553
558
554
- template <typename T> bool CheckValue (const char * _Nonnull itemName, NSError * _Nullable current, T expected)
559
+ template <typename T>
560
+ bool CheckValue (const char * _Nonnull itemName, NSError * _Nullable current, T expected)
555
561
{
556
562
557
563
NSNumber * currentValue = @(current.code );
558
564
return CheckValue (itemName, currentValue, @(expected));
559
565
}
560
566
561
- template <typename T, typename U> bool CheckValue (const char * _Nonnull itemName, T current, U expected)
567
+ template <typename T, typename U>
568
+ bool CheckValue (const char * _Nonnull itemName, T current, U expected)
562
569
{
563
570
564
571
return ValueChecker::CheckValue (itemName, current, expected);
0 commit comments