ArmNN
 22.02
TestProfilingConnectionArmnnError Class Reference

#include <ProfilingTests.hpp>

Inheritance diagram for TestProfilingConnectionArmnnError:
TestProfilingConnectionBase IProfilingConnection

Public Member Functions

 TestProfilingConnectionArmnnError ()
 
arm::pipe::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 135 of file ProfilingTests.hpp.

Constructor & Destructor Documentation

◆ TestProfilingConnectionArmnnError()

Definition at line 138 of file ProfilingTests.hpp.

139  : m_ReadRequests(0)
140  {}

Member Function Documentation

◆ ReadCalledCount()

int ReadCalledCount ( )
inline

Definition at line 149 of file ProfilingTests.hpp.

150  {
151  return m_ReadRequests.load();
152  }

◆ ReadPacket()

arm::pipe::Packet ReadPacket ( uint32_t  timeout)
inlineoverridevirtual

Reimplemented from TestProfilingConnectionBase.

Definition at line 142 of file ProfilingTests.hpp.

References armnn::IgnoreUnused().

143  {
144  IgnoreUnused(timeout);
145  ++m_ReadRequests;
146  throw armnn::Exception("Simulate a non-timeout error");
147  }
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: