diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter
index a743aeb9417845..feff6233251481 100644
--- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter
+++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter
@@ -3084,8 +3084,8 @@ server cluster TestCluster = 4294048773 {
}
struct TestListStructOctet {
- int64u fabricIndex = 0;
- octet_string<32> operationalCert = 1;
+ int64u member1 = 0;
+ octet_string<32> member2 = 1;
}
struct NullablesAndOptionalsStruct {
diff --git a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter
index 231cf142bdbc66..de169f34582b4d 100644
--- a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter
+++ b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter
@@ -2554,8 +2554,8 @@ server cluster TestCluster = 4294048773 {
}
struct TestListStructOctet {
- int64u fabricIndex = 0;
- octet_string<32> operationalCert = 1;
+ int64u member1 = 0;
+ octet_string<32> member2 = 1;
}
struct NullablesAndOptionalsStruct {
diff --git a/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter b/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter
index e4ae1282e4d262..b91d285c9f8c2e 100644
--- a/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter
+++ b/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter
@@ -1897,8 +1897,8 @@ server cluster TestCluster = 4294048773 {
}
struct TestListStructOctet {
- int64u fabricIndex = 0;
- octet_string<32> operationalCert = 1;
+ int64u member1 = 0;
+ octet_string<32> member2 = 1;
}
info event TestEvent = 1 {
diff --git a/src/app/clusters/test-cluster-server/test-cluster-server.cpp b/src/app/clusters/test-cluster-server/test-cluster-server.cpp
index fded78cf224ef4..320bce3f34ad24 100644
--- a/src/app/clusters/test-cluster-server/test-cluster-server.cpp
+++ b/src/app/clusters/test-cluster-server/test-cluster-server.cpp
@@ -384,8 +384,8 @@ CHIP_ERROR TestAttrAccess::ReadListStructOctetStringAttribute(AttributeValueEnco
for (size_t index = 0; index < gListOperationalCertLen; index++)
{
Structs::TestListStructOctet::Type structOctet;
- structOctet.fabricIndex = listStructOctetStringData[index].fabricIndex;
- structOctet.operationalCert = listStructOctetStringData[index].operationalCert;
+ structOctet.member1 = listStructOctetStringData[index].member1;
+ structOctet.member2 = listStructOctetStringData[index].member2;
ReturnErrorOnFailure(encoder.Encode(structOctet));
}
@@ -409,12 +409,12 @@ CHIP_ERROR TestAttrAccess::WriteListStructOctetStringAttribute(const ConcreteDat
const auto & entry = iter.GetValue();
VerifyOrReturnError(index < kAttributeListLength, CHIP_ERROR_BUFFER_TOO_SMALL);
- VerifyOrReturnError(entry.operationalCert.size() <= kAttributeEntryLength, CHIP_ERROR_BUFFER_TOO_SMALL);
- memcpy(gListOperationalCert[index].Data(), entry.operationalCert.data(), entry.operationalCert.size());
- gListOperationalCert[index].SetLength(entry.operationalCert.size());
+ VerifyOrReturnError(entry.member2.size() <= kAttributeEntryLength, CHIP_ERROR_BUFFER_TOO_SMALL);
+ memcpy(gListOperationalCert[index].Data(), entry.member2.data(), entry.member2.size());
+ gListOperationalCert[index].SetLength(entry.member2.size());
- listStructOctetStringData[index].fabricIndex = entry.fabricIndex;
- listStructOctetStringData[index].operationalCert = gListOperationalCert[index].AsSpan();
+ listStructOctetStringData[index].member1 = entry.member1;
+ listStructOctetStringData[index].member2 = gListOperationalCert[index].AsSpan();
index++;
}
@@ -435,12 +435,12 @@ CHIP_ERROR TestAttrAccess::WriteListStructOctetStringAttribute(const ConcreteDat
size_t index = gListOperationalCertLen;
VerifyOrReturnError(index < kAttributeListLength, CHIP_ERROR_BUFFER_TOO_SMALL);
- VerifyOrReturnError(entry.operationalCert.size() <= kAttributeEntryLength, CHIP_ERROR_BUFFER_TOO_SMALL);
- memcpy(gListOperationalCert[index].Data(), entry.operationalCert.data(), entry.operationalCert.size());
- gListOperationalCert[index].SetLength(entry.operationalCert.size());
+ VerifyOrReturnError(entry.member2.size() <= kAttributeEntryLength, CHIP_ERROR_BUFFER_TOO_SMALL);
+ memcpy(gListOperationalCert[index].Data(), entry.member2.data(), entry.member2.size());
+ gListOperationalCert[index].SetLength(entry.member2.size());
- listStructOctetStringData[index].fabricIndex = entry.fabricIndex;
- listStructOctetStringData[index].operationalCert = gListOperationalCert[index].AsSpan();
+ listStructOctetStringData[index].member1 = entry.member1;
+ listStructOctetStringData[index].member2 = gListOperationalCert[index].AsSpan();
gListOperationalCertLen++;
return CHIP_NO_ERROR;
@@ -681,9 +681,9 @@ bool emberAfTestClusterClusterTestCallback(app::CommandHandler *, const app::Con
gListUint8Data[i] = 0;
gListOctetStringData[i].SetLength(0);
gListOperationalCert[i].SetLength(0);
- listStructOctetStringData[i].fabricIndex = 0;
- listStructOctetStringData[i].operationalCert = ByteSpan();
- gSimpleEnums[i] = SimpleEnum::kUnspecified;
+ listStructOctetStringData[i].member1 = 0;
+ listStructOctetStringData[i].member2 = ByteSpan();
+ gSimpleEnums[i] = SimpleEnum::kUnspecified;
}
gSimpleEnumCount = 0;
diff --git a/src/app/tests/TestBufferedReadCallback.cpp b/src/app/tests/TestBufferedReadCallback.cpp
index a4b57152259acb..7b509d6e81267f 100644
--- a/src/app/tests/TestBufferedReadCallback.cpp
+++ b/src/app/tests/TestBufferedReadCallback.cpp
@@ -185,7 +185,7 @@ void DataSeriesValidator::OnAttributeData(const ConcreteDataAttributePath & aPat
while (iter.Next() && index < expectedListLength)
{
auto & iterValue = iter.GetValue();
- NL_TEST_ASSERT(gSuite, iterValue.fabricIndex == (index));
+ NL_TEST_ASSERT(gSuite, iterValue.member1 == (index));
index++;
}
@@ -353,7 +353,7 @@ void DataSeriesGenerator::Generate()
uint8_t index2 = 0;
for (auto & item : listData)
{
- item.fabricIndex = index2;
+ item.member1 = index2;
index2++;
}
@@ -446,7 +446,7 @@ void DataSeriesGenerator::Generate()
path.mAttributeId = Clusters::TestCluster::Attributes::ListStructOctetString::Id;
path.mListOp = ConcreteDataAttributePath::ListOperation::AppendItem;
- listItem.fabricIndex = (uint64_t) i;
+ listItem.member1 = (uint64_t) i;
NL_TEST_ASSERT(gSuite, DataModel::Encode(writer, TLV::AnonymousTag(), listItem) == CHIP_NO_ERROR);
diff --git a/src/app/tests/TestClusterStateCache.cpp b/src/app/tests/TestClusterStateCache.cpp
index c8abf32cf4dfaa..652e0ac6ba11dd 100644
--- a/src/app/tests/TestClusterStateCache.cpp
+++ b/src/app/tests/TestClusterStateCache.cpp
@@ -235,7 +235,7 @@ void DataSeriesGenerator::Generate(ForwardedDataCallbackValidator & dataCallback
for (auto & i : buf)
{
- i.fabricIndex = instruction.mInstructionId;
+ i.member1 = instruction.mInstructionId;
}
Clusters::TestCluster::Attributes::ListStructOctetString::TypeInfo::Type value;
@@ -384,7 +384,7 @@ class CacheValidator : public ClusterStateCache::Callback
auto listIter = v.begin();
while (listIter.Next())
{
- NL_TEST_ASSERT(gSuite, listIter.GetValue().fabricIndex == instruction.mInstructionId);
+ NL_TEST_ASSERT(gSuite, listIter.GetValue().member1 == instruction.mInstructionId);
}
NL_TEST_ASSERT(gSuite, listIter.GetStatus() == CHIP_NO_ERROR);
@@ -438,7 +438,7 @@ class CacheValidator : public ClusterStateCache::Callback
auto listIter = clusterValue.listStructOctetString.begin();
while (listIter.Next())
{
- NL_TEST_ASSERT(gSuite, listIter.GetValue().fabricIndex == instruction.mInstructionId);
+ NL_TEST_ASSERT(gSuite, listIter.GetValue().member1 == instruction.mInstructionId);
}
NL_TEST_ASSERT(gSuite, listIter.GetStatus() == CHIP_NO_ERROR);
diff --git a/src/app/tests/suites/TestCluster.yaml b/src/app/tests/suites/TestCluster.yaml
index ea1a3dfacaf23d..85b33b6525d9a0 100644
--- a/src/app/tests/suites/TestCluster.yaml
+++ b/src/app/tests/suites/TestCluster.yaml
@@ -1562,10 +1562,10 @@ tests:
arguments:
value:
[
- { fabricIndex: 0, operationalCert: "Test0" },
- { fabricIndex: 1, operationalCert: "Test1" },
- { fabricIndex: 2, operationalCert: "Test2" },
- { fabricIndex: 3, operationalCert: "Test3" },
+ { member1: 0, member2: "Test0" },
+ { member1: 1, member2: "Test1" },
+ { member1: 2, member2: "Test2" },
+ { member1: 3, member2: "Test3" },
]
- label: "Read attribute LIST With List of LIST_STRUCT_OCTET_STRING"
@@ -1574,10 +1574,10 @@ tests:
response:
value:
[
- { fabricIndex: 0, operationalCert: "Test0" },
- { fabricIndex: 1, operationalCert: "Test1" },
- { fabricIndex: 2, operationalCert: "Test2" },
- { fabricIndex: 3, operationalCert: "Test3" },
+ { member1: 0, member2: "Test0" },
+ { member1: 1, member2: "Test1" },
+ { member1: 2, member2: "Test2" },
+ { member1: 3, member2: "Test3" },
]
# Tests for Nullables and Optionals
diff --git a/src/app/zap-templates/zcl/data-model/chip/test-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/test-cluster.xml
index e55c0da2d8fe52..2af47d21b36e31 100644
--- a/src/app/zap-templates/zcl/data-model/chip/test-cluster.xml
+++ b/src/app/zap-templates/zcl/data-model/chip/test-cluster.xml
@@ -18,8 +18,8 @@ limitations under the License.
-
-
+
+
diff --git a/src/controller/data_model/controller-clusters.matter b/src/controller/data_model/controller-clusters.matter
index b46e619931bd9d..955a9825ea593e 100644
--- a/src/controller/data_model/controller-clusters.matter
+++ b/src/controller/data_model/controller-clusters.matter
@@ -3518,8 +3518,8 @@ client cluster TestCluster = 4294048773 {
}
struct TestListStructOctet {
- int64u fabricIndex = 0;
- octet_string<32> operationalCert = 1;
+ int64u member1 = 0;
+ octet_string<32> member2 = 1;
}
struct NullablesAndOptionalsStruct {
diff --git a/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp b/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp
index 4be7542f904114..0df4dd0bdbacdf 100644
--- a/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp
+++ b/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp
@@ -13729,19 +13729,17 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
{
auto & entry_0 = iter_value_0.GetValue();
jobject newElement_0;
- jobject newElement_0_fabricIndex;
- std::string newElement_0_fabricIndexClassName = "java/lang/Long";
- std::string newElement_0_fabricIndexCtorSignature = "(J)V";
- chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
- newElement_0_fabricIndexCtorSignature.c_str(),
- entry_0.fabricIndex, newElement_0_fabricIndex);
- jobject newElement_0_operationalCert;
- jbyteArray newElement_0_operationalCertByteArray =
- env->NewByteArray(static_cast(entry_0.operationalCert.size()));
- env->SetByteArrayRegion(newElement_0_operationalCertByteArray, 0,
- static_cast(entry_0.operationalCert.size()),
- reinterpret_cast(entry_0.operationalCert.data()));
- newElement_0_operationalCert = newElement_0_operationalCertByteArray;
+ jobject newElement_0_member1;
+ std::string newElement_0_member1ClassName = "java/lang/Long";
+ std::string newElement_0_member1CtorSignature = "(J)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_member1ClassName.c_str(),
+ newElement_0_member1CtorSignature.c_str(),
+ entry_0.member1, newElement_0_member1);
+ jobject newElement_0_member2;
+ jbyteArray newElement_0_member2ByteArray = env->NewByteArray(static_cast(entry_0.member2.size()));
+ env->SetByteArrayRegion(newElement_0_member2ByteArray, 0, static_cast(entry_0.member2.size()),
+ reinterpret_cast(entry_0.member2.data()));
+ newElement_0_member2 = newElement_0_member2ByteArray;
jclass testListStructOctetStructClass;
err = chip::JniReferences::GetInstance().GetClassRef(
@@ -13759,8 +13757,8 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
return nullptr;
}
- newElement_0 = env->NewObject(testListStructOctetStructClass, testListStructOctetStructCtor,
- newElement_0_fabricIndex, newElement_0_operationalCert);
+ newElement_0 = env->NewObject(testListStructOctetStructClass, testListStructOctetStructCtor, newElement_0_member1,
+ newElement_0_member2);
chip::JniReferences::GetInstance().AddToList(value, newElement_0);
}
return value;
diff --git a/src/controller/java/zap-generated/CHIPClustersWrite-JNI.cpp b/src/controller/java/zap-generated/CHIPClustersWrite-JNI.cpp
index 5325e4851a1d43..d21c690816cb13 100644
--- a/src/controller/java/zap-generated/CHIPClustersWrite-JNI.cpp
+++ b/src/controller/java/zap-generated/CHIPClustersWrite-JNI.cpp
@@ -5174,18 +5174,16 @@ JNI_METHOD(void, TestClusterCluster, writeListStructOctetStringAttribute)
{
jobject element_0;
chip::JniReferences::GetInstance().GetListItem(value, i_0, element_0);
- jobject element_0_fabricIndexItem_1;
- chip::JniReferences::GetInstance().GetObjectField(element_0, "fabricIndex", "Ljava/lang/Long;",
- element_0_fabricIndexItem_1);
- listHolder_0->mList[i_0].fabricIndex =
- static_castmList[i_0].fabricIndex)>>(
- chip::JniReferences::GetInstance().LongToPrimitive(element_0_fabricIndexItem_1));
- jobject element_0_operationalCertItem_1;
- chip::JniReferences::GetInstance().GetObjectField(element_0, "operationalCert", "[B",
- element_0_operationalCertItem_1);
+ jobject element_0_member1Item_1;
+ chip::JniReferences::GetInstance().GetObjectField(element_0, "member1", "Ljava/lang/Long;",
+ element_0_member1Item_1);
+ listHolder_0->mList[i_0].member1 = static_castmList[i_0].member1)>>(
+ chip::JniReferences::GetInstance().LongToPrimitive(element_0_member1Item_1));
+ jobject element_0_member2Item_1;
+ chip::JniReferences::GetInstance().GetObjectField(element_0, "member2", "[B", element_0_member2Item_1);
cleanupByteArrays.push_back(
- chip::Platform::MakeUnique(env, static_cast(element_0_operationalCertItem_1)));
- listHolder_0->mList[i_0].operationalCert = cleanupByteArrays.back()->byteSpan();
+ chip::Platform::MakeUnique(env, static_cast(element_0_member2Item_1)));
+ listHolder_0->mList[i_0].member2 = cleanupByteArrays.back()->byteSpan();
}
cppValue = ListType_0(listHolder_0->mList, valueSize);
}
diff --git a/src/controller/java/zap-generated/CHIPReadCallbacks.cpp b/src/controller/java/zap-generated/CHIPReadCallbacks.cpp
index 13d95c79b05304..a1e32b98819411 100644
--- a/src/controller/java/zap-generated/CHIPReadCallbacks.cpp
+++ b/src/controller/java/zap-generated/CHIPReadCallbacks.cpp
@@ -20141,17 +20141,17 @@ void CHIPTestClusterListStructOctetStringAttributeCallback::CallbackFn(
{
auto & entry_0 = iter_arrayListObj_0.GetValue();
jobject newElement_0;
- jobject newElement_0_fabricIndex;
- std::string newElement_0_fabricIndexClassName = "java/lang/Long";
- std::string newElement_0_fabricIndexCtorSignature = "(J)V";
- chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
- newElement_0_fabricIndexCtorSignature.c_str(),
- entry_0.fabricIndex, newElement_0_fabricIndex);
- jobject newElement_0_operationalCert;
- jbyteArray newElement_0_operationalCertByteArray = env->NewByteArray(static_cast(entry_0.operationalCert.size()));
- env->SetByteArrayRegion(newElement_0_operationalCertByteArray, 0, static_cast(entry_0.operationalCert.size()),
- reinterpret_cast(entry_0.operationalCert.data()));
- newElement_0_operationalCert = newElement_0_operationalCertByteArray;
+ jobject newElement_0_member1;
+ std::string newElement_0_member1ClassName = "java/lang/Long";
+ std::string newElement_0_member1CtorSignature = "(J)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_member1ClassName.c_str(),
+ newElement_0_member1CtorSignature.c_str(), entry_0.member1,
+ newElement_0_member1);
+ jobject newElement_0_member2;
+ jbyteArray newElement_0_member2ByteArray = env->NewByteArray(static_cast(entry_0.member2.size()));
+ env->SetByteArrayRegion(newElement_0_member2ByteArray, 0, static_cast(entry_0.member2.size()),
+ reinterpret_cast(entry_0.member2.data()));
+ newElement_0_member2 = newElement_0_member2ByteArray;
jclass testListStructOctetStructClass;
err = chip::JniReferences::GetInstance().GetClassRef(
@@ -20169,8 +20169,8 @@ void CHIPTestClusterListStructOctetStringAttributeCallback::CallbackFn(
return;
}
- newElement_0 = env->NewObject(testListStructOctetStructClass, testListStructOctetStructCtor, newElement_0_fabricIndex,
- newElement_0_operationalCert);
+ newElement_0 = env->NewObject(testListStructOctetStructClass, testListStructOctetStructCtor, newElement_0_member1,
+ newElement_0_member2);
chip::JniReferences::GetInstance().AddToList(arrayListObj, newElement_0);
}
diff --git a/src/controller/java/zap-generated/chip/devicecontroller/ChipStructs.java b/src/controller/java/zap-generated/chip/devicecontroller/ChipStructs.java
index 7b93714d6b304e..4affe8b8bd6946 100644
--- a/src/controller/java/zap-generated/chip/devicecontroller/ChipStructs.java
+++ b/src/controller/java/zap-generated/chip/devicecontroller/ChipStructs.java
@@ -1825,23 +1825,23 @@ public String toString() {
}
public static class TestClusterClusterTestListStructOctet {
- public Long fabricIndex;
- public byte[] operationalCert;
+ public Long member1;
+ public byte[] member2;
- public TestClusterClusterTestListStructOctet(Long fabricIndex, byte[] operationalCert) {
- this.fabricIndex = fabricIndex;
- this.operationalCert = operationalCert;
+ public TestClusterClusterTestListStructOctet(Long member1, byte[] member2) {
+ this.member1 = member1;
+ this.member2 = member2;
}
@Override
public String toString() {
StringBuilder output = new StringBuilder();
output.append("TestClusterClusterTestListStructOctet {\n");
- output.append("\tfabricIndex: ");
- output.append(fabricIndex);
+ output.append("\tmember1: ");
+ output.append(member1);
output.append("\n");
- output.append("\toperationalCert: ");
- output.append(Arrays.toString(operationalCert));
+ output.append("\tmember2: ");
+ output.append(Arrays.toString(member2));
output.append("\n");
output.append("}\n");
return output.toString();
diff --git a/src/controller/python/chip/clusters/Objects.py b/src/controller/python/chip/clusters/Objects.py
index 3a7d3a1c23bf7d..4671cffdbd430e 100644
--- a/src/controller/python/chip/clusters/Objects.py
+++ b/src/controller/python/chip/clusters/Objects.py
@@ -38145,12 +38145,12 @@ class TestListStructOctet(ClusterObject):
def descriptor(cls) -> ClusterObjectDescriptor:
return ClusterObjectDescriptor(
Fields = [
- ClusterObjectFieldDescriptor(Label="fabricIndex", Tag=0, Type=uint),
- ClusterObjectFieldDescriptor(Label="operationalCert", Tag=1, Type=bytes),
+ ClusterObjectFieldDescriptor(Label="member1", Tag=0, Type=uint),
+ ClusterObjectFieldDescriptor(Label="member2", Tag=1, Type=bytes),
])
- fabricIndex: 'uint' = 0
- operationalCert: 'bytes' = b""
+ member1: 'uint' = 0
+ member2: 'bytes' = b""
diff --git a/src/controller/tests/data_model/TestRead.cpp b/src/controller/tests/data_model/TestRead.cpp
index 2ee61b5436a384..6ce3d52353f266 100644
--- a/src/controller/tests/data_model/TestRead.cpp
+++ b/src/controller/tests/data_model/TestRead.cpp
@@ -145,7 +145,7 @@ CHIP_ERROR ReadSingleClusterData(const Access::SubjectDescriptor & aSubjectDescr
uint8_t i = 0;
for (auto & item : valueBuf)
{
- item.fabricIndex = i;
+ item.member1 = i;
i++;
}
@@ -328,7 +328,7 @@ void TestReadInteraction::TestReadAttributeResponse(nlTestSuite * apSuite, void
while (iter.Next())
{
auto & item = iter.GetValue();
- NL_TEST_ASSERT(apSuite, item.fabricIndex == i);
+ NL_TEST_ASSERT(apSuite, item.member1 == i);
i++;
}
NL_TEST_ASSERT(apSuite, i == 4);
diff --git a/src/controller/tests/data_model/TestWrite.cpp b/src/controller/tests/data_model/TestWrite.cpp
index 073044cb372d90..2e12ddcc5fd6b8 100644
--- a/src/controller/tests/data_model/TestWrite.cpp
+++ b/src/controller/tests/data_model/TestWrite.cpp
@@ -89,7 +89,7 @@ CHIP_ERROR WriteSingleClusterData(const Access::SubjectDescriptor & aSubjectDesc
{
auto & item = iter.GetValue();
- VerifyOrReturnError(item.fabricIndex == listStructOctetStringElementCount, CHIP_ERROR_INVALID_ARGUMENT);
+ VerifyOrReturnError(item.member1 == listStructOctetStringElementCount, CHIP_ERROR_INVALID_ARGUMENT);
listStructOctetStringElementCount++;
}
@@ -99,7 +99,7 @@ CHIP_ERROR WriteSingleClusterData(const Access::SubjectDescriptor & aSubjectDesc
{
Structs::TestListStructOctet::DecodableType item;
ReturnErrorOnFailure(DataModel::Decode(aReader, item));
- VerifyOrReturnError(item.fabricIndex == listStructOctetStringElementCount, CHIP_ERROR_INVALID_ARGUMENT);
+ VerifyOrReturnError(item.member1 == listStructOctetStringElementCount, CHIP_ERROR_INVALID_ARGUMENT);
listStructOctetStringElementCount++;
aWriteHandler->AddStatus(aPath, Protocols::InteractionModel::Status::Success);
@@ -182,7 +182,7 @@ void TestWriteInteraction::TestDataResponse(nlTestSuite * apSuite, void * apCont
uint8_t i = 0;
for (auto & item : valueBuf)
{
- item.fabricIndex = i;
+ item.member1 = i;
i++;
}
@@ -221,7 +221,7 @@ void TestWriteInteraction::TestDataResponseWithAcceptedDataVersion(nlTestSuite *
uint8_t i = 0;
for (auto & item : valueBuf)
{
- item.fabricIndex = i;
+ item.member1 = i;
i++;
}
@@ -262,7 +262,7 @@ void TestWriteInteraction::TestDataResponseWithRejectedDataVersion(nlTestSuite *
uint8_t i = 0;
for (auto & item : valueBuf)
{
- item.fabricIndex = i;
+ item.member1 = i;
i++;
}
@@ -302,7 +302,7 @@ void TestWriteInteraction::TestAttributeError(nlTestSuite * apSuite, void * apCo
uint8_t i = 0;
for (auto & item : valueBuf)
{
- item.fabricIndex = i;
+ item.member1 = i;
i++;
}
diff --git a/src/darwin/Framework/CHIP/zap-generated/CHIPAttributeTLVValueDecoder.mm b/src/darwin/Framework/CHIP/zap-generated/CHIPAttributeTLVValueDecoder.mm
index 1dd23133baa2a8..98b0a58b532c52 100644
--- a/src/darwin/Framework/CHIP/zap-generated/CHIPAttributeTLVValueDecoder.mm
+++ b/src/darwin/Framework/CHIP/zap-generated/CHIPAttributeTLVValueDecoder.mm
@@ -13086,9 +13086,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader
auto & entry_0 = iter_0.GetValue();
CHIPTestClusterClusterTestListStructOctet * newElement_0;
newElement_0 = [CHIPTestClusterClusterTestListStructOctet new];
- newElement_0.fabricIndex = [NSNumber numberWithUnsignedLongLong:entry_0.fabricIndex];
- newElement_0.operationalCert = [NSData dataWithBytes:entry_0.operationalCert.data()
- length:entry_0.operationalCert.size()];
+ newElement_0.member1 = [NSNumber numberWithUnsignedLongLong:entry_0.member1];
+ newElement_0.member2 = [NSData dataWithBytes:entry_0.member2.data() length:entry_0.member2.size()];
[array_0 addObject:newElement_0];
}
CHIP_ERROR err = iter_0.GetStatus();
diff --git a/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge.mm b/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge.mm
index 582d1444996861..d6862c8a24b0c5 100644
--- a/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge.mm
+++ b/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge.mm
@@ -9308,9 +9308,8 @@
auto & entry_0 = iter_0.GetValue();
CHIPTestClusterClusterTestListStructOctet * newElement_0;
newElement_0 = [CHIPTestClusterClusterTestListStructOctet new];
- newElement_0.fabricIndex = [NSNumber numberWithUnsignedLongLong:entry_0.fabricIndex];
- newElement_0.operationalCert = [NSData dataWithBytes:entry_0.operationalCert.data()
- length:entry_0.operationalCert.size()];
+ newElement_0.member1 = [NSNumber numberWithUnsignedLongLong:entry_0.member1];
+ newElement_0.member2 = [NSData dataWithBytes:entry_0.member2.data() length:entry_0.member2.size()];
[array_0 addObject:newElement_0];
}
CHIP_ERROR err = iter_0.GetStatus();
diff --git a/src/darwin/Framework/CHIP/zap-generated/CHIPClustersObjc.mm b/src/darwin/Framework/CHIP/zap-generated/CHIPClustersObjc.mm
index 298f5b60e092e6..05d6c2fd5d6352 100644
--- a/src/darwin/Framework/CHIP/zap-generated/CHIPClustersObjc.mm
+++ b/src/darwin/Framework/CHIP/zap-generated/CHIPClustersObjc.mm
@@ -61342,8 +61342,8 @@ new CHIPDefaultSuccessCallbackBridge(
return CHIP_ERROR_INVALID_ARGUMENT;
}
auto element_0 = (CHIPTestClusterClusterTestListStructOctet *) value[i_0];
- listHolder_0->mList[i_0].fabricIndex = element_0.fabricIndex.unsignedLongLongValue;
- listHolder_0->mList[i_0].operationalCert = [self asByteSpan:element_0.operationalCert];
+ listHolder_0->mList[i_0].member1 = element_0.member1.unsignedLongLongValue;
+ listHolder_0->mList[i_0].member2 = [self asByteSpan:element_0.member2];
}
cppValue = ListType_0(listHolder_0->mList, value.count);
} else {
diff --git a/src/darwin/Framework/CHIP/zap-generated/CHIPStructsObjc.h b/src/darwin/Framework/CHIP/zap-generated/CHIPStructsObjc.h
index 9981a0b118f86f..c92fd3dd0554c9 100644
--- a/src/darwin/Framework/CHIP/zap-generated/CHIPStructsObjc.h
+++ b/src/darwin/Framework/CHIP/zap-generated/CHIPStructsObjc.h
@@ -755,8 +755,8 @@ NS_ASSUME_NONNULL_BEGIN
@end
@interface CHIPTestClusterClusterTestListStructOctet : NSObject
-@property (strong, nonatomic) NSNumber * _Nonnull fabricIndex;
-@property (strong, nonatomic) NSData * _Nonnull operationalCert;
+@property (strong, nonatomic) NSNumber * _Nonnull member1;
+@property (strong, nonatomic) NSData * _Nonnull member2;
- (instancetype)init;
@end
diff --git a/src/darwin/Framework/CHIP/zap-generated/CHIPStructsObjc.mm b/src/darwin/Framework/CHIP/zap-generated/CHIPStructsObjc.mm
index b9f4b6e31efdd8..1ba999b68586a1 100644
--- a/src/darwin/Framework/CHIP/zap-generated/CHIPStructsObjc.mm
+++ b/src/darwin/Framework/CHIP/zap-generated/CHIPStructsObjc.mm
@@ -2665,18 +2665,17 @@ - (instancetype)init
{
if (self = [super init]) {
- _fabricIndex = @(0);
+ _member1 = @(0);
- _operationalCert = [NSData data];
+ _member2 = [NSData data];
}
return self;
}
- (NSString *)description
{
- NSString * descriptionString =
- [NSString stringWithFormat:@"<%@: fabricIndex:%@; operationalCert:%@; >", NSStringFromClass([self class]), _fabricIndex,
- [_operationalCert base64EncodedStringWithOptions:0]];
+ NSString * descriptionString = [NSString stringWithFormat:@"<%@: member1:%@; member2:%@; >", NSStringFromClass([self class]),
+ _member1, [_member2 base64EncodedStringWithOptions:0]];
return descriptionString;
}
diff --git a/zzz_generated/app-common/app-common/zap-generated/af-structs.h b/zzz_generated/app-common/app-common/zap-generated/af-structs.h
index 8aed0d2107d023..a1f08695b65e13 100644
--- a/zzz_generated/app-common/app-common/zap-generated/af-structs.h
+++ b/zzz_generated/app-common/app-common/zap-generated/af-structs.h
@@ -543,8 +543,8 @@ typedef struct _TargetStruct
// Struct for TestListStructOctet
typedef struct _TestListStructOctet
{
- uint64_t fabricIndex;
- chip::ByteSpan operationalCert;
+ uint64_t member1;
+ chip::ByteSpan member2;
} TestListStructOctet;
// Struct for ThermostatScheduleTransition
diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp
index 292f01cabf9b95..033396bf54cd60 100644
--- a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp
+++ b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp
@@ -25035,8 +25035,8 @@ CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const
{
TLV::TLVType outer;
ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer));
- ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kFabricIndex)), fabricIndex));
- ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOperationalCert)), operationalCert));
+ ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kMember1)), member1));
+ ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kMember2)), member2));
ReturnErrorOnFailure(writer.EndContainer(outer));
return CHIP_NO_ERROR;
}
@@ -25056,11 +25056,11 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader)
}
switch (TLV::TagNumFromTag(reader.GetTag()))
{
- case to_underlying(Fields::kFabricIndex):
- ReturnErrorOnFailure(DataModel::Decode(reader, fabricIndex));
+ case to_underlying(Fields::kMember1):
+ ReturnErrorOnFailure(DataModel::Decode(reader, member1));
break;
- case to_underlying(Fields::kOperationalCert):
- ReturnErrorOnFailure(DataModel::Decode(reader, operationalCert));
+ case to_underlying(Fields::kMember2):
+ ReturnErrorOnFailure(DataModel::Decode(reader, member2));
break;
default:
break;
diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h
index 1cf83a9cebcfa3..e2cd041e6e6ffb 100644
--- a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h
+++ b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h
@@ -34598,15 +34598,15 @@ struct DecodableType
namespace TestListStructOctet {
enum class Fields
{
- kFabricIndex = 0,
- kOperationalCert = 1,
+ kMember1 = 0,
+ kMember2 = 1,
};
struct Type
{
public:
- uint64_t fabricIndex = static_cast(0);
- chip::ByteSpan operationalCert;
+ uint64_t member1 = static_cast(0);
+ chip::ByteSpan member2;
CHIP_ERROR Decode(TLV::TLVReader & reader);
diff --git a/zzz_generated/chip-tool/zap-generated/cluster/ComplexArgumentParser.cpp b/zzz_generated/chip-tool/zap-generated/cluster/ComplexArgumentParser.cpp
index 1a418f9fcd5c7a..b3fe22bc7ed722 100644
--- a/zzz_generated/chip-tool/zap-generated/cluster/ComplexArgumentParser.cpp
+++ b/zzz_generated/chip-tool/zap-generated/cluster/ComplexArgumentParser.cpp
@@ -2063,24 +2063,24 @@ CHIP_ERROR ComplexArgumentParser::Setup(const char * label,
VerifyOrReturnError(value.isObject(), CHIP_ERROR_INVALID_ARGUMENT);
ReturnErrorOnFailure(
- ComplexArgumentParser::EnsureMemberExist("TestListStructOctet.fabricIndex", "fabricIndex", value.isMember("fabricIndex")));
- ReturnErrorOnFailure(ComplexArgumentParser::EnsureMemberExist("TestListStructOctet.operationalCert", "operationalCert",
- value.isMember("operationalCert")));
+ ComplexArgumentParser::EnsureMemberExist("TestListStructOctet.member1", "member1", value.isMember("member1")));
+ ReturnErrorOnFailure(
+ ComplexArgumentParser::EnsureMemberExist("TestListStructOctet.member2", "member2", value.isMember("member2")));
char labelWithMember[kMaxLabelLength];
- snprintf(labelWithMember, sizeof(labelWithMember), "%s.%s", label, "fabricIndex");
- ReturnErrorOnFailure(ComplexArgumentParser::Setup(labelWithMember, request.fabricIndex, value["fabricIndex"]));
+ snprintf(labelWithMember, sizeof(labelWithMember), "%s.%s", label, "member1");
+ ReturnErrorOnFailure(ComplexArgumentParser::Setup(labelWithMember, request.member1, value["member1"]));
- snprintf(labelWithMember, sizeof(labelWithMember), "%s.%s", label, "operationalCert");
- ReturnErrorOnFailure(ComplexArgumentParser::Setup(labelWithMember, request.operationalCert, value["operationalCert"]));
+ snprintf(labelWithMember, sizeof(labelWithMember), "%s.%s", label, "member2");
+ ReturnErrorOnFailure(ComplexArgumentParser::Setup(labelWithMember, request.member2, value["member2"]));
return CHIP_NO_ERROR;
}
void ComplexArgumentParser::Finalize(chip::app::Clusters::TestCluster::Structs::TestListStructOctet::Type & request)
{
- ComplexArgumentParser::Finalize(request.fabricIndex);
- ComplexArgumentParser::Finalize(request.operationalCert);
+ ComplexArgumentParser::Finalize(request.member1);
+ ComplexArgumentParser::Finalize(request.member2);
}
CHIP_ERROR ComplexArgumentParser::Setup(const char * label,
chip::app::Clusters::Thermostat::Structs::ThermostatScheduleTransition::Type & request,
diff --git a/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp b/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp
index c2ae86dcf733a3..437372a39a1745 100644
--- a/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp
+++ b/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp
@@ -2203,18 +2203,18 @@ CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent,
{
DataModelLogger::LogString(label, indent, "{");
{
- CHIP_ERROR err = LogValue("FabricIndex", indent + 1, value.fabricIndex);
+ CHIP_ERROR err = LogValue("Member1", indent + 1, value.member1);
if (err != CHIP_NO_ERROR)
{
- DataModelLogger::LogString(indent + 1, "Struct truncated due to invalid value for 'FabricIndex'");
+ DataModelLogger::LogString(indent + 1, "Struct truncated due to invalid value for 'Member1'");
return err;
}
}
{
- CHIP_ERROR err = LogValue("OperationalCert", indent + 1, value.operationalCert);
+ CHIP_ERROR err = LogValue("Member2", indent + 1, value.member2);
if (err != CHIP_NO_ERROR)
{
- DataModelLogger::LogString(indent + 1, "Struct truncated due to invalid value for 'OperationalCert'");
+ DataModelLogger::LogString(indent + 1, "Struct truncated due to invalid value for 'Member2'");
return err;
}
}
diff --git a/zzz_generated/chip-tool/zap-generated/test/Commands.h b/zzz_generated/chip-tool/zap-generated/test/Commands.h
index 3286d6d5baed98..978ac4cb4fa518 100644
--- a/zzz_generated/chip-tool/zap-generated/test/Commands.h
+++ b/zzz_generated/chip-tool/zap-generated/test/Commands.h
@@ -42456,20 +42456,20 @@ class TestClusterSuite : public TestCommand
{
auto iter_0 = value.begin();
VerifyOrReturn(CheckNextListItemDecodes("listStructOctetString", iter_0, 0));
- VerifyOrReturn(CheckValue("listStructOctetString[0].fabricIndex", iter_0.GetValue().fabricIndex, 0ULL));
- VerifyOrReturn(CheckValueAsString("listStructOctetString[0].operationalCert", iter_0.GetValue().operationalCert,
+ VerifyOrReturn(CheckValue("listStructOctetString[0].member1", iter_0.GetValue().member1, 0ULL));
+ VerifyOrReturn(CheckValueAsString("listStructOctetString[0].member2", iter_0.GetValue().member2,
chip::ByteSpan(chip::Uint8::from_const_char("Test0"), 5)));
VerifyOrReturn(CheckNextListItemDecodes("listStructOctetString", iter_0, 1));
- VerifyOrReturn(CheckValue("listStructOctetString[1].fabricIndex", iter_0.GetValue().fabricIndex, 1ULL));
- VerifyOrReturn(CheckValueAsString("listStructOctetString[1].operationalCert", iter_0.GetValue().operationalCert,
+ VerifyOrReturn(CheckValue("listStructOctetString[1].member1", iter_0.GetValue().member1, 1ULL));
+ VerifyOrReturn(CheckValueAsString("listStructOctetString[1].member2", iter_0.GetValue().member2,
chip::ByteSpan(chip::Uint8::from_const_char("Test1"), 5)));
VerifyOrReturn(CheckNextListItemDecodes("listStructOctetString", iter_0, 2));
- VerifyOrReturn(CheckValue("listStructOctetString[2].fabricIndex", iter_0.GetValue().fabricIndex, 2ULL));
- VerifyOrReturn(CheckValueAsString("listStructOctetString[2].operationalCert", iter_0.GetValue().operationalCert,
+ VerifyOrReturn(CheckValue("listStructOctetString[2].member1", iter_0.GetValue().member1, 2ULL));
+ VerifyOrReturn(CheckValueAsString("listStructOctetString[2].member2", iter_0.GetValue().member2,
chip::ByteSpan(chip::Uint8::from_const_char("Test2"), 5)));
VerifyOrReturn(CheckNextListItemDecodes("listStructOctetString", iter_0, 3));
- VerifyOrReturn(CheckValue("listStructOctetString[3].fabricIndex", iter_0.GetValue().fabricIndex, 3ULL));
- VerifyOrReturn(CheckValueAsString("listStructOctetString[3].operationalCert", iter_0.GetValue().operationalCert,
+ VerifyOrReturn(CheckValue("listStructOctetString[3].member1", iter_0.GetValue().member1, 3ULL));
+ VerifyOrReturn(CheckValueAsString("listStructOctetString[3].member2", iter_0.GetValue().member2,
chip::ByteSpan(chip::Uint8::from_const_char("Test3"), 5)));
VerifyOrReturn(CheckNoMoreListItems("listStructOctetString", iter_0, 4));
}
@@ -46233,20 +46233,20 @@ class TestClusterSuite : public TestCommand
auto * listHolder_0 = new ListHolder(4);
listFreer.add(listHolder_0);
- listHolder_0->mList[0].fabricIndex = 0ULL;
- listHolder_0->mList[0].operationalCert =
+ listHolder_0->mList[0].member1 = 0ULL;
+ listHolder_0->mList[0].member2 =
chip::ByteSpan(chip::Uint8::from_const_char("Test0garbage: not in length on purpose"), 5);
- listHolder_0->mList[1].fabricIndex = 1ULL;
- listHolder_0->mList[1].operationalCert =
+ listHolder_0->mList[1].member1 = 1ULL;
+ listHolder_0->mList[1].member2 =
chip::ByteSpan(chip::Uint8::from_const_char("Test1garbage: not in length on purpose"), 5);
- listHolder_0->mList[2].fabricIndex = 2ULL;
- listHolder_0->mList[2].operationalCert =
+ listHolder_0->mList[2].member1 = 2ULL;
+ listHolder_0->mList[2].member2 =
chip::ByteSpan(chip::Uint8::from_const_char("Test2garbage: not in length on purpose"), 5);
- listHolder_0->mList[3].fabricIndex = 3ULL;
- listHolder_0->mList[3].operationalCert =
+ listHolder_0->mList[3].member1 = 3ULL;
+ listHolder_0->mList[3].member2 =
chip::ByteSpan(chip::Uint8::from_const_char("Test3garbage: not in length on purpose"), 5);
value = chip::app::DataModel::List(
diff --git a/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h b/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h
index c4257897b8b90d..975582a470bad9 100644
--- a/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h
+++ b/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h
@@ -72600,9 +72600,8 @@ class WriteTestClusterListStructOctetString : public WriteAttribute {
for (auto & entry_0 : mValue) {
CHIPTestClusterClusterTestListStructOctet * newElement_0;
newElement_0 = [CHIPTestClusterClusterTestListStructOctet new];
- newElement_0.fabricIndex = [NSNumber numberWithUnsignedLongLong:entry_0.fabricIndex];
- newElement_0.operationalCert = [NSData dataWithBytes:entry_0.operationalCert.data()
- length:entry_0.operationalCert.size()];
+ newElement_0.member1 = [NSNumber numberWithUnsignedLongLong:entry_0.member1];
+ newElement_0.member2 = [NSData dataWithBytes:entry_0.member2.data() length:entry_0.member2.size()];
[array_0 addObject:newElement_0];
}
value = array_0;
diff --git a/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h b/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h
index e768de29782417..0fd597441aa035 100644
--- a/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h
+++ b/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h
@@ -75228,24 +75228,20 @@ class TestCluster : public TestCommandBridge {
{
NSMutableArray * temp_0 = [[NSMutableArray alloc] init];
temp_0[0] = [[CHIPTestClusterClusterTestListStructOctet alloc] init];
- ((CHIPTestClusterClusterTestListStructOctet *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedLongLong:0ULL];
- ((CHIPTestClusterClusterTestListStructOctet *) temp_0[0]).operationalCert = [[NSData alloc] initWithBytes:"Test0"
- length:5];
+ ((CHIPTestClusterClusterTestListStructOctet *) temp_0[0]).member1 = [NSNumber numberWithUnsignedLongLong:0ULL];
+ ((CHIPTestClusterClusterTestListStructOctet *) temp_0[0]).member2 = [[NSData alloc] initWithBytes:"Test0" length:5];
temp_0[1] = [[CHIPTestClusterClusterTestListStructOctet alloc] init];
- ((CHIPTestClusterClusterTestListStructOctet *) temp_0[1]).fabricIndex = [NSNumber numberWithUnsignedLongLong:1ULL];
- ((CHIPTestClusterClusterTestListStructOctet *) temp_0[1]).operationalCert = [[NSData alloc] initWithBytes:"Test1"
- length:5];
+ ((CHIPTestClusterClusterTestListStructOctet *) temp_0[1]).member1 = [NSNumber numberWithUnsignedLongLong:1ULL];
+ ((CHIPTestClusterClusterTestListStructOctet *) temp_0[1]).member2 = [[NSData alloc] initWithBytes:"Test1" length:5];
temp_0[2] = [[CHIPTestClusterClusterTestListStructOctet alloc] init];
- ((CHIPTestClusterClusterTestListStructOctet *) temp_0[2]).fabricIndex = [NSNumber numberWithUnsignedLongLong:2ULL];
- ((CHIPTestClusterClusterTestListStructOctet *) temp_0[2]).operationalCert = [[NSData alloc] initWithBytes:"Test2"
- length:5];
+ ((CHIPTestClusterClusterTestListStructOctet *) temp_0[2]).member1 = [NSNumber numberWithUnsignedLongLong:2ULL];
+ ((CHIPTestClusterClusterTestListStructOctet *) temp_0[2]).member2 = [[NSData alloc] initWithBytes:"Test2" length:5];
temp_0[3] = [[CHIPTestClusterClusterTestListStructOctet alloc] init];
- ((CHIPTestClusterClusterTestListStructOctet *) temp_0[3]).fabricIndex = [NSNumber numberWithUnsignedLongLong:3ULL];
- ((CHIPTestClusterClusterTestListStructOctet *) temp_0[3]).operationalCert = [[NSData alloc] initWithBytes:"Test3"
- length:5];
+ ((CHIPTestClusterClusterTestListStructOctet *) temp_0[3]).member1 = [NSNumber numberWithUnsignedLongLong:3ULL];
+ ((CHIPTestClusterClusterTestListStructOctet *) temp_0[3]).member2 = [[NSData alloc] initWithBytes:"Test3" length:5];
listStructOctetStringArgument = temp_0;
}
@@ -75275,25 +75271,17 @@ class TestCluster : public TestCommandBridge {
{
id actualValue = value;
VerifyOrReturn(CheckValue("list_struct_octet_string", [actualValue count], static_cast(4)));
- VerifyOrReturn(
- CheckValue("fabricIndex", ((CHIPTestClusterClusterTestListStructOctet *) actualValue[0]).fabricIndex, 0ULL));
- VerifyOrReturn(CheckValueAsString("operationalCert",
- ((CHIPTestClusterClusterTestListStructOctet *) actualValue[0]).operationalCert,
+ VerifyOrReturn(CheckValue("member1", ((CHIPTestClusterClusterTestListStructOctet *) actualValue[0]).member1, 0ULL));
+ VerifyOrReturn(CheckValueAsString("member2", ((CHIPTestClusterClusterTestListStructOctet *) actualValue[0]).member2,
[[NSData alloc] initWithBytes:"Test0" length:5]));
- VerifyOrReturn(
- CheckValue("fabricIndex", ((CHIPTestClusterClusterTestListStructOctet *) actualValue[1]).fabricIndex, 1ULL));
- VerifyOrReturn(CheckValueAsString("operationalCert",
- ((CHIPTestClusterClusterTestListStructOctet *) actualValue[1]).operationalCert,
+ VerifyOrReturn(CheckValue("member1", ((CHIPTestClusterClusterTestListStructOctet *) actualValue[1]).member1, 1ULL));
+ VerifyOrReturn(CheckValueAsString("member2", ((CHIPTestClusterClusterTestListStructOctet *) actualValue[1]).member2,
[[NSData alloc] initWithBytes:"Test1" length:5]));
- VerifyOrReturn(
- CheckValue("fabricIndex", ((CHIPTestClusterClusterTestListStructOctet *) actualValue[2]).fabricIndex, 2ULL));
- VerifyOrReturn(CheckValueAsString("operationalCert",
- ((CHIPTestClusterClusterTestListStructOctet *) actualValue[2]).operationalCert,
+ VerifyOrReturn(CheckValue("member1", ((CHIPTestClusterClusterTestListStructOctet *) actualValue[2]).member1, 2ULL));
+ VerifyOrReturn(CheckValueAsString("member2", ((CHIPTestClusterClusterTestListStructOctet *) actualValue[2]).member2,
[[NSData alloc] initWithBytes:"Test2" length:5]));
- VerifyOrReturn(
- CheckValue("fabricIndex", ((CHIPTestClusterClusterTestListStructOctet *) actualValue[3]).fabricIndex, 3ULL));
- VerifyOrReturn(CheckValueAsString("operationalCert",
- ((CHIPTestClusterClusterTestListStructOctet *) actualValue[3]).operationalCert,
+ VerifyOrReturn(CheckValue("member1", ((CHIPTestClusterClusterTestListStructOctet *) actualValue[3]).member1, 3ULL));
+ VerifyOrReturn(CheckValueAsString("member2", ((CHIPTestClusterClusterTestListStructOctet *) actualValue[3]).member2,
[[NSData alloc] initWithBytes:"Test3" length:5]));
}