@@ -67,7 +67,6 @@ class FakeDefaultServerCluster : public DefaultServerCluster
67
67
68
68
void TestIncreaseDataVersion () { IncreaseDataVersion (); }
69
69
void TestNotifyAttributeChanged (AttributeId attributeId) { NotifyAttributeChanged (attributeId); }
70
- void TestNotifyAllAttributesChanged () { NotifyAllAttributesChanged (); }
71
70
72
71
private:
73
72
ConcreteClusterPath mPath ;
@@ -200,28 +199,3 @@ TEST(TestDefaultServerCluster, NotifyAttributeChanged)
200
199
ASSERT_EQ (context.ChangeListener ().DirtyList ().size (), 1u );
201
200
ASSERT_EQ (context.ChangeListener ().DirtyList ()[0 ], AttributePathParams (kEndpointId , kClusterId , 234 ));
202
201
}
203
-
204
- TEST (TestDefaultServerCluster, NotifyAllAttributesChanged)
205
- {
206
- constexpr EndpointId kEndpointId = 321 ;
207
- constexpr ClusterId kClusterId = 1122 ;
208
- FakeDefaultServerCluster cluster ({ kEndpointId , kClusterId });
209
-
210
- // When no ServerClusterContext is set, only the data version should change.
211
- DataVersion oldVersion = cluster.GetDataVersion ();
212
-
213
- cluster.TestNotifyAllAttributesChanged ();
214
- ASSERT_NE (cluster.GetDataVersion (), oldVersion);
215
-
216
- // Create a ServerClusterContext and verify that attribute change notifications are processed.
217
- TestServerClusterContext context;
218
- ASSERT_EQ (cluster.Startup (context.Get ()), CHIP_NO_ERROR);
219
-
220
- oldVersion = cluster.GetDataVersion ();
221
- cluster.TestNotifyAllAttributesChanged ();
222
- ASSERT_NE (cluster.GetDataVersion (), oldVersion);
223
-
224
- // When all attributes are changed, a wildcard should be used in the list.
225
- ASSERT_EQ (context.ChangeListener ().DirtyList ().size (), 1u );
226
- ASSERT_EQ (context.ChangeListener ().DirtyList ()[0 ], AttributePathParams (kEndpointId , kClusterId ));
227
- }
0 commit comments