This commit extracts mock-up Use class from UseHook/UseSlot tests, and
shares the extracted one for both tests.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
--- /dev/null
+#ifndef __COCO_IR_USE_MOCK_H__
+#define __COCO_IR_USE_MOCK_H__
+
+#include "coco/IR/Object.h"
+
+namespace
+{
+namespace mock
+{
+struct Use final : public coco::Object::Use
+{
+};
+} // namespace mock
+} // namespace
+
+#endif // __COCO_IR_USE_MOCK_H__
#include "coco/IR/FeatureObject.h"
-#include <gtest/gtest.h>
+#include "Use.mock.h"
-namespace
-{
-namespace mock
-{
-struct Use final : public coco::Object::Use
-{
-};
-} // namespace mock
-} // namespace
+#include <gtest/gtest.h>
namespace
{
#include "coco/IR/FeatureObject.h"
-#include <gtest/gtest.h>
+#include "Use.mock.h"
-namespace
-{
-namespace mock
-{
-struct Use final : public coco::Object::Use
-{
-};
-} // namespace mock
-} // namespace
+#include <gtest/gtest.h>
namespace
{