diff options
author | Colm Donelan <Colm.Donelan@arm.com> | 2019-10-18 16:49:28 +0100 |
---|---|---|
committer | Colm Donelan <Colm.Donelan@arm.com> | 2019-10-18 16:53:36 +0100 |
commit | 5884708e650a80e355398532bc320bbabdbb53f4 (patch) | |
tree | 4c752153a8eefbe5046bcd603be113b3e7868673 /tests/profiling | |
parent | bccc3450179402ea0cf608171833dbc4f297056f (diff) | |
download | armnn-5884708e650a80e355398532bc320bbabdbb53f4.tar.gz |
IVGCVSW-3721 Add support for startup sequence (Mock Gatord service).
Fixing logic error in PeriodicCounterCaptureCommandHandler. Default
quiet operation should be false and the unit tests should set it to
true.
Signed-off-by: Colm Donelan <Colm.Donelan@arm.com>
Change-Id: Icabf30819985811e42168a98909b44a6c5f5d4df
Diffstat (limited to 'tests/profiling')
-rw-r--r-- | tests/profiling/gatordmock/PeriodicCounterCaptureCommandHandler.hpp | 2 | ||||
-rw-r--r-- | tests/profiling/gatordmock/tests/GatordMockTests.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/profiling/gatordmock/PeriodicCounterCaptureCommandHandler.hpp b/tests/profiling/gatordmock/PeriodicCounterCaptureCommandHandler.hpp index 05539a4073..4135a2fb06 100644 --- a/tests/profiling/gatordmock/PeriodicCounterCaptureCommandHandler.hpp +++ b/tests/profiling/gatordmock/PeriodicCounterCaptureCommandHandler.hpp @@ -37,7 +37,7 @@ public: PeriodicCounterCaptureCommandHandler(uint32_t familyId, uint32_t packetId, uint32_t version, - bool quietOperation = true) + bool quietOperation = false) : CommandHandlerFunctor(familyId, packetId, version) , m_QuietOperation(quietOperation) {} diff --git a/tests/profiling/gatordmock/tests/GatordMockTests.cpp b/tests/profiling/gatordmock/tests/GatordMockTests.cpp index eb4b1783a4..f5e60f83b2 100644 --- a/tests/profiling/gatordmock/tests/GatordMockTests.cpp +++ b/tests/profiling/gatordmock/tests/GatordMockTests.cpp @@ -103,7 +103,7 @@ BOOST_AUTO_TEST_CASE(CounterCaptureHandlingTest) profiling::Packet packet2(headerWord1, dataLength, uniqueData2); uint32_t version = 1; - gatordmock::PeriodicCounterCaptureCommandHandler commandHandler(0, 4, version, false); + gatordmock::PeriodicCounterCaptureCommandHandler commandHandler(0, 4, version, true); // Simulate two separate packets coming in to calculate period commandHandler(packet1); @@ -129,7 +129,7 @@ BOOST_AUTO_TEST_CASE(GatorDMockEndToEnd) profiling::CommandHandlerRegistry registry; // Update with derived functors - gatordmock::PeriodicCounterCaptureCommandHandler counterCaptureCommandHandler(0, 4, version, false); + gatordmock::PeriodicCounterCaptureCommandHandler counterCaptureCommandHandler(0, 4, version, true); // Register different derived functors registry.RegisterFunctor(&counterCaptureCommandHandler); |