At this time, the test case fails.
Change-Id: Ib8b2c7a47168be836e5ab5db67ff0ce99e068599
namespace display_server
{
+
DSSeat::DSSeat()
+ : __input(nullptr)
{}
DSSeat::~DSSeat()
{}
+
+bool DSSeat::addInput(DSInput *input)
+{
+ return false;
+}
+
+bool DSSeat::removeInput(DSInput *input)
+{
+ return false;
+}
+
} // namespace display_server
\ No newline at end of file
#ifndef _DSSEAT_H_
#define _DSSEAT_H_
+#include <DSInput.h>
+
namespace display_server
{
+
class DSSeat
{
public:
DSSeat();
virtual ~DSSeat();
+ bool addInput(DSInput *input);
+ bool removeInput(DSInput *input);
+
private:
- /* data */
+ DSInput *__input;
};
+
}
#endif
\ No newline at end of file
delete input;
ASSERT_TRUE(true);
}
+
+TEST_F(DSInputTest, BasicMethods)
+{
+ DSInput input;
+
+ EXPECT_TRUE(true);
+}
delete seat;
ASSERT_TRUE(true);
}
+
+TEST_F(DSSeatTest, BasicMethods)
+{
+ DSSeat seat;
+ DSInput input;
+
+ EXPECT_TRUE(seat.addInput(&input) == true);
+ EXPECT_TRUE(seat.removeInput(&input) == true);
+}