aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/test/SendCounterPacketTests.cpp
diff options
context:
space:
mode:
authorCathal Corbett <cathal.corbett@arm.com>2022-02-25 15:33:28 +0000
committerCathal Corbett <cathal.corbett@arm.com>2022-03-01 11:44:14 +0000
commit5aa9fd7ac6bf8dad576fa4a0a32aa3dae98d11ab (patch)
tree23a3a0d5ca5143924277f34c98d36cf7b99430a7 /src/profiling/test/SendCounterPacketTests.cpp
parent1fc448ad2455ad31b96a3891f847125a3295d75a (diff)
downloadarmnn-5aa9fd7ac6bf8dad576fa4a0a32aa3dae98d11ab.tar.gz
IVGCVSW-6704 Change the namespace from armnn::profiling to arm::pipe
* Updated ABI version to 29 due to being the first ABI break in 22.05 !android-nn-driver:7226 Signed-off-by: Cathal Corbett <cathal.corbett@arm.com> Change-Id: I9c50007dcd5b5e792757e7bd1213606df5ffec36
Diffstat (limited to 'src/profiling/test/SendCounterPacketTests.cpp')
-rw-r--r--src/profiling/test/SendCounterPacketTests.cpp90
1 files changed, 45 insertions, 45 deletions
diff --git a/src/profiling/test/SendCounterPacketTests.cpp b/src/profiling/test/SendCounterPacketTests.cpp
index 675d083644..1380b42d37 100644
--- a/src/profiling/test/SendCounterPacketTests.cpp
+++ b/src/profiling/test/SendCounterPacketTests.cpp
@@ -26,7 +26,7 @@
#include <chrono>
-using namespace armnn::profiling;
+using namespace arm::pipe;
namespace
{
@@ -294,7 +294,7 @@ TEST_CASE("SendStreamMetaDataPacketTest")
// Error no space left in buffer
MockBufferManager mockBuffer1(10);
SendCounterPacket sendPacket1(mockBuffer1);
- CHECK_THROWS_AS(sendPacket1.SendStreamMetaDataPacket(), armnn::profiling::BufferExhaustion);
+ CHECK_THROWS_AS(sendPacket1.SendStreamMetaDataPacket(), BufferExhaustion);
// Full metadata packet
@@ -1180,7 +1180,7 @@ TEST_CASE("SendCounterDirectoryPacketTest1")
MockBufferManager mockBuffer(10);
SendCounterPacket sendCounterPacket(mockBuffer);
CHECK_THROWS_AS(sendCounterPacket.SendCounterDirectoryPacket(counterDirectory),
- armnn::profiling::BufferExhaustion);
+ BufferExhaustion);
}
TEST_CASE("SendCounterDirectoryPacketTest2")
@@ -1228,49 +1228,49 @@ TEST_CASE("SendCounterDirectoryPacketTest2")
// Register a counter associated to "category1"
const Counter* counter1 = nullptr;
CHECK_NOTHROW(counter1 = counterDirectory.RegisterCounter(armnn::profiling::BACKEND_ID,
- 0,
- category1Name,
- 0,
- 1,
- 123.45f,
- "counter1",
- "counter1description",
- std::string("counter1units"),
- numberOfCores));
+ 0,
+ category1Name,
+ 0,
+ 1,
+ 123.45f,
+ "counter1",
+ "counter1description",
+ std::string("counter1units"),
+ numberOfCores));
CHECK(counterDirectory.GetCounterCount() == 4);
CHECK(counter1);
// Register a counter associated to "category1"
const Counter* counter2 = nullptr;
CHECK_NOTHROW(counter2 = counterDirectory.RegisterCounter(armnn::profiling::BACKEND_ID,
- 4,
- category1Name,
- 1,
- 0,
- 330.1245656765f,
- "counter2",
- "counter2description",
- std::string("counter2units"),
- armnn::EmptyOptional(),
- device2->m_Uid,
- 0));
+ 4,
+ category1Name,
+ 1,
+ 0,
+ 330.1245656765f,
+ "counter2",
+ "counter2description",
+ std::string("counter2units"),
+ armnn::EmptyOptional(),
+ device2->m_Uid,
+ 0));
CHECK(counterDirectory.GetCounterCount() == 5);
CHECK(counter2);
// Register a counter associated to "category2"
const Counter* counter3 = nullptr;
CHECK_NOTHROW(counter3 = counterDirectory.RegisterCounter(armnn::profiling::BACKEND_ID,
- 5,
- category2Name,
- 1,
- 1,
- 0.0000045399f,
- "counter3",
- "counter3description",
- armnn::EmptyOptional(),
- numberOfCores,
- device2->m_Uid,
- counterSet1->m_Uid));
+ 5,
+ category2Name,
+ 1,
+ 1,
+ 0.0000045399f,
+ "counter3",
+ "counter3description",
+ armnn::EmptyOptional(),
+ numberOfCores,
+ device2->m_Uid,
+ counterSet1->m_Uid));
CHECK(counterDirectory.GetCounterCount() == 9);
CHECK(counter3);
@@ -1773,17 +1773,17 @@ TEST_CASE("SendCounterDirectoryPacketTest7")
// Register an invalid counter associated to a valid category
const Counter* counter = nullptr;
CHECK_NOTHROW(counter = counterDirectory.RegisterCounter(armnn::profiling::BACKEND_ID,
- 0,
- categoryName,
- 0,
- 1,
- 123.45f,
- "counter",
- "counter description",
- std::string("invalid counter units"),
- 5,
- device->m_Uid,
- counterSet->m_Uid));
+ 0,
+ categoryName,
+ 0,
+ 1,
+ 123.45f,
+ "counter",
+ "counter description",
+ std::string("invalid counter units"),
+ 5,
+ device->m_Uid,
+ counterSet->m_Uid));
CHECK(counterDirectory.GetCounterCount() == 5);
CHECK(counter);