ArmNN
 20.05
TestProfilingConnectionArmnnError Class Reference

#include <ProfilingTests.hpp>

Inheritance diagram for TestProfilingConnectionArmnnError:
TestProfilingConnectionBase IProfilingConnection

Public Member Functions

 TestProfilingConnectionArmnnError ()
 
Packet ReadPacket (uint32_t timeout) override
 
int ReadCalledCount ()
 
- Public Member Functions inherited from TestProfilingConnectionBase
 TestProfilingConnectionBase ()=default
 
 ~TestProfilingConnectionBase ()=default
 
bool IsOpen () const override
 
void Close () override
 
bool WritePacket (const unsigned char *buffer, uint32_t length) override
 
- Public Member Functions inherited from IProfilingConnection
virtual ~IProfilingConnection ()
 

Additional Inherited Members

- Public Attributes inherited from TestProfilingConnectionBase
bool m_FirstCall = true
 

Detailed Description

Definition at line 133 of file ProfilingTests.hpp.

Constructor & Destructor Documentation

◆ TestProfilingConnectionArmnnError()

Definition at line 136 of file ProfilingTests.hpp.

137  : m_ReadRequests(0)
138  {}

Member Function Documentation

◆ ReadCalledCount()

int ReadCalledCount ( )
inline

Definition at line 147 of file ProfilingTests.hpp.

148  {
149  return m_ReadRequests.load();
150  }

◆ ReadPacket()

Packet ReadPacket ( uint32_t  timeout)
inlineoverridevirtual

Reimplemented from TestProfilingConnectionBase.

Definition at line 140 of file ProfilingTests.hpp.

References armnn::IgnoreUnused().

141  {
142  IgnoreUnused(timeout);
143  ++m_ReadRequests;
144  throw armnn::Exception("Simulate a non-timeout error");
145  }
void IgnoreUnused(Ts &&...)
Base class for all ArmNN exceptions so that users can filter to just those.
Definition: Exceptions.hpp:46

The documentation for this class was generated from the following file: