At this time, the test case fails.
Change-Id: I843c7a5c0cf9fd5a5de7cfc41919af7902ce8e78
namespace display_server
{
DSPolicyArea::DSPolicyArea()
+ : __x(0),
+ __y(0),
+ __width(0),
+ __height(0),
+ __seat(nullptr)
{}
DSPolicyArea::~DSPolicyArea()
{}
+
+bool DSPolicyArea::setPosition(int x, int y)
+{
+ return false;
+}
+
+bool DSPolicyArea::setSize(int width, int height)
+{
+ return false;
+}
+
+bool DSPolicyArea::attachSeat(DSSeat *seat)
+{
+ return false;
+}
+
} // namespace display_server
\ No newline at end of file
#ifndef _DSPOLICYAREA_H_
#define _DSPOLICYAREA_H_
+#include <DSSeat.h>
+
namespace display_server
{
class DSPolicyArea
DSPolicyArea();
virtual ~DSPolicyArea();
+ bool setPosition(int x, int y);
+ bool setSize(int width, int height);
+ bool attachSeat(DSSeat *seat);
+
private:
- /* data */
+ int __x, __y;
+ int __width, __height;
+ DSSeat *__seat;
};
}
delete policyArea;
ASSERT_TRUE(true);
}
+
+TEST_F(DSPolicyAreaTest, BasicMethods)
+{
+ DSPolicyArea policyArea;
+ DSSeat seat;
+
+ EXPECT_TRUE(policyArea.setPosition(10, 10) == true);
+ EXPECT_TRUE(policyArea.setSize(100, 100) == true);
+ EXPECT_TRUE(policyArea.attachSeat(&seat) == true);
+}
\ No newline at end of file