File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ class AVInputTest : public ::testing::Test {
45
45
protected:
46
46
Core::ProxyType<Plugin::AVInput> plugin;
47
47
// <pca>
48
+ IarmBusImplMock* p_iarmBusImplMock = nullptr ;
48
49
Core::ProxyType<Plugin::AVInputImplementation> AVInputImpl;
49
50
Core::ProxyType<WorkerPoolImplementation> workerPool;
50
51
NiceMock<COMLinkMock> comLinkMock;
@@ -83,6 +84,9 @@ class AVInputTest : public ::testing::Test {
83
84
p_wrapsImplMock = new NiceMock <WrapsImplMock>;
84
85
Wraps::setImpl (p_wrapsImplMock);
85
86
87
+ p_iarmBusImplMock = new NiceMock<IarmBusImplMock>;
88
+ IarmBus::setImpl (p_iarmBusImplMock);
89
+
86
90
ON_CALL (*p_avInputMock, Register (::testing::Matcher<Exchange::IAVInput::IDevicesChangedNotification*>(::testing::_)))
87
91
.WillByDefault (::testing::Invoke (
88
92
[&](Exchange::IAVInput::IDevicesChangedNotification *notification){
@@ -172,6 +176,11 @@ class AVInputTest : public ::testing::Test {
172
176
delete p_wrapsImplMock;
173
177
p_wrapsImplMock = nullptr ;
174
178
}
179
+
180
+ if (p_iarmBusImplMock != nullptr ) {
181
+ delete p_iarmBusImplMock;
182
+ p_iarmBusImplMock = nullptr ;
183
+ }
175
184
}
176
185
// </pca>
177
186
};
You can’t perform that action at this time.
0 commit comments