Make PrintResultList receive a vector of doubles instead of a string.
Also, add more tests to perf_test_unittest. Bug: webrtc:8566 Change-Id: I8864db7172fa207803d310c4a5fee4bf820a56bd Reviewed-on: https://webrtc-review.googlesource.com/25823 Reviewed-by: Fredrik Solenberg <solenberg@webrtc.org> Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org> Reviewed-by: Patrik Höglund <phoglund@webrtc.org> Commit-Queue: Edward Lemur <ehmaldonado@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20906}
This commit is contained in:
@ -23,7 +23,13 @@ TEST(PerfTest, AppendResult) {
|
||||
PrintResult("measurement", "modifier", "trace", 42, "units", false);
|
||||
|
||||
expected += "*RESULT foobar: baz= 7 widgets\n";
|
||||
PrintResult( "foo", "bar", "baz", 7, "widgets", true);
|
||||
PrintResult("foo", "bar", "baz", 7, "widgets", true);
|
||||
|
||||
expected += "RESULT foobar: baz= {1,2} lemurs\n";
|
||||
PrintResultMeanAndError("foo", "bar", "baz", 1, 2, "lemurs", false);
|
||||
|
||||
expected += "RESULT foobar: baz= [1,2,3] units\n";
|
||||
PrintResultList("foo", "bar", "baz", {1, 2, 3}, "units", false);
|
||||
|
||||
std::string output = testing::internal::GetCapturedStdout();
|
||||
EXPECT_EQ(expected, output);
|
||||
|
||||
Reference in New Issue
Block a user