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> |
| 9 |
8 #include <string> | 10 #include <string> |
9 #include <vector> | 11 #include <vector> |
10 | 12 |
11 namespace media { | 13 namespace media { |
12 namespace cast { | 14 namespace cast { |
13 namespace test { | 15 namespace test { |
14 | 16 |
15 class MeanAndError { | 17 class MeanAndError { |
16 public: | 18 public: |
17 MeanAndError() {} | 19 MeanAndError() {} |
18 explicit MeanAndError(const std::vector<double>& values); | 20 explicit MeanAndError(const std::vector<double>& values); |
19 std::string AsString() const; | 21 std::string AsString() const; |
20 | 22 |
21 size_t num_values; | 23 size_t num_values; |
22 double mean; | 24 double mean; |
23 double std_dev; | 25 double std_dev; |
24 }; | 26 }; |
25 | 27 |
26 } // namespace test | 28 } // namespace test |
27 } // namespace cast | 29 } // namespace cast |
28 } // namespace media | 30 } // namespace media |
29 | 31 |
30 #endif // MEDIA_CAST_TEST_UTILITY_TEST_UTIL_H | 32 #endif // MEDIA_CAST_TEST_UTILITY_TEST_UTIL_H |
OLD | NEW |