Skip to content

Commit

Permalink
Restyle
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Jun 28, 2024
1 parent f2911ef commit fedfc79
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/codegen-data-model/tests/TestCodegenModelViaMocks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1910,7 +1910,8 @@ TEST(TestCodegenModelViaMocks, EmberAttributeWriteNullableLongStringValue)
TestWriteRequest test(kAdminSubjectDescriptor,
ConcreteAttributePath(kMockEndpoint3, MockClusterId(4),
MOCK_ATTRIBUTE_ID_FOR_NULLABLE_TYPE(ZCL_LONG_CHAR_STRING_ATTRIBUTE_TYPE)));
AttributeValueDecoder decoder = test.DecoderFor<chip::app::DataModel::Nullable<CharSpan>>(chip::app::DataModel::MakeNullable("text"_span));
AttributeValueDecoder decoder =
test.DecoderFor<chip::app::DataModel::Nullable<CharSpan>>(chip::app::DataModel::MakeNullable("text"_span));

ASSERT_EQ(model.WriteAttribute(test.request, decoder), CHIP_NO_ERROR);
chip::ByteSpan writtenData = GetEmberBuffer();
Expand All @@ -1932,7 +1933,8 @@ TEST(TestCodegenModelViaMocks, EmberAttributeWriteLongNullableStringNull)
TestWriteRequest test(kAdminSubjectDescriptor,
ConcreteAttributePath(kMockEndpoint3, MockClusterId(4),
MOCK_ATTRIBUTE_ID_FOR_NULLABLE_TYPE(ZCL_LONG_CHAR_STRING_ATTRIBUTE_TYPE)));
AttributeValueDecoder decoder = test.DecoderFor<chip::app::DataModel::Nullable<CharSpan>>(chip::app::DataModel::Nullable<CharSpan>());
AttributeValueDecoder decoder =
test.DecoderFor<chip::app::DataModel::Nullable<CharSpan>>(chip::app::DataModel::Nullable<CharSpan>());

ASSERT_EQ(model.WriteAttribute(test.request, decoder), CHIP_NO_ERROR);
chip::ByteSpan writtenData = GetEmberBuffer();
Expand Down

0 comments on commit fedfc79

Please sign in to comment.