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 #include "mojo/services/test_service/test_request_tracker_impl.h" | 5 #include "mojo/services/test_service/test_request_tracker_impl.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
7 #include <utility> | 10 #include <utility> |
8 | 11 |
9 namespace mojo { | 12 namespace mojo { |
10 namespace test { | 13 namespace test { |
11 | 14 |
12 TrackingContext::TrackingContext() : next_id(1) { | 15 TrackingContext::TrackingContext() : next_id(1) { |
13 } | 16 } |
14 | 17 |
15 TrackingContext::~TrackingContext() { | 18 TrackingContext::~TrackingContext() { |
16 } | 19 } |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 mean_health_numerator += it2->health; | 71 mean_health_numerator += it2->health; |
69 } | 72 } |
70 report->mean_health = mean_health_numerator / num_samples; | 73 report->mean_health = mean_health_numerator / num_samples; |
71 reports.push_back(std::move(report)); | 74 reports.push_back(std::move(report)); |
72 } | 75 } |
73 callback.Run(std::move(reports)); | 76 callback.Run(std::move(reports)); |
74 } | 77 } |
75 | 78 |
76 } // namespace test | 79 } // namespace test |
77 } // namespace mojo | 80 } // namespace mojo |
OLD | NEW |