| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/media/webrtc_browsertest_perf.h" | 5 #include "chrome/browser/media/webrtc_browsertest_perf.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
| 8 #include "base/values.h" | 10 #include "base/values.h" |
| 9 #include "chrome/test/base/in_process_browser_test.h" | 11 #include "chrome/test/base/in_process_browser_test.h" |
| 10 #include "testing/perf/perf_test.h" | 12 #include "testing/perf/perf_test.h" |
| 11 | 13 |
| 12 static std::string Statistic(const std::string& statistic, | 14 static std::string Statistic(const std::string& statistic, |
| 13 const std::string& bucket) { | 15 const std::string& bucket) { |
| 14 // A ssrc stats key will be on the form stats.<bucket>-<key>.values. | 16 // A ssrc stats key will be on the form stats.<bucket>-<key>.values. |
| 15 // This will give a json "path" which will dig into the time series for the | 17 // This will give a json "path" which will dig into the time series for the |
| 16 // specified statistic. Buckets can be for instance ssrc_1212344, bweforvideo, | 18 // specified statistic. Buckets can be for instance ssrc_1212344, bweforvideo, |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 MaybePrintResultsForAudioSend(ssrc, pc_dict, modifier) || | 251 MaybePrintResultsForAudioSend(ssrc, pc_dict, modifier) || |
| 250 MaybePrintResultsForVideoReceive(ssrc, pc_dict, modifier) || | 252 MaybePrintResultsForVideoReceive(ssrc, pc_dict, modifier) || |
| 251 MaybePrintResultsForVideoSend(ssrc, pc_dict, modifier); | 253 MaybePrintResultsForVideoSend(ssrc, pc_dict, modifier); |
| 252 ASSERT_TRUE(did_recognize_stream_type) << "Failed to figure out which " | 254 ASSERT_TRUE(did_recognize_stream_type) << "Failed to figure out which " |
| 253 "kind of stream SSRC " << ssrc | 255 "kind of stream SSRC " << ssrc |
| 254 << " is. "; | 256 << " is. "; |
| 255 } | 257 } |
| 256 } | 258 } |
| 257 | 259 |
| 258 } // namespace test | 260 } // namespace test |
| OLD | NEW |