}
// Start the test elevator once and use it through out the rest of the tests.
-TEST(ElevatorServerStart, start)
+TEST(ElevatorServerStart, DISABLED_start)
{
IPCASetUnitTestMode();
ASSERT_TRUE(StartElevator1());
}
// Test IoTivity api directly before subsequent tests which use IPCA apis.
-TEST(IoTivityDirect, IsIoTivityWorking)
+TEST(IoTivityDirect, DISABLED_IsIoTivityWorking)
{
ElevatorClient elevatorClient;
int loopCount;
}
};
-TEST_F(IPCAPropertyBagTest, PropertyBagNonExistenceAttribute)
+TEST_F(IPCAPropertyBagTest, DISABLED_PropertyBagNonExistenceAttribute)
{
EXPECT_EQ(IPCA_FAIL, IPCAPropertyBagGetValueInt(m_propertyBagHandle,
"NonexistenceAttribute", &m_intValue));
}
-TEST_F(IPCAPropertyBagTest, PropertyBagInt)
+TEST_F(IPCAPropertyBagTest, DISABLED_PropertyBagInt)
{
ASSERT_EQ(IPCA_OK, IPCAPropertyBagSetValueInt(m_propertyBagHandle, "IntValue", 3));
ASSERT_EQ(IPCA_OK, IPCAPropertyBagGetValueInt(m_propertyBagHandle, "IntValue", &m_intValue));
EXPECT_EQ(3, m_intValue);
}
-TEST_F(IPCAPropertyBagTest, PropertyBagDouble)
+TEST_F(IPCAPropertyBagTest, DISABLED_PropertyBagDouble)
{
ASSERT_EQ(IPCA_OK, IPCAPropertyBagSetValueDouble(m_propertyBagHandle,
"DoubleValue", 12345678));
"doubleValue", &m_doubleValue)); // incorrect capital case
}
-TEST_F(IPCAPropertyBagTest, PropertyBagBool)
+TEST_F(IPCAPropertyBagTest, DISABLED_PropertyBagBool)
{
bool trueBool, falseBool;
EXPECT_FALSE(falseBool);
}
-TEST_F(IPCAPropertyBagTest, PropertyBagString)
+TEST_F(IPCAPropertyBagTest, DISABLED_PropertyBagString)
{
ASSERT_EQ(IPCA_OK, IPCAPropertyBagSetValueString(m_propertyBagHandle,
"MyString", "Hello World"));
IPCAPropertyBagFreeString(m_charPointerValue);
}
-TEST_F(IPCAPropertyBagTest, PropertyBagPropertyBagType)
+TEST_F(IPCAPropertyBagTest, DISABLED_PropertyBagPropertyBagType)
{
IPCAPropertyBagHandle propertyBagHandle1, propertyBagHandle2, propertyBagHandle3;
CreateIntPropertyBag(propertyBagHandle1, "IntValue1", 1);
IPCAPropertyBagDestroy(propertyBag3);
}
-TEST_F(IPCAPropertyBagTest, PropertyBagIntArrayType)
+TEST_F(IPCAPropertyBagTest, DISABLED_PropertyBagIntArrayType)
{
// array of int
int intArray[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
IPCAPropertyBagFreeIntArray(readBackIntArray);
}
-TEST_F(IPCAPropertyBagTest, PropertyBagDoubleArrayType)
+TEST_F(IPCAPropertyBagTest, DISABLED_PropertyBagDoubleArrayType)
{
// array of double
double doubleArray[] = {1.01, 2.02, 3.03, 4.04, 5.05, 6.06, 7.07, 8.08, 9.09, 10.010};
IPCAPropertyBagFreeDoubleArray(readBackDoubleArray);
}
-TEST_F(IPCAPropertyBagTest, PropertyBagBoolArrayType)
+TEST_F(IPCAPropertyBagTest, DISABLED_PropertyBagBoolArrayType)
{
// array of bool
bool boolArray[] = {true, true, false, false, true, false, true, false, false, false};
IPCAPropertyBagFreeBoolArray(readBackBoolArray);
}
-TEST_F(IPCAPropertyBagTest, PropertyBagStringArrayType)
+TEST_F(IPCAPropertyBagTest, DISABLED_PropertyBagStringArrayType)
{
// array of string
char* stringArray[] = {"hello world 1", "hello world 2", "hello world 3"};
IPCAPropertyBagFreeStringArray(readBackString, readbackStringSize);
}
-TEST_F(IPCAPropertyBagTest, PropertyBagPropertyBagArrayType)
+TEST_F(IPCAPropertyBagTest, DISABLED_PropertyBagPropertyBagArrayType)
{
IPCAPropertyBagHandle propertyBagHandle1, propertyBagHandle1A;
EXPECT_EQ(IPCA_OK, IPCAPropertyBagCreate(&propertyBagHandle1));
}
};
-TEST_F(IPCAMiscTest, ShouldNotAllowMultipleCallsToIPCOpen)
+TEST_F(IPCAMiscTest, DISABLED_ShouldNotAllowMultipleCallsToIPCOpen)
{
EXPECT_EQ(IPCA_ALREADY_OPENED, DoAnotherIPCAOpen());
}
-TEST_F(IPCAMiscTest, IPCAOpenShouldBeAllowedAfterIPCAClose)
+TEST_F(IPCAMiscTest, DISABLED_IPCAOpenShouldBeAllowedAfterIPCAClose)
{
IPCAClose(m_ipcaAppHandle);
m_ipcaAppHandle = NULL;
/*
* IPCADiscoverDevices() must be called before IPCAOpenDevice().
*/
-TEST_F(IPCAMiscTest, ShouldFailOpenDeviceWithoutDiscoveryFirst)
+TEST_F(IPCAMiscTest, DISABLED_ShouldFailOpenDeviceWithoutDiscoveryFirst)
{
IPCADeviceHandle deviceHandle;
&deviceHandle));
}
-TEST_F(IPCAElevatorClient, DiscoveryShouldFindElevatorServer)
+TEST_F(IPCAElevatorClient, DISABLED_DiscoveryShouldFindElevatorServer)
{
EXPECT_TRUE(IsElevator1Discovered());
}
-TEST_F(IPCAElevatorClient, DiscoveryShouldFindDeviceAndPlatformInfo)
+TEST_F(IPCAElevatorClient, DISABLED_DiscoveryShouldFindDeviceAndPlatformInfo)
{
EXPECT_EQ(IPCA_OK, ConfirmDeviceAndPlatformInfo());
}
-TEST_F(IPCAElevatorClient, DiscoveryShouldFindElevatorResources)
+TEST_F(IPCAElevatorClient, DISABLED_DiscoveryShouldFindElevatorResources)
{
EXPECT_EQ(IPCA_OK, ConfirmResources());
}
-TEST_F(IPCAElevatorClient, DiscoveryShouldFindTargetedResourceTypes)
+TEST_F(IPCAElevatorClient, DISABLED_DiscoveryShouldFindTargetedResourceTypes)
{
EXPECT_EQ(IPCA_OK, ConfirmResourceTypes());
}
-TEST_F(IPCAElevatorClient, ShouldBeAbleToFilterOnResourceInterface)
+TEST_F(IPCAElevatorClient, DISABLED_ShouldBeAbleToFilterOnResourceInterface)
{
EXPECT_EQ(IPCA_OK, ConfirmResourceInterfaces());
}
-TEST_F(IPCAElevatorClient, SuccessfullyGetDataFromElevatorServer)
+TEST_F(IPCAElevatorClient, DISABLED_SuccessfullyGetDataFromElevatorServer)
{
// Directly set target floor of the elevator to 8.
g_testElevator1.SetTargetFloor(8);
EXPECT_EQ(8, elevatorTargetFloor);
}
-TEST_F(IPCAElevatorClient, ShouldFailGetUnknownResource)
+TEST_F(IPCAElevatorClient, DISABLED_ShouldFailGetUnknownResource)
{
EXPECT_EQ(IPCA_RESOURCE_NOT_FOUND, GetUnknownResource());
}
-TEST_F(IPCAElevatorClient, ShouldFailSetUnknownResource)
+TEST_F(IPCAElevatorClient, DISABLED_ShouldFailSetUnknownResource)
{
EXPECT_EQ(IPCA_RESOURCE_NOT_FOUND, SetUnknownResource());
}
-TEST_F(IPCAElevatorClient, ShouldFailSetWithUnknownInterface)
+TEST_F(IPCAElevatorClient, DISABLED_ShouldFailSetWithUnknownInterface)
{
size_t incorrectInterfaceCount = g_testElevator1.GetIncorrectInterfaceCount();
EXPECT_EQ(true, SetUnknoownInterface());
EXPECT_EQ((incorrectInterfaceCount + 1), g_testElevator1.GetIncorrectInterfaceCount());
}
-TEST_F(IPCAElevatorClient, SuccessfullySetElevatorServerProperties)
+TEST_F(IPCAElevatorClient, DISABLED_SuccessfullySetElevatorServerProperties)
{
g_testElevator1.SetTargetFloor(1); // Set to known target floor.
EXPECT_EQ(8, newTargetFloor);
}
-TEST_F(IPCAElevatorClient, SuccessfullyCreateAndDeleteResources)
+TEST_F(IPCAElevatorClient, DISABLED_SuccessfullyCreateAndDeleteResources)
{
// Do a few rounds of create resource with relative path.
size_t beforeCreateCount, afterCreateCount;
}
}
-TEST_F(IPCAElevatorClient, SuccessfullyReceiveResourceChangeNotifications)
+TEST_F(IPCAElevatorClient, DISABLED_SuccessfullyReceiveResourceChangeNotifications)
{
// Set to known target floor.
g_testElevator1.SetTargetFloor(1);
StopObserve();
}
-TEST_F(IPCAElevatorClient, SuccessfulFactoryReset)
+TEST_F(IPCAElevatorClient, DISABLED_SuccessfulFactoryReset)
{
EXPECT_EQ(IPCA_OK, FactoryResetElevator());
}
-TEST_F(IPCAElevatorClient, SuccessfulReboot)
+TEST_F(IPCAElevatorClient, DISABLED_SuccessfulReboot)
{
EXPECT_EQ(IPCA_OK, RebootElevator());
}
-TEST(ElevatorServerStop, Stop)
+TEST(ElevatorServerStop, DISABLED_Stop)
{
StopElevator1();
}