From a8837bfcf45136f178a9884b7c6f6449b3e6ed41 Mon Sep 17 00:00:00 2001 From: David Monahan Date: Thu, 16 Apr 2020 10:01:56 +0100 Subject: IVGCVSW-4513 Remove boost/algorithm/string * * Removed split, classification, trim, string, join, contains * Added StringUtils.hpp to replace the removed Boost String functionality Signed-off-by: David Monahan Change-Id: I8aa938dc3942cb65c512cccb2c069da66aa24668 --- src/armnn/test/UnitTests.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/armnn/test/UnitTests.cpp') diff --git a/src/armnn/test/UnitTests.cpp b/src/armnn/test/UnitTests.cpp index 7d171a8d88..071bff0ed8 100644 --- a/src/armnn/test/UnitTests.cpp +++ b/src/armnn/test/UnitTests.cpp @@ -8,8 +8,6 @@ #include "UnitTests.hpp" #include -#include - struct ConfigureLoggingFixture { ConfigureLoggingFixture() @@ -103,12 +101,12 @@ BOOST_AUTO_TEST_CASE(LoggerTest) } - BOOST_CHECK(boost::contains(ss.str(), "Trace: My trace message; -2")); - BOOST_CHECK(boost::contains(ss.str(), "Debug: My debug message; -1")); - BOOST_CHECK(boost::contains(ss.str(), "Info: My info message; 0")); - BOOST_CHECK(boost::contains(ss.str(), "Warning: My warning message; 1")); - BOOST_CHECK(boost::contains(ss.str(), "Error: My error message; 2")); - BOOST_CHECK(boost::contains(ss.str(), "Fatal: My fatal message; 3")); + BOOST_CHECK(ss.str().find("Trace: My trace message; -2") != std::string::npos); + BOOST_CHECK(ss.str().find("Debug: My debug message; -1") != std::string::npos); + BOOST_CHECK(ss.str().find("Info: My info message; 0") != std::string::npos); + BOOST_CHECK(ss.str().find("Warning: My warning message; 1") != std::string::npos); + BOOST_CHECK(ss.str().find("Error: My error message; 2") != std::string::npos); + BOOST_CHECK(ss.str().find("Fatal: My fatal message; 3") != std::string::npos); } BOOST_AUTO_TEST_SUITE_END() -- cgit v1.2.1