File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ class AVInputTest : public ::testing::Test {
52
52
53
53
AVInputMock* p_avInputMock = nullptr ;
54
54
55
+ IarmBusImplMock* p_iarmBusImplMock = nullptr ;
56
+
55
57
AVInputTest ()
56
58
: plugin(Core::ProxyType<Plugin::AVInput>::Create())
57
59
, handler(*(plugin))
@@ -71,12 +73,21 @@ class AVInputTest : public ::testing::Test {
71
73
.WillByDefault (::testing::Return (AVInputImpl));
72
74
#endif
73
75
76
+ p_iarmBusImplMock = new NiceMock <IarmBusImplMock>;
77
+ IarmBus::setImpl (p_iarmBusImplMock);
78
+
74
79
plugin->Initialize (&service);
75
80
76
81
}
77
82
virtual ~AVInputTest ()
78
83
{
79
84
plugin->Deinitialize (&service);
85
+
86
+ IarmBus::setImpl (nullptr );
87
+ if (p_iarmBusImplMock != nullptr ) {
88
+ delete p_iarmBusImplMock;
89
+ p_iarmBusImplMock = nullptr ;
90
+ }
80
91
}
81
92
};
82
93
You can’t perform that action at this time.
0 commit comments