mmi_shutdown();
}
-TEST_F(MMIFWMainTest, MMIFWMainInstanceCreateSuccess)
+TEST_F(MMIFWMainTest, MMIFWMainInstanceCreateDestroySuccess)
{
int timer = 0;
int res = mmi_init();
}
if(h){
- mmi_instance_destroy(h);
+ mmi_instance_destroy(&h);
+ EXPECT_EQ(h, nullptr);
if(rpc_port_deregister_proc_info() == RPC_PORT_ERROR_NONE)
{
EXPECT_TRUE(mmi_ipc_is_connected());
if(h){
- mmi_instance_destroy(h);
+ mmi_instance_destroy(&h);
+ EXPECT_EQ(h, nullptr);
if(rpc_port_deregister_proc_info() == RPC_PORT_ERROR_NONE)
{
}
if(h){
- mmi_instance_destroy(h);
+ mmi_instance_destroy(&h);
+ EXPECT_EQ(h, nullptr);
if(rpc_port_deregister_proc_info() == RPC_PORT_ERROR_NONE)
{
mmi_event_remove_listener(h, handler);
if(h){
- mmi_instance_destroy(h);
+ mmi_instance_destroy(&h);
+ EXPECT_EQ(h, nullptr);
if(rpc_port_deregister_proc_info() == RPC_PORT_ERROR_NONE)
{
mmi_event_remove_listener(h, handler);
if(h){
- mmi_instance_destroy(h);
+ mmi_instance_destroy(&h);
+ EXPECT_EQ(h, nullptr);
if(rpc_port_deregister_proc_info() == RPC_PORT_ERROR_NONE)
{
mmi_event_remove_listener(h, handler);
if(h){
- mmi_instance_destroy(h);
+ mmi_instance_destroy(&h);
+ EXPECT_EQ(h, nullptr);
if(rpc_port_deregister_proc_info() == RPC_PORT_ERROR_NONE)
{
}
if(h){
- mmi_instance_destroy(h);
+ mmi_instance_destroy(&h);
+ EXPECT_EQ(h, nullptr);
if(rpc_port_deregister_proc_info() == RPC_PORT_ERROR_NONE)
{
}
if(h){
- mmi_instance_destroy(h);
+ mmi_instance_destroy(&h);
+ EXPECT_EQ(h, nullptr);
if(rpc_port_deregister_proc_info() == RPC_PORT_ERROR_NONE)
{
}
if(h){
- mmi_instance_destroy(h);
+ mmi_instance_destroy(&h);
+ EXPECT_EQ(h, nullptr);
if(rpc_port_deregister_proc_info() == RPC_PORT_ERROR_NONE)
{