aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/test/FileOnlyProfilingDecoratorTests.cpp
diff options
context:
space:
mode:
authorRob Hughes <robert.hughes@arm.com>2019-11-13 11:53:48 +0000
committerRob Hughes <robert.hughes@arm.com>2019-11-14 10:47:03 +0000
commit270233fc7c57486026f381cd8ba6a71b84d7be2d (patch)
tree6e75bee1a1d6042e104e8ea780cf524122c3f990 /src/profiling/test/FileOnlyProfilingDecoratorTests.cpp
parentb5b3b35288578154525b38ea708ca564530f0c5d (diff)
downloadarmnn-270233fc7c57486026f381cd8ba6a71b84d7be2d.tar.gz
Fix a few compile errors:
* Replace use of non-standard integral types (e.g. u_char) * Convert boost::filesystem::paths to std::strings using the .string() method rather than .c_str(), because on Windows .c_str() returns a wide character string, which is not convertible to a std::string. Change-Id: Ia86b0653697033bb1afa01e64b5b2103dd042ffd Signed-off-by: Robert Hughes <robert.hughes@arm.com>
Diffstat (limited to 'src/profiling/test/FileOnlyProfilingDecoratorTests.cpp')
-rw-r--r--src/profiling/test/FileOnlyProfilingDecoratorTests.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/profiling/test/FileOnlyProfilingDecoratorTests.cpp b/src/profiling/test/FileOnlyProfilingDecoratorTests.cpp
index 9bf177c096..5524ed4fbf 100644
--- a/src/profiling/test/FileOnlyProfilingDecoratorTests.cpp
+++ b/src/profiling/test/FileOnlyProfilingDecoratorTests.cpp
@@ -35,7 +35,7 @@ BOOST_AUTO_TEST_CASE(DumpOutgoingValidFileEndToEnd)
options.m_EnableProfiling = true;
options.m_FileOnly = true;
options.m_IncomingCaptureFile = "";
- options.m_OutgoingCaptureFile = tempPath.c_str();
+ options.m_OutgoingCaptureFile = tempPath.string();
options.m_CapturePeriod = 100;
// Enable the profiling service
@@ -45,9 +45,9 @@ BOOST_AUTO_TEST_CASE(DumpOutgoingValidFileEndToEnd)
profilingService.Update();
profilingService.Update();
- u_int32_t timeout = 2000;
- u_int32_t sleepTime = 50;
- u_int32_t timeSlept = 0;
+ uint32_t timeout = 2000;
+ uint32_t sleepTime = 50;
+ uint32_t timeSlept = 0;
// Give the profiling service sending thread time start executing and send the stream metadata.
while (profilingService.GetCurrentState() != ProfilingState::WaitingForAck)