Make PrintResultMeanAndError receive two doubles instead of a string.
Bug: webrtc:8566
Change-Id: Ida925b030bff24275d34c0e888ee362e94c46b21
Reviewed-on: https://webrtc-review.googlesource.com/25540
Reviewed-by: Patrik Höglund <phoglund@webrtc.org>
Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org>
Reviewed-by: Alex Loiko <aleloi@webrtc.org>
Reviewed-by: Björn Terelius <terelius@webrtc.org>
Commit-Queue: Edward Lemur <ehmaldonado@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#20866}
diff --git a/test/testsupport/perf_test.cc b/test/testsupport/perf_test.cc
index e8608cd..bb4491a 100644
--- a/test/testsupport/perf_test.cc
+++ b/test/testsupport/perf_test.cc
@@ -75,11 +75,14 @@
void PrintResultMeanAndError(const std::string& measurement,
const std::string& modifier,
const std::string& trace,
- const std::string& mean_and_error,
+ const double mean,
+ const double error,
const std::string& units,
bool important) {
- PrintResultsImpl(measurement, modifier, trace, mean_and_error,
- "{", "}", units, important);
+ std::ostringstream value_stream;
+ value_stream << '{' << mean << ',' << error << '}';
+ PrintResultsImpl(measurement, modifier, trace, value_stream.str(), "", "",
+ units, important);
}
void PrintResultList(const std::string& measurement,
diff --git a/test/testsupport/perf_test.h b/test/testsupport/perf_test.h
index 95bbf65..02dd1f3 100644
--- a/test/testsupport/perf_test.h
+++ b/test/testsupport/perf_test.h
@@ -47,7 +47,8 @@
void PrintResultMeanAndError(const std::string& measurement,
const std::string& modifier,
const std::string& trace,
- const std::string& mean_and_error,
+ const double mean,
+ const double error,
const std::string& units,
bool important);