17
17
*/
18
18
19
19
#include < app-common/zap-generated/cluster-objects.h>
20
+ #include < app/data-model-interface/EventsGenerator.h>
20
21
#include < app/data-model/Decode.h>
21
- #include < app/interaction-model/Events.h>
22
22
#include < lib/support/CodeUtils.h>
23
23
24
24
#include < gtest/gtest.h>
@@ -36,7 +36,7 @@ constexpr uint32_t kFakeSoftwareVersion = 0x1234abcd;
36
36
37
37
// / Keeps the "last event" in-memory to allow tests to validate
38
38
// / that event writing and encoding worked.
39
- class LogOnlyEvents : public Events
39
+ class LogOnlyEvents : public EventsGenerator
40
40
{
41
41
public:
42
42
CHIP_ERROR GenerateEvent (EventLoggingDelegate * eventContentWriter, const EventOptions & options,
@@ -96,7 +96,7 @@ class LogOnlyEvents : public Events
96
96
TEST (TestInteractionModelEventEmitting, TestBasicType)
97
97
{
98
98
LogOnlyEvents logOnlyEvents;
99
- Events * events = &logOnlyEvents;
99
+ EventsGenerator * events = &logOnlyEvents;
100
100
101
101
StartUpEventType event{ kFakeSoftwareVersion };
102
102
@@ -131,7 +131,7 @@ TEST(TestInteractionModelEventEmitting, TestFabricScoped)
131
131
static_assert (kTestFabricIndex != kUndefinedFabricIndex );
132
132
133
133
LogOnlyEvents logOnlyEvents;
134
- Events * events = &logOnlyEvents;
134
+ EventsGenerator * events = &logOnlyEvents;
135
135
136
136
AccessControlEntryChangedType event;
137
137
event.adminNodeID = chip::app::DataModel::MakeNullable (kTestNodeId );
0 commit comments