-
Notifications
You must be signed in to change notification settings - Fork 19
RDKEMW-18434 : [BCM Rogers Monarch IUI V2] RialtoServer process crash observed while switching between Xumo FAST channels during CC verification #554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
d822db8
e660c09
f422cd0
b552061
dc66d0c
1eb5a4c
02a91be
5b910ff
739ccb4
092987e
b6d2a9f
6abd5a1
8106f0e
283a18e
58c212b
7a91e22
8348306
a404e02
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1710,6 +1710,7 @@ TEST_F(GstGenericPlayerPrivateTest, shouldStartPlaybackInfoTimer) | |
| { | ||
| willNotifyPlaybackInfo(); | ||
| std::unique_ptr<common::ITimer> playbackInfoTimerMock = std::make_unique<StrictMock<TimerMock>>(); | ||
| EXPECT_CALL(dynamic_cast<StrictMock<TimerMock> &>(*playbackInfoTimerMock), isActive()).WillRepeatedly(Return(false)); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please apply the copilot comment. |
||
| EXPECT_CALL(*m_timerFactoryMock, createTimer(kPlaybackInfoTimerMs, _, common::TimerType::PERIODIC)) | ||
|
rekhap2kandhavelan marked this conversation as resolved.
|
||
| .WillOnce(Return(ByMove(std::move(playbackInfoTimerMock)))); | ||
|
|
||
|
|
@@ -1720,6 +1721,7 @@ TEST_F(GstGenericPlayerPrivateTest, shouldNotifyPlaybackInfoWithAudioFade) | |
| { | ||
| willNotifyPlaybackInfoWithAudioFade(); | ||
| std::unique_ptr<common::ITimer> playbackInfoTimerMock = std::make_unique<StrictMock<TimerMock>>(); | ||
| EXPECT_CALL(dynamic_cast<StrictMock<TimerMock> &>(*playbackInfoTimerMock), isActive()).WillRepeatedly(Return(false)); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please apply the copilot comment. |
||
| EXPECT_CALL(*m_timerFactoryMock, createTimer(kPlaybackInfoTimerMs, _, common::TimerType::PERIODIC)) | ||
|
rekhap2kandhavelan marked this conversation as resolved.
|
||
| .WillOnce(Return(ByMove(std::move(playbackInfoTimerMock)))); | ||
|
|
||
|
|
@@ -1740,7 +1742,9 @@ TEST_F(GstGenericPlayerPrivateTest, shouldNotStartPositionReportingTimerWhenItIs | |
| TEST_F(GstGenericPlayerPrivateTest, shouldNotStartPlaybackInfoTimerWhenItIsActive) | ||
| { | ||
| std::unique_ptr<common::ITimer> timerMock = std::make_unique<StrictMock<TimerMock>>(); | ||
| EXPECT_CALL(dynamic_cast<StrictMock<TimerMock> &>(*timerMock), isActive()).WillOnce(Return(true)); | ||
| EXPECT_CALL(dynamic_cast<StrictMock<TimerMock> &>(*timerMock), isActive()) | ||
| .WillOnce(Return(true)) | ||
| .WillRepeatedly(Return(false)); | ||
|
Comment on lines
+1745
to
+1747
|
||
| EXPECT_CALL(*m_timerFactoryMock, createTimer(kPlaybackInfoTimerMs, _, common::TimerType::PERIODIC)) | ||
|
Comment on lines
1744
to
1748
|
||
| .WillOnce(Return(ByMove(std::move(timerMock)))); | ||
| willNotifyPlaybackInfo(); | ||
|
|
@@ -1772,6 +1776,7 @@ TEST_F(GstGenericPlayerPrivateTest, shouldSchedulePlaybackInfoWhenPlaybackInfoTi | |
| std::unique_ptr<common::ITimer> timerMock = std::make_unique<StrictMock<TimerMock>>(); | ||
| willNotifyPlaybackInfo(); | ||
| std::unique_ptr<common::ITimer> playbackInfoTimerMock = std::make_unique<StrictMock<TimerMock>>(); | ||
| EXPECT_CALL(dynamic_cast<StrictMock<TimerMock> &>(*playbackInfoTimerMock), isActive()).WillRepeatedly(Return(false)); | ||
|
rekhap2kandhavelan marked this conversation as resolved.
|
||
| EXPECT_CALL(*m_timerFactoryMock, createTimer(kPlaybackInfoTimerMs, _, common::TimerType::PERIODIC)) | ||
|
rekhap2kandhavelan marked this conversation as resolved.
|
||
| .WillOnce(Invoke( | ||
| [&](const std::chrono::milliseconds &timeout, const std::function<void()> &callback, common::TimerType timerType) | ||
|
|
@@ -1799,7 +1804,9 @@ TEST_F(GstGenericPlayerPrivateTest, shouldStopActivePlaybackInfoTimerTimer) | |
| { | ||
| willNotifyPlaybackInfo(); | ||
| std::unique_ptr<common::ITimer> playbackInfoTimerMock = std::make_unique<StrictMock<TimerMock>>(); | ||
| EXPECT_CALL(dynamic_cast<StrictMock<TimerMock> &>(*playbackInfoTimerMock), isActive()).WillOnce(Return(true)); | ||
| EXPECT_CALL(dynamic_cast<StrictMock<TimerMock> &>(*playbackInfoTimerMock), isActive()) | ||
| .WillOnce(Return(true)) | ||
| .WillRepeatedly(Return(false)); | ||
| EXPECT_CALL(dynamic_cast<StrictMock<TimerMock> &>(*playbackInfoTimerMock), cancel()); | ||
| EXPECT_CALL(*m_timerFactoryMock, createTimer(kPlaybackInfoTimerMs, _, common::TimerType::PERIODIC)) | ||
| .WillOnce(Return(ByMove(std::move(playbackInfoTimerMock)))); | ||
|
|
@@ -1823,7 +1830,7 @@ TEST_F(GstGenericPlayerPrivateTest, shouldNotStopInactivePlaybackInfoTimer) | |
| { | ||
| willNotifyPlaybackInfo(); | ||
| std::unique_ptr<common::ITimer> playbackInfoTimerMock = std::make_unique<StrictMock<TimerMock>>(); | ||
| EXPECT_CALL(dynamic_cast<StrictMock<TimerMock> &>(*playbackInfoTimerMock), isActive()).WillOnce(Return(false)); | ||
| EXPECT_CALL(dynamic_cast<StrictMock<TimerMock> &>(*playbackInfoTimerMock), isActive()).WillRepeatedly(Return(false)); | ||
| EXPECT_CALL(*m_timerFactoryMock, createTimer(kPlaybackInfoTimerMs, _, common::TimerType::PERIODIC)) | ||
| .WillOnce(Return(ByMove(std::move(playbackInfoTimerMock)))); | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,6 +25,7 @@ | |
| #include <utility> | ||
|
|
||
| using ::testing::_; | ||
| using ::testing::AnyNumber; | ||
| using ::testing::ByMove; | ||
| using ::testing::Invoke; | ||
| using ::testing::Return; | ||
|
|
@@ -56,6 +57,7 @@ void GstGenericPlayerTestCommon::gstPlayerWillBeDestroyed() | |
| { | ||
| expectShutdown(); | ||
| expectStop(); | ||
| EXPECT_CALL(*m_timerFactoryMock, createTimer(_, _, _)).Times(AnyNumber()); | ||
|
rekhap2kandhavelan marked this conversation as resolved.
rekhap2kandhavelan marked this conversation as resolved.
rekhap2kandhavelan marked this conversation as resolved.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please apply this copilot comment. Create timer is not called during the GstGenericPlayer teardown, so this expect_call should be moved to the dedicated method, e.g. void expectPlaybackInfoTimerCreation() and void expectPlaybackInfoTimerCancel(). EXPECT_CALLs should not have any .Times(AnyNumber()); and expects should be added only for tests, that really need it. |
||
| EXPECT_CALL(*m_gstWrapperMock, gstPipelineGetBus(GST_PIPELINE(&m_pipeline))).WillOnce(Return(&m_bus)); | ||
|
rekhap2kandhavelan marked this conversation as resolved.
rekhap2kandhavelan marked this conversation as resolved.
|
||
| EXPECT_CALL(*m_gstWrapperMock, gstBusSetSyncHandler(&m_bus, nullptr, nullptr, nullptr)); | ||
|
rekhap2kandhavelan marked this conversation as resolved.
|
||
| EXPECT_CALL(*m_gstWrapperMock, gstObjectUnref(&m_bus)); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.