diff options
author | Matteo Martincigh <matteo.martincigh@arm.com> | 2019-10-10 14:30:29 +0100 |
---|---|---|
committer | Matteo Martincigh <matteo.martincigh@arm.com> | 2019-10-10 14:30:56 +0100 |
commit | 8efc500a7465c03877db8bbe443134f2b1bbc1af (patch) | |
tree | fcf4f4a56fa5f20ace8a1e5dfc175cecfd2373a7 /src/profiling/test/ProfilingTests.hpp | |
parent | a3600ba71978225e4d21399fb781d4850f2bb25f (diff) | |
download | armnn-8efc500a7465c03877db8bbe443134f2b1bbc1af.tar.gz |
IVGCVSW-3963 Implement the Request Counter Directory Handler
* Integrated the RequestCounterDirectoryCommandHandler in the
ProfilingService class
* Code refactoring
* Added/Updated unit tests
Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
Change-Id: I60d9f8acf166e29b3dabc921dbdb8149461bd85f
Diffstat (limited to 'src/profiling/test/ProfilingTests.hpp')
-rw-r--r-- | src/profiling/test/ProfilingTests.hpp | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/profiling/test/ProfilingTests.hpp b/src/profiling/test/ProfilingTests.hpp index 3e6cf63efe..e1686162db 100644 --- a/src/profiling/test/ProfilingTests.hpp +++ b/src/profiling/test/ProfilingTests.hpp @@ -40,17 +40,6 @@ public: } }; -struct CoutRedirect -{ -public: - CoutRedirect(std::streambuf* newStreamBuffer) - : m_Old(std::cout.rdbuf(newStreamBuffer)) {} - ~CoutRedirect() { std::cout.rdbuf(m_Old); } - -private: - std::streambuf* m_Old; -}; - struct StreamRedirector { public: @@ -190,6 +179,11 @@ public: return boost::polymorphic_downcast<MockProfilingConnection*>(profilingConnection); } + void ForceTransitionToState(ProfilingState newState) + { + TransitionToState(ProfilingService::Instance(), newState); + } + private: MockProfilingConnectionFactoryPtr m_MockProfilingConnectionFactory; IProfilingConnectionFactory* m_BackupProfilingConnectionFactory; |