Skip to content

Extend GenericSkeletonEvent to trigger EventUpdate notification#409

Open
Rahul-Sutariya wants to merge 1 commit into
eclipse-score:mainfrom
Rahul-Sutariya:extend_genericSkeletonEvent_to_trigger_eventUpdate_notification
Open

Extend GenericSkeletonEvent to trigger EventUpdate notification#409
Rahul-Sutariya wants to merge 1 commit into
eclipse-score:mainfrom
Rahul-Sutariya:extend_genericSkeletonEvent_to_trigger_eventUpdate_notification

Conversation

@Rahul-Sutariya
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread score/mw/com/impl/bindings/lola/generic_skeleton_event_test.cpp Outdated
Comment thread score/mw/com/impl/bindings/lola/generic_skeleton_event_test.cpp
Comment thread score/mw/com/impl/bindings/lola/generic_skeleton_event_test.cpp Outdated
Comment thread score/mw/com/impl/bindings/lola/generic_skeleton_event_test.cpp
@Rahul-Sutariya Rahul-Sutariya force-pushed the extend_genericSkeletonEvent_to_trigger_eventUpdate_notification branch 3 times, most recently from 00b4760 to f85c0da Compare May 19, 2026 11:31
@Rahul-Sutariya Rahul-Sutariya force-pushed the extend_genericSkeletonEvent_to_trigger_eventUpdate_notification branch from f85c0da to 0c9706a Compare May 19, 2026 11:40
@Rahul-Sutariya Rahul-Sutariya requested a review from crimson11 May 19, 2026 11:44
@Rahul-Sutariya Rahul-Sutariya marked this pull request as ready for review May 19, 2026 11:44
CreateGenericSkeletonEvent(
fake_element_fq_id_, fake_event_name_, max_samples, max_subscribers, enforce_max_samples);

// And receive handlers reported as registered for both quality levels
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK. Now I'm a bit nitpicky here ;)
The comment above/before the two EXPECT_CALL should be

expect, that EventNotificationExistenceChangedCallbacks are registered for both ASIL levels at message_passing

has_handlers_callback(true);
}));

// When offering the event and calling Notify
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be just

when offering the event


// When offering the event and calling Notify
std::ignore = generic_skeleton_event_->PrepareOffer();
EXPECT_CALL(message_passing_mock_, NotifyEvent(QualityType::kASIL_QM, fake_element_fq_id_));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then comment before these two EXPECT_CALL

expect, that NotifyEvent gets called at message-passing for both ASIL-levels

std::ignore = generic_skeleton_event_->PrepareOffer();
EXPECT_CALL(message_passing_mock_, NotifyEvent(QualityType::kASIL_QM, fake_element_fq_id_));
EXPECT_CALL(message_passing_mock_, NotifyEvent(QualityType::kASIL_B, fake_element_fq_id_));
auto result = generic_skeleton_event_->Notify();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment above

when Notify() gets called on the GenericSkeletonEvent

EXPECT_CALL(message_passing_mock_, NotifyEvent(QualityType::kASIL_B, fake_element_fq_id_));
auto result = generic_skeleton_event_->Notify();

// Then message passing is notified for both quality levels
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here the comment should then rather be

... and that the Notify() call had no errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants