This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/gtest/gtest_hos_client_create.cpp

22 lines
695 B
C++

/*************************************************************************
> File Name: gtest_hos_cleint_create.cpp
> Author: pxz
> Created Time: Tue 29 Sep 2020 10:20:49 AM CST
************************************************************************/
#include <gtest/gtest.h>
#include "hos_client.h"
TEST(hos_client_create, normal)
{
hos_client_handle handle = NULL;
handle = hos_client_create("http://192.168.40.151/hos/", "default", "default", 1);
EXPECT_NE((void *)NULL, handle);
}
TEST(hos_client_create, parameter_error)
{
hos_client_handle handle = NULL;
handle = hos_client_create(NULL, "default", "default", 1);
EXPECT_EQ((void *)NULL, handle);
}