diff options
author | Matteo Martincigh <matteo.martincigh@arm.com> | 2019-10-10 13:29:02 +0100 |
---|---|---|
committer | Matteo Martincigh <matteo.martincigh@arm.com> | 2019-10-10 18:22:41 +0100 |
commit | 67ef2a52c3cdcc37538d77711bbcea2f0e5655e5 (patch) | |
tree | 8d25bcb2c10cba8945ae4638695d879e88b9d259 /src/profiling/test/ProfilingConnectionDumpToFileDecoratorTests.cpp | |
parent | 8efc500a7465c03877db8bbe443134f2b1bbc1af (diff) | |
download | armnn-67ef2a52c3cdcc37538d77711bbcea2f0e5655e5.tar.gz |
IVGCVSW-3964 Change the type held by the Packet class to unsigned char
* Updated the Packet class
* Updated the pertinent code accordingly
Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
Change-Id: I73eab5b1ead67a610cd17fd33f8a74f764ad8cc4
Diffstat (limited to 'src/profiling/test/ProfilingConnectionDumpToFileDecoratorTests.cpp')
-rw-r--r-- | src/profiling/test/ProfilingConnectionDumpToFileDecoratorTests.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/profiling/test/ProfilingConnectionDumpToFileDecoratorTests.cpp b/src/profiling/test/ProfilingConnectionDumpToFileDecoratorTests.cpp index fac93c5ddf..a7acdd63cc 100644 --- a/src/profiling/test/ProfilingConnectionDumpToFileDecoratorTests.cpp +++ b/src/profiling/test/ProfilingConnectionDumpToFileDecoratorTests.cpp @@ -32,7 +32,7 @@ class DummyProfilingConnection : public IProfilingConnection public: DummyProfilingConnection() : m_Open(true) - , m_PacketData(std::make_unique<char[]>(g_DataLength)) + , m_PacketData(std::make_unique<unsigned char[]>(g_DataLength)) { // populate packet data and construct packet std::memcpy(m_PacketData.get(), g_DataPtr, g_DataLength); @@ -65,8 +65,8 @@ public: } private: - bool m_Open; - std::unique_ptr<char[]> m_PacketData; + bool m_Open; + std::unique_ptr<unsigned char[]> m_PacketData; std::unique_ptr<Packet> m_Packet; }; @@ -128,7 +128,7 @@ BOOST_AUTO_TEST_CASE(DumpIncomingValidFile) decorator.Close(); std::vector<char> data = ReadDumpFile(settings.m_IncomingDumpFileName); - const char* packetData = packet->GetData(); + const char* packetData = reinterpret_cast<const char*>(packet->GetData()); // check if the data read back from the dump file matches the original constexpr unsigned int bytesToSkip = 2u * sizeof(uint32_t); // skip header and packet length |