X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftest-intrusive-ptr.h;h=13367455048151e6ed65799205c623961568b4d8;hb=e9075a50279076fa8d070e8ee53b7922779a8b66;hp=03aafe304aac1cf05117dd2635ba271fbc898bdf;hpb=c4a92ccf72121cbe2a015711e4253e8d16f28fef;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-intrusive-ptr.h b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-intrusive-ptr.h index 03aafe3..1336745 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-intrusive-ptr.h +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-intrusive-ptr.h @@ -1,8 +1,8 @@ -#ifndef __TEST_INTRUSIVE_PTR_H__ -#define __TEST_INTRUSIVE_PTR_H__ +#ifndef TEST_INTRUSIVE_PTR_H +#define TEST_INTRUSIVE_PTR_H /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,25 +19,25 @@ */ // INTERNAL INCLUDES -#include -#include -#include #include +#include +#include + +#include namespace Dali { - -template +template struct UtcCoverageIntrusivePtr { typedef IntrusivePtr (*Creator)(); - void Check( Creator creator) + void Check(Creator creator) { IntrusivePtr a = creator(); IntrusivePtr b = creator(); - DALI_TEST_CHECK( a.Get() ); + DALI_TEST_CHECK(a.Get()); a.Reset(); @@ -48,13 +48,9 @@ struct UtcCoverageIntrusivePtr DALI_TEST_CHECK(a); a.Reset(); - }; - }; -} // Dali - -#endif - +} // namespace Dali +#endif // TEST_INTRUSIVE_PTR_H