blob: 44ce32b4f4af815ec87dbf6744307bc2a7eef209 [file] [log] [blame]
Åsa Persson352b2d72015-04-15 18:00:40 +02001/*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11#ifndef WEBRTC_TEST_HISTOGRAM_H_
12#define WEBRTC_TEST_HISTOGRAM_H_
13
14#include <string>
15
16namespace webrtc {
17namespace test {
18
19// Returns the last added sample to a histogram (or -1 if the histogram is not
20// found).
21int LastHistogramSample(const std::string& name);
22
Åsa Perssona96f02b2015-04-24 08:52:11 +020023// Returns the number of added samples to a histogram.
24int NumHistogramSamples(const std::string& name);
25
26// Removes all histograms.
27void ClearHistograms();
28
Åsa Persson352b2d72015-04-15 18:00:40 +020029} // namespace test
30} // namespace webrtc
31
32#endif // WEBRTC_TEST_HISTOGRAM_H_
33