This commit renames 'Use' mock-up class as 'Consumer'.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
--- /dev/null
+#ifndef __COCO_IR_CONSUMER_MOCK_H__
+#define __COCO_IR_CONSUMER_MOCK_H__
+
+#include "coco/IR/Object.h"
+
+namespace
+{
+namespace mock
+{
+struct Consumer final : public coco::Object::Consumer
+{
+ coco::Instr *loc(void) override { return nullptr; }
+};
+} // namespace mock
+} // namespace
+
+#endif // __COCO_IR_CONSUMER_MOCK_H__
+++ /dev/null
-#ifndef __COCO_IR_USE_MOCK_H__
-#define __COCO_IR_USE_MOCK_H__
-
-#include "coco/IR/Object.h"
-
-namespace
-{
-namespace mock
-{
-// TODO Rename class
-struct Use final : public coco::Object::Consumer
-{
- coco::Instr *loc(void) override { return nullptr; }
-};
-} // namespace mock
-} // namespace
-
-#endif // __COCO_IR_USE_MOCK_H__
#include "coco/IR/FeatureObject.h"
-#include "Use.mock.h"
+#include "Consumer.mock.h"
#include <gtest/gtest.h>
{
auto o = obj_mgr.create(nncc::core::ADT::feature::Shape{1, 1, 1});
- ::mock::Use use;
+ // TODO Rename 'use'
+ ::mock::Consumer use;
coco::Use slot{&use};
{
auto o = obj_mgr.create(nncc::core::ADT::feature::Shape{1, 1, 1});
- ::mock::Use use;
+ // TODO Rename 'use'
+ ::mock::Consumer use;
coco::Use slot{&use};