Roll src/third_party/WebKit f298044:aa8346d (svn 202628:202629)
[chromium-blink-merge.git] / chrome / browser / media / webrtc_browsertest_perf.h
blobb2595e3a835dedaf3f3c31df71156f40fe96c876
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_PERF_H_
6 #define CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_PERF_H_
8 #include <string>
10 namespace base {
11 class DictionaryValue;
14 namespace test {
16 // These functions takes parsed data (on one peer connection) from the
17 // peerConnectionDataStore object that is backing webrtc-internals and prints
18 // metrics they consider interesting using testing/perf/perf_test.h primitives.
19 // The idea is to put as many webrtc-related metrics as possible into the
20 // dashboard and thereby track it for regressions.
22 // These functions expect to run under googletest and will use EXPECT_ and
23 // ASSERT_ macros to signal failure. They take as argument one peer connection's
24 // stats data and a |modifier| to append to each result bucket. For instance, if
25 // the modifier is '_oneway', the rtt stat will be logged as goog_rtt in
26 // the video_tx_oneway bucket.
27 void PrintBweForVideoMetrics(const base::DictionaryValue& pc_dict,
28 const std::string& modifier);
29 void PrintMetricsForAllStreams(const base::DictionaryValue& pc_dict,
30 const std::string& modifier);
32 } // namespace test
34 #endif // CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_PERF_H_