diff --git a/src/darwin/Framework/CHIPTests/CHIPClustersTests.m b/src/darwin/Framework/CHIPTests/CHIPClustersTests.m index ea3f4a7599ad3e..331261e610f430 100644 --- a/src/darwin/Framework/CHIPTests/CHIPClustersTests.m +++ b/src/darwin/Framework/CHIPTests/CHIPClustersTests.m @@ -2687,7 +2687,7 @@ - (void)testSendClusterTestSubscribe_OnOff_000002_SubscribeAttribute CHIPDevice * device = GetPairedDevice(kDeviceId); dispatch_queue_t queue = dispatch_get_main_queue(); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; + CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); [cluster configureAttributeOnOffWithMinInterval:2 @@ -2727,7 +2727,7 @@ - (void)testSendClusterTestSubscribe_OnOff_000004_WaitForReport CHIPDevice * device = GetPairedDevice(kDeviceId); dispatch_queue_t queue = dispatch_get_main_queue(); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; + CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); [cluster reportAttributeOnOffWithResponseHandler:^(NSError * err, NSDictionary * values) { @@ -2748,7 +2748,7 @@ - (void)testSendClusterTestSubscribe_OnOff_000005_Off CHIPDevice * device = GetPairedDevice(kDeviceId); dispatch_queue_t queue = dispatch_get_main_queue(); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; + CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); [cluster off:^(NSError * err, NSDictionary * values) { @@ -2767,7 +2767,7 @@ - (void)testSendClusterTestSubscribe_OnOff_000006_WaitForReport CHIPDevice * device = GetPairedDevice(kDeviceId); dispatch_queue_t queue = dispatch_get_main_queue(); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; + CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); [cluster reportAttributeOnOffWithResponseHandler:^(NSError * err, NSDictionary * values) { @@ -2808,6 +2808,7 @@ - (void)testSendClusterTest_TC_OO_1_1_000001_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to mandatory global attribute: ClusterRevision"]; + CHIPDevice * device = GetPairedDevice(kDeviceId); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; @@ -2871,6 +2872,7 @@ - (void)testSendClusterTest_TC_OO_1_1_000004_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to optional global attribute: FeatureMap"]; + CHIPDevice * device = GetPairedDevice(kDeviceId); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; @@ -5569,6 +5571,7 @@ - (void)testSendClusterTest_TC_WNCV_1_1_000001_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write the default value to mandatory global attribute: ClusterRevision"]; + CHIPDevice * device = GetPairedDevice(kDeviceId); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; @@ -5866,6 +5869,7 @@ - (void)testSendClusterTest_TC_BI_1_1_000001_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to mandatory global attribute: ClusterRevision"]; + CHIPDevice * device = GetPairedDevice(kDeviceId); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestBinaryInputBasic * cluster = [[CHIPTestBinaryInputBasic alloc] initWithDevice:device endpoint:1 queue:queue]; diff --git a/zzz_generated/chip-tool/zap-generated/test/Commands.h b/zzz_generated/chip-tool/zap-generated/test/Commands.h index 50957021bf7658..545bfea157ea9e 100644 --- a/zzz_generated/chip-tool/zap-generated/test/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/test/Commands.h @@ -10807,7 +10807,7 @@ class TestSubscribe_OnOff : public TestCommand { ChipLogProgress(chipTool, "On/Off - Subscribe OnOff Attribute: Sending command..."); - chip::Controller::OnOffCluster cluster; + chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); CHIP_ERROR err = CHIP_NO_ERROR; @@ -10926,7 +10926,7 @@ class TestSubscribe_OnOff : public TestCommand { ChipLogProgress(chipTool, "On/Off - Check for attribute report: Sending command..."); - chip::Controller::OnOffCluster cluster; + chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); CHIP_ERROR err = CHIP_NO_ERROR; @@ -10995,7 +10995,7 @@ class TestSubscribe_OnOff : public TestCommand { ChipLogProgress(chipTool, "On/Off - Turn Off the light to see attribute change: Sending command..."); - chip::Controller::OnOffCluster cluster; + chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); CHIP_ERROR err = CHIP_NO_ERROR; @@ -11053,7 +11053,7 @@ class TestSubscribe_OnOff : public TestCommand { ChipLogProgress(chipTool, "On/Off - Check for attribute report: Sending command..."); - chip::Controller::OnOffCluster cluster; + chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); CHIP_ERROR err = CHIP_NO_ERROR;