From: 박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 Date: Thu, 16 Aug 2018 09:47:59 +0000 (+0900) Subject: [coco] Share mock-up Use class (#1055) X-Git-Tag: nncc_backup~2139 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=758d04210d7683e17602ff3b6329c41c253672bc;p=platform%2Fcore%2Fml%2Fnnfw.git [coco] Share mock-up Use class (#1055) This commit extracts mock-up Use class from UseHook/UseSlot tests, and shares the extracted one for both tests. Signed-off-by: Jonghyun Park --- diff --git a/contrib/coco/core/src/IR/Use.mock.h b/contrib/coco/core/src/IR/Use.mock.h new file mode 100644 index 0000000..830ffdd --- /dev/null +++ b/contrib/coco/core/src/IR/Use.mock.h @@ -0,0 +1,16 @@ +#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__ diff --git a/contrib/coco/core/src/IR/UseHook.test.cpp b/contrib/coco/core/src/IR/UseHook.test.cpp index 5e9fb78..44169aa 100644 --- a/contrib/coco/core/src/IR/UseHook.test.cpp +++ b/contrib/coco/core/src/IR/UseHook.test.cpp @@ -4,17 +4,9 @@ #include "coco/IR/FeatureObject.h" -#include +#include "Use.mock.h" -namespace -{ -namespace mock -{ -struct Use final : public coco::Object::Use -{ -}; -} // namespace mock -} // namespace +#include namespace { diff --git a/contrib/coco/core/src/IR/UseSlot.test.cpp b/contrib/coco/core/src/IR/UseSlot.test.cpp index bac3caf..1f7773b 100644 --- a/contrib/coco/core/src/IR/UseSlot.test.cpp +++ b/contrib/coco/core/src/IR/UseSlot.test.cpp @@ -4,17 +4,9 @@ #include "coco/IR/FeatureObject.h" -#include +#include "Use.mock.h" -namespace -{ -namespace mock -{ -struct Use final : public coco::Object::Use -{ -}; -} // namespace mock -} // namespace +#include namespace {