From 96becb7e4f5f510344c3850278a706d63a564fc4 Mon Sep 17 00:00:00 2001 From: Jan Eilers Date: Tue, 16 Jun 2020 12:41:49 +0100 Subject: Revert "IVGCVSW-3726 Upload ArmNN Doxygen files" This reverts commit de36e4a9c299028e792c3a5bd99ad0816d806077. Signed-off-by: Jan Eilers Change-Id: Idbf20c12ea07583ca552d7cc7fb517fbadc73fff --- Documentation/_backend_registry_tests_8cpp.html | 202 ------------------------ 1 file changed, 202 deletions(-) delete mode 100644 Documentation/_backend_registry_tests_8cpp.html (limited to 'Documentation/_backend_registry_tests_8cpp.html') diff --git a/Documentation/_backend_registry_tests_8cpp.html b/Documentation/_backend_registry_tests_8cpp.html deleted file mode 100644 index 1bc74b9e3f..0000000000 --- a/Documentation/_backend_registry_tests_8cpp.html +++ /dev/null @@ -1,202 +0,0 @@ - - - - - - - -ArmNN: src/backends/backendsCommon/test/BackendRegistryTests.cpp File Reference - - - - - - - - - - - - - - -
-
- - - - - - -
-
ArmNN -  NotReleased -
-
-
- - - - - - - -
-
- -
-
-
- -
- -
-
- - -
- -
- -
- -
-
BackendRegistryTests.cpp File Reference
-
-
-
#include <armnn/Types.hpp>
-#include <armnn/BackendRegistry.hpp>
-#include <armnn/backends/IBackendInternal.hpp>
-#include <boost/test/unit_test.hpp>
-
-

Go to the source code of this file.

- - - - - - - - -

-Functions

 BOOST_AUTO_TEST_CASE (SwapRegistry)
 
 BOOST_AUTO_TEST_CASE (TestRegistryHelper)
 
 BOOST_AUTO_TEST_CASE (TestDirectCallToRegistry)
 
-

Function Documentation

- -

◆ BOOST_AUTO_TEST_CASE() [1/3]

- -
-
- - - - - - - - -
BOOST_AUTO_TEST_CASE (SwapRegistry )
-
- -

Definition at line 37 of file BackendRegistryTests.cpp.

- -

References armnn::BackendRegistryInstance(), helper, and BackendRegistry::Size().

-
38 {
39  using namespace armnn;
40  auto nFactories = BackendRegistryInstance().Size();
41  {
42  SwapRegistryStorage helper;
43  BOOST_TEST(BackendRegistryInstance().Size() == 0);
44  }
45  BOOST_TEST(BackendRegistryInstance().Size() == nFactories);
46 }
BackendRegistry & BackendRegistryInstance()
- -
FileOnlyHelperService helper
- -
-
-
- -

◆ BOOST_AUTO_TEST_CASE() [2/3]

- -
-
- - - - - - - - -
BOOST_AUTO_TEST_CASE (TestRegistryHelper )
-
- -

Definition at line 48 of file BackendRegistryTests.cpp.

- -

References armnn::BackendRegistryInstance(), BackendRegistry::Deregister(), BackendRegistry::GetFactory(), and helper.

-
49 {
50  using namespace armnn;
51  SwapRegistryStorage helper;
52 
53  bool called = false;
54 
57  "HelloWorld",
58  [&called]()
59  {
60  called = true;
61  return armnn::IBackendInternalUniquePtr(nullptr);
62  }
63  );
64 
65  // sanity check: the factory has not been called yet
66  BOOST_TEST(called == false);
67 
68  auto factoryFunction = BackendRegistryInstance().GetFactory("HelloWorld");
69 
70  // sanity check: the factory still not called
71  BOOST_TEST(called == false);
72 
73  factoryFunction();
74  BOOST_TEST(called == true);
75  BackendRegistryInstance().Deregister("HelloWorld");
76 }
std::unique_ptr< IBackendInternal > IBackendInternalUniquePtr
-
FactoryFunction GetFactory(const BackendId &id) const
-
BackendRegistry & BackendRegistryInstance()
- -
FileOnlyHelperService helper
-
void Deregister(const BackendId &id)
- -
-
-
- -

◆ BOOST_AUTO_TEST_CASE() [3/3]

- -
-
- - - - - - - - -
BOOST_AUTO_TEST_CASE (TestDirectCallToRegistry )
-
- -

Definition at line 78 of file BackendRegistryTests.cpp.

- -

References armnn::BackendRegistryInstance(), BOOST_AUTO_TEST_SUITE_END(), BackendRegistry::Deregister(), BackendRegistry::GetFactory(), helper, and BackendRegistry::Register().

-
79 {
80  using namespace armnn;
81  SwapRegistryStorage helper;
82 
83  bool called = false;
85  "HelloWorld",
86  [&called]()
87  {
88  called = true;
89  return armnn::IBackendInternalUniquePtr(nullptr);
90  }
91  );
92 
93  // sanity check: the factory has not been called yet
94  BOOST_TEST(called == false);
95 
96  auto factoryFunction = BackendRegistryInstance().GetFactory("HelloWorld");
97 
98  // sanity check: the factory still not called
99  BOOST_TEST(called == false);
100 
101  factoryFunction();
102  BOOST_TEST(called == true);
103  BackendRegistryInstance().Deregister("HelloWorld");
104 }
std::unique_ptr< IBackendInternal > IBackendInternalUniquePtr
-
FactoryFunction GetFactory(const BackendId &id) const
-
BackendRegistry & BackendRegistryInstance()
- -
FileOnlyHelperService helper
-
void Deregister(const BackendId &id)
-
void Register(const BackendId &id, FactoryFunction factory)
-
-
-
-
-
- - - - -- cgit v1.2.1