diff options
author | Colm Donelan <Colm.Donelan@arm.com> | 2020-09-09 17:56:55 +0100 |
---|---|---|
committer | Jan Eilers <jan.eilers@arm.com> | 2020-10-07 10:30:45 +0100 |
commit | 08d9a1c4c9cbea4e743feefdd310ff038a6c4588 (patch) | |
tree | 934bb78f78c4c87150e1a31461a05aca1fa0946a /test/UtilsTests.cpp | |
parent | 4918446f3490e4edab86a5dc75aba3cdf74ae430 (diff) | |
download | android-nn-driver-08d9a1c4c9cbea4e743feefdd310ff038a6c4588.tar.gz |
IVGCVSW-5298 Remove boost::format from Android-nn-driver
* Replaced with stringstream, string or filesystem::path
Signed-off-by: Colm Donelan <Colm.Donelan@arm.com>
Signed-off-by: Jan Eilers <jan.eilers@arm.com>
Change-Id: I2aa80d88cc0eaff5de4dc6a121370ebf41dcb0a8
Diffstat (limited to 'test/UtilsTests.cpp')
-rw-r--r-- | test/UtilsTests.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/test/UtilsTests.cpp b/test/UtilsTests.cpp index a11c8274..054c0719 100644 --- a/test/UtilsTests.cpp +++ b/test/UtilsTests.cpp @@ -11,9 +11,10 @@ #include <fstream> #include <iomanip> -#include <boost/format.hpp> #include <armnn/INetwork.hpp> +#include <Filesystem.hpp> + BOOST_AUTO_TEST_SUITE(UtilsTests) using namespace android; @@ -42,9 +43,7 @@ public: // NOTE: the export now uses a time stamp to name the file so we // can't predict ahead of time what the file name will be. std::string timestamp = "dummy"; - m_FileName = boost::str(boost::format("%1%/%2%_networkgraph.dot") - % m_RequestInputsAndOutputsDumpDir - % timestamp); + m_FileName = m_RequestInputsAndOutputsDumpDir / (timestamp + "_networkgraph.dot"); } // Teardown: delete the dump file regardless of the outcome of the tests. @@ -96,8 +95,8 @@ public: (std::istreambuf_iterator<char>())); } - std::string m_RequestInputsAndOutputsDumpDir; - std::string m_FileName; + fs::path m_RequestInputsAndOutputsDumpDir; + fs::path m_FileName; private: std::ifstream m_FileStream; |