aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorColm Donelan <Colm.Donelan@arm.com>2019-10-18 16:49:28 +0100
committerColm Donelan <Colm.Donelan@arm.com>2019-10-18 16:53:36 +0100
commit5884708e650a80e355398532bc320bbabdbb53f4 (patch)
tree4c752153a8eefbe5046bcd603be113b3e7868673 /tests
parentbccc3450179402ea0cf608171833dbc4f297056f (diff)
downloadarmnn-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')
-rw-r--r--tests/profiling/gatordmock/PeriodicCounterCaptureCommandHandler.hpp2
-rw-r--r--tests/profiling/gatordmock/tests/GatordMockTests.cpp4
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);