summaryrefslogtreecommitdiffstats
path: root/media/cast/test/utility/test_util.h
blob: 2b487065abe4fcfdd4221e45bf617569206166db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef MEDIA_CAST_TEST_UTILITY_TEST_UTIL_H
#define MEDIA_CAST_TEST_UTILITY_TEST_UTIL_H

#include <stddef.h>

#include <string>
#include <vector>

namespace media {
namespace cast {
namespace test {

class MeanAndError {
 public:
  MeanAndError() {}
  explicit MeanAndError(const std::vector<double>& values);
  std::string AsString() const;

  size_t num_values;
  double mean;
  double std_dev;
};

}  // namespace test
}  // namespace cast
}  // namespace media

#endif  // MEDIA_CAST_TEST_UTILITY_TEST_UTIL_H