OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef MEDIA_CAST_TEST_UTILITY_TEST_UTIL_H | 5 #ifndef MEDIA_CAST_TEST_UTILITY_TEST_UTIL_H_ |
6 #define MEDIA_CAST_TEST_UTILITY_TEST_UTIL_H | 6 #define MEDIA_CAST_TEST_UTILITY_TEST_UTIL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 namespace media { | 13 namespace media { |
14 namespace cast { | 14 namespace cast { |
15 namespace test { | 15 namespace test { |
16 | 16 |
17 class MeanAndError { | 17 class MeanAndError { |
18 public: | 18 public: |
19 MeanAndError() {} | 19 MeanAndError() {} |
20 explicit MeanAndError(const std::vector<double>& values); | 20 explicit MeanAndError(const std::vector<double>& values); |
21 std::string AsString() const; | 21 std::string AsString() const; |
22 | 22 |
23 size_t num_values; | 23 size_t num_values; |
24 double mean; | 24 double mean; |
25 double std_dev; | 25 double std_dev; |
26 }; | 26 }; |
27 | 27 |
28 } // namespace test | 28 } // namespace test |
29 } // namespace cast | 29 } // namespace cast |
30 } // namespace media | 30 } // namespace media |
31 | 31 |
32 #endif // MEDIA_CAST_TEST_UTILITY_TEST_UTIL_H | 32 #endif // MEDIA_CAST_TEST_UTILITY_TEST_UTIL_H_ |
OLD | NEW |