X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=documentation%2F_test_case_8h_source.xhtml;h=2eced082b6326c9537c6638853e43372b480880c;hb=c3f34a43ffb5d52ee4a4e9f7b1bf4c6c002aeebb;hp=8943e34494d1a761d25ea5db11de2399858b059f;hpb=bf8b01dfbfdca124673ade33c5eac8f3748d7abd;p=platform%2Fupstream%2Farmcl.git diff --git a/documentation/_test_case_8h_source.xhtml b/documentation/_test_case_8h_source.xhtml index 8943e34..2eced08 100644 --- a/documentation/_test_case_8h_source.xhtml +++ b/documentation/_test_case_8h_source.xhtml @@ -4,7 +4,7 @@ - + Compute Library: tests/framework/TestCase.h Source File @@ -12,22 +12,24 @@ + + + @@ -38,7 +40,7 @@
Compute Library -  17.10 +  18.03
@@ -46,7 +48,7 @@ - + @@ -101,7 +103,7 @@ $(document).ready(function(){initNavTree('_test_case_8h_source.xhtml','');}); onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> - All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages +
@@ -115,87 +117,24 @@ $(document).ready(function(){initNavTree('_test_case_8h_source.xhtml','');});
TestCase.h
-Go to the documentation of this file.
1 /*
-
2  * Copyright (c) 2017 ARM Limited.
-
3  *
-
4  * SPDX-License-Identifier: MIT
-
5  *
-
6  * Permission is hereby granted, free of charge, to any person obtaining a copy
-
7  * of this software and associated documentation files (the "Software"), to
-
8  * deal in the Software without restriction, including without limitation the
-
9  * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-
10  * sell copies of the Software, and to permit persons to whom the Software is
-
11  * furnished to do so, subject to the following conditions:
-
12  *
-
13  * The above copyright notice and this permission notice shall be included in all
-
14  * copies or substantial portions of the Software.
-
15  *
-
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-
21  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-
22  * SOFTWARE.
-
23  */
-
24 #ifndef ARM_COMPUTE_TEST_TESTCASE
-
25 #define ARM_COMPUTE_TEST_TESTCASE
-
26 
-
27 #include <string>
-
28 #include <utility>
-
29 
-
30 namespace arm_compute
-
31 {
-
32 namespace test
-
33 {
-
34 namespace framework
-
35 {
-
40 class TestCase
-
41 {
-
42 public:
-
43  virtual void do_setup() {};
-
44  virtual void do_run() {};
-
45  virtual void do_teardown() {};
-
46 
-
48  virtual ~TestCase() = default;
-
49 
-
50 protected:
-
51  TestCase() = default;
-
52 
-
53  friend class TestCaseFactory;
-
54 };
-
55 
-
56 template <typename T>
-
57 class DataTestCase : public TestCase
-
58 {
-
59 protected:
-
60  explicit DataTestCase(T data)
-
61  : _data{ std::move(data) }
-
62  {
-
63  }
-
64 
-
65  T _data;
-
66 };
-
67 } // namespace framework
-
68 } // namespace test
-
69 } // namespace arm_compute
-
70 #endif /* ARM_COMPUTE_TEST_TESTCASE */
+Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017 ARM Limited.
3  *
4  * SPDX-License-Identifier: MIT
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining a copy
7  * of this software and associated documentation files (the "Software"), to
8  * deal in the Software without restriction, including without limitation the
9  * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10  * sell copies of the Software, and to permit persons to whom the Software is
11  * furnished to do so, subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be included in all
14  * copies or substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22  * SOFTWARE.
23  */
24 #ifndef ARM_COMPUTE_TEST_TESTCASE
25 #define ARM_COMPUTE_TEST_TESTCASE
26 
27 #include <string>
28 #include <utility>
29 
30 namespace arm_compute
31 {
32 namespace test
33 {
34 namespace framework
35 {
40 class TestCase
41 {
42 public:
43  virtual void do_setup() {};
44  virtual void do_run() {};
45  virtual void do_sync() {};
46  virtual void do_teardown() {};
47 
49  virtual ~TestCase() = default;
50 
51 protected:
52  TestCase() = default;
53 
54  friend class TestCaseFactory;
55 };
56 
57 template <typename T>
58 class DataTestCase : public TestCase
59 {
60 protected:
61  explicit DataTestCase(T data)
62  : _data{ std::move(data) }
63  {
64  }
65 
66  T _data;
67 };
68 } // namespace framework
69 } // namespace test
70 } // namespace arm_compute
71 #endif /* ARM_COMPUTE_TEST_TESTCASE */
- + +
This file contains all available output stages for GEMMLowp on OpenCL.
Abstract factory class to create test cases.
Abstract test case class.
Definition: TestCase.h:40
virtual ~TestCase()=default
Default destructor.
- +