EXPECT_EQ(THREAD_ERROR_NONE, thread_enable(&instance));
EXPECT_EQ(THREAD_ERROR_NONE,
thread_add_ipaddr(instance, ipv6Address));
+}
+
+TEST_F(ThreadNetworkTest, RemoveIpAddrNotInitialized)
+{
+ EXPECT_EQ(THREAD_ERROR_NONE, thread_deinitialize());
+ EXPECT_EQ(THREAD_ERROR_NOT_INITIALIZED,
+ thread_remove_ipaddr(instance, ipv6Address));
+}
+
+TEST_F(ThreadNetworkTest, RemoveIpAddrInvalidParameter)
+{
+ EXPECT_EQ(THREAD_ERROR_INVALID_PARAMETER,
+ thread_remove_ipaddr(instance, ipv6Address));
+}
+
+TEST_F(ThreadNetworkTest, RemoveIpAddrErrorNone)
+{
+ EXPECT_EQ(THREAD_ERROR_NONE, thread_enable(&instance));
+ EXPECT_EQ(THREAD_ERROR_NONE,
+ thread_remove_ipaddr(instance, ipv6Address));
}
\ No newline at end of file