Skip to content

Commit 765b175

Browse files
committed
AVInput COM-RPC Support: Unit tests: Fixed mocking
1 parent cb1cd22 commit 765b175

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Tests/L1Tests/tests/test_AVInput.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -82,44 +82,44 @@ class AVInputTest : public ::testing::Test {
8282
p_wrapsImplMock = new NiceMock <WrapsImplMock>;
8383
Wraps::setImpl(p_wrapsImplMock);
8484

85-
ON_CALL(*p_avInputMock, Register(::testing::_))
85+
ON_CALL(*p_avInputMock, Register(::testing::Matcher<Exchange::IAVInput::IDevicesChangedNotification*>(::testing::_)))
8686
.WillByDefault(::testing::Invoke(
87-
[&](Exchange::IDevicesChangedNotification::OnDevicesChangedNotification *notification){
87+
[&](Exchange::IAVInput::IDevicesChangedNotification *notification){
8888
OnDevicesChangedNotification = notification;
8989
return Core::ERROR_NONE;;
9090
}));
9191

92-
ON_CALL(*p_avInputMock, Register(::testing::_))
92+
ON_CALL(*p_avInputMock, Register(::testing::Matcher<Exchange::IAVInput::ISignalChangedNotification*>(::testing::_)))
9393
.WillByDefault(::testing::Invoke(
94-
[&](Exchange::ISignalChangedNotification *notification){
94+
[&](Exchange::IAVInput::ISignalChangedNotification *notification){
9595
OnSignalChangedNotification = notification;
9696
return Core::ERROR_NONE;;
9797
}));
9898

99-
ON_CALL(*p_avInputMock, Register(::testing::_))
99+
ON_CALL(*p_avInputMock, Register(::testing::Matcher<Exchange::IAVInput::IInputStatusChangedNotification*>(::testing::_)))
100100
.WillByDefault(::testing::Invoke(
101-
[&](Exchange::IInputStatusChangedNotification *notification){
101+
[&](Exchange::IAVInput::IInputStatusChangedNotification *notification){
102102
OnInputStatusChangedNotification = notification;
103103
return Core::ERROR_NONE;;
104104
}));
105105

106-
ON_CALL(*p_avInputMock, Register(::testing::_))
106+
ON_CALL(*p_avInputMock, Register(::testing::Matcher<Exchange::IAVInput::IVideoStreamInfoUpdateNotification*>(::testing::_)))
107107
.WillByDefault(::testing::Invoke(
108-
[&](Exchange::IVideoStreamInfoUpdateNotification *notification){
108+
[&](Exchange::IAVInput::IVideoStreamInfoUpdateNotification *notification){
109109
OnVideoStreamInfoUpdateNotification = notification;
110110
return Core::ERROR_NONE;;
111111
}));
112112

113-
ON_CALL(*p_avInputMock, Register(::testing::_))
113+
ON_CALL(*p_avInputMock, Register(::testing::Matcher<Exchange::IAVInput::IGameFeatureStatusUpdateNotification*>(::testing::_)))
114114
.WillByDefault(::testing::Invoke(
115-
[&](Exchange::IGameFeatureStatusUpdateNotification *notification){
115+
[&](Exchange::IAVInput::IGameFeatureStatusUpdateNotification *notification){
116116
OnGameFeatureStatusUpdateNotification = notification;
117117
return Core::ERROR_NONE;;
118118
}));
119119

120-
ON_CALL(*p_avInputMock, Register(::testing::_))
120+
ON_CALL(*p_avInputMock, Register(::testing::Matcher<Exchange::IAVInput::IHdmiContentTypeUpdateNotification*>(::testing::_)))
121121
.WillByDefault(::testing::Invoke(
122-
[&](Exchange::IHdmiContentTypeUpdateNotification *notification){
122+
[&](Exchange::IAVInput::IHdmiContentTypeUpdateNotification *notification){
123123
OnHdmiContentTypeUpdateNotification = notification;
124124
return Core::ERROR_NONE;;
125125
}));

0 commit comments

Comments
 (0)