diff options
author | David Monahan <david.monahan@arm.com> | 2020-04-16 10:01:56 +0100 |
---|---|---|
committer | David Monahan <david.monahan@arm.com> | 2020-04-20 12:20:18 +0100 |
commit | a8837bfcf45136f178a9884b7c6f6449b3e6ed41 (patch) | |
tree | 0fa2c4de3646d27f1029d5ebd2cf966c3005522c /src/armnn/test/ProfilerTests.cpp | |
parent | 9b89e0a5e4398672c3b9423b02b3a9257e0ea95f (diff) | |
download | armnn-a8837bfcf45136f178a9884b7c6f6449b3e6ed41.tar.gz |
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 <david.monahan@arm.com>
Change-Id: I8aa938dc3942cb65c512cccb2c069da66aa24668
Diffstat (limited to 'src/armnn/test/ProfilerTests.cpp')
-rw-r--r-- | src/armnn/test/ProfilerTests.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/armnn/test/ProfilerTests.cpp b/src/armnn/test/ProfilerTests.cpp index 40e9f470ad..7bd258e430 100644 --- a/src/armnn/test/ProfilerTests.cpp +++ b/src/armnn/test/ProfilerTests.cpp @@ -9,7 +9,6 @@ #include <boost/test/unit_test.hpp> #include <boost/test/tools/output_test_stream.hpp> -#include <boost/algorithm/string.hpp> #include <memory> #include <thread> @@ -231,21 +230,21 @@ BOOST_AUTO_TEST_CASE(WriteEventResults) BOOST_TEST(!output.is_empty(false)); // output should contain event name 'test' - BOOST_CHECK(boost::contains(output.str(), "test")); + BOOST_CHECK(output.str().find("test") != std::string::npos); // output should contain headers - BOOST_CHECK(boost::contains(output.str(), "Event Sequence - Name")); - BOOST_CHECK(boost::contains(output.str(), "Event Stats - Name")); - BOOST_CHECK(boost::contains(output.str(), "Total")); - BOOST_CHECK(boost::contains(output.str(), "Device")); + BOOST_CHECK(output.str().find("Event Sequence - Name") != std::string::npos); + BOOST_CHECK(output.str().find("Event Stats - Name") != std::string::npos); + BOOST_CHECK(output.str().find("Total") != std::string::npos); + BOOST_CHECK(output.str().find("Device") != std::string::npos); // output should contain compute device 'CpuAcc' - BOOST_CHECK(boost::contains(output.str(), "CpuAcc")); + BOOST_CHECK(output.str().find("CpuAcc") != std::string::npos); // output should not contain un-readable numbers - BOOST_CHECK(!(boost::contains(output.str(), "e+"))); + BOOST_CHECK(output.str().find("e+") == std::string::npos); // output should not contain un-readable numbers - BOOST_CHECK(!(boost::contains(output.str(), "+"))); + BOOST_CHECK(output.str().find("+") == std::string::npos); // output should not contain zero value - BOOST_CHECK(!(boost::contains(output.str(), " 0 "))); + BOOST_CHECK(output.str().find(" 0 ") == std::string::npos); } // Disable profiling here to not print out anything on stdout. |