At this time, the test case fails.
Change-Id: I117ca29be31411724b8eed4760f102a1cc6ee2dd
namespace display_server
{
+
DSCanvas::DSCanvas()
+ : __polcyArea(nullptr),
+ __displayArea(nullptr)
{}
DSCanvas::~DSCanvas()
{}
+
+bool DSCanvas::attachPolicyArea(DSPolicyArea *polcyArea)
+{
+ return false;
+}
+
+bool DSCanvas::attachDisplayArea(DSDisplayArea *displayArea)
+{
+ return false;
+}
+
} // namespace display_server
\ No newline at end of file
#ifndef _DSCANVAS_H_
#define _DSCANVAS_H_
+#include <DSPolicyArea.h>
+#include <DSDisplayArea.h>
+
namespace display_server
{
class DSCanvas
DSCanvas();
virtual ~DSCanvas();
+ bool attachPolicyArea(DSPolicyArea *polcyArea);
+ bool attachDisplayArea(DSDisplayArea *displayArea);
+
private:
- /* data */
+ DSPolicyArea *__polcyArea;
+ DSDisplayArea *__displayArea;
};
}
delete canvas;
ASSERT_TRUE(true);
}
+
+TEST_F(DSCanvasTest, BasicMethods)
+{
+ DSCanvas canvas;
+ DSPolicyArea policyArea;
+ DSDisplayArea displayArea;
+
+ EXPECT_TRUE(canvas.attachPolicyArea(&policyArea) == true);
+ EXPECT_TRUE(canvas.attachDisplayArea(&displayArea) == true);
+}
\ No newline at end of file