From 80c6b146046252af153af27025a28fb59d33c5e6 Mon Sep 17 00:00:00 2001 From: Matthew Sloyan Date: Tue, 8 Sep 2020 12:00:32 +0100 Subject: IVGCVSW-5299 Remove some boost::numeric_cast from armnn/tests * Replaced with armnn/utility/NumericCast.hpp * Removed combinations without float implementation in NumericCast.hpp Signed-off-by: Matthew Sloyan Change-Id: Ia4ec605f063cdb0071fff302ef48c610f9f9505e --- tests/profiling/gatordmock/tests/GatordMockTests.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'tests/profiling/gatordmock') diff --git a/tests/profiling/gatordmock/tests/GatordMockTests.cpp b/tests/profiling/gatordmock/tests/GatordMockTests.cpp index 303a36a71a..4fd884cec4 100644 --- a/tests/profiling/gatordmock/tests/GatordMockTests.cpp +++ b/tests/profiling/gatordmock/tests/GatordMockTests.cpp @@ -11,6 +11,8 @@ #include #include +#include + #include #include @@ -18,11 +20,9 @@ #include -#include #include #include - BOOST_AUTO_TEST_SUITE(GatordMockTests) using namespace armnn; @@ -31,8 +31,6 @@ using namespace std::chrono_literals; BOOST_AUTO_TEST_CASE(CounterCaptureHandlingTest) { - using boost::numeric_cast; - arm::pipe::PacketVersionResolver packetVersionResolver; // Data with timestamp, counter idx & counter values @@ -61,9 +59,9 @@ BOOST_AUTO_TEST_CASE(CounterCaptureHandlingTest) std::unique_ptr uniqueData2 = std::make_unique(dataLength); unsigned char* data2 = reinterpret_cast(uniqueData2.get()); - uint32_t sizeOfUint64 = numeric_cast(sizeof(uint64_t)); - uint32_t sizeOfUint32 = numeric_cast(sizeof(uint32_t)); - uint32_t sizeOfUint16 = numeric_cast(sizeof(uint16_t)); + uint32_t sizeOfUint64 = armnn::numeric_cast(sizeof(uint64_t)); + uint32_t sizeOfUint32 = armnn::numeric_cast(sizeof(uint32_t)); + uint32_t sizeOfUint16 = armnn::numeric_cast(sizeof(uint16_t)); // Offset index to point to mem address uint32_t offset = 0; -- cgit v1.2.1