aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/test/SendCounterPacketTests.cpp
diff options
context:
space:
mode:
authorMatteo Martincigh <matteo.martincigh@arm.com>2019-09-05 12:02:04 +0100
committerJim Flynn Arm <jim.flynn@arm.com>2019-09-17 15:48:37 +0000
commit6db5f20ade72896ebf0f6513a4832b8f2e917aa0 (patch)
tree654e0502a35d6fa11c51be31edf60a6106a15a54 /src/profiling/test/SendCounterPacketTests.cpp
parent10e0786f15bdb60e1d632c9a368fce2737852ae4 (diff)
downloadarmnn-6db5f20ade72896ebf0f6513a4832b8f2e917aa0.tar.gz
IVGCVSW-3691 Rework the CounterDirectory class to take into consideration
the connections between components * Added constructors and connections to the profiling classes * Used hash table to keep track of the profiling objects by UID * Added register methods * Added find/check helper methods * Updated the makefile to include the profiling directory * Added unit tests for the CounterDirectory class * Added ICounterDirectory interface class for read-only use * Added custom macro to locally disable conversion warnings Change-Id: I3f53a68663ee77b8d03ac0ef7dc01e90c6893511 Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
Diffstat (limited to 'src/profiling/test/SendCounterPacketTests.cpp')
-rw-r--r--src/profiling/test/SendCounterPacketTests.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/profiling/test/SendCounterPacketTests.cpp b/src/profiling/test/SendCounterPacketTests.cpp
index 4435ab67a3..c060f168cd 100644
--- a/src/profiling/test/SendCounterPacketTests.cpp
+++ b/src/profiling/test/SendCounterPacketTests.cpp
@@ -3,11 +3,12 @@
// SPDX-License-Identifier: MIT
//
-#include "../ProfilingUtils.hpp"
-#include "../EncodeVersion.hpp"
-#include "../SendCounterPacket.hpp"
#include "SendCounterPacketTests.hpp"
+#include <ProfilingUtils.hpp>
+#include <EncodeVersion.hpp>
+#include <SendCounterPacket.hpp>
+
#include <armnn/Exceptions.hpp>
#include <boost/test/unit_test.hpp>
@@ -30,7 +31,7 @@ BOOST_AUTO_TEST_CASE(MockSendCounterPacketTest)
BOOST_TEST(strcmp(buffer, "SendStreamMetaDataPacket") == 0);
- CounterDirectory counterDirectory(1, "counter_directory", 0, 0, 0);
+ CounterDirectory counterDirectory;
sendCounterPacket.SendCounterDirectoryPacket(counterDirectory);
BOOST_TEST(strcmp(buffer, "SendCounterDirectoryPacket") == 0);