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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "mojo/services/test_service/test_request_tracker_impl.h" | 6 #include "services/test_service/test_request_tracker_impl.h" |
7 | 7 |
8 namespace mojo { | 8 namespace mojo { |
9 namespace test { | 9 namespace test { |
10 | 10 |
11 TrackingContext::TrackingContext() : next_id(1) {} | 11 TrackingContext::TrackingContext() : next_id(1) {} |
12 TrackingContext::~TrackingContext() {} | 12 TrackingContext::~TrackingContext() {} |
13 | 13 |
14 TestRequestTrackerImpl::TestRequestTrackerImpl(TrackingContext* context) | 14 TestRequestTrackerImpl::TestRequestTrackerImpl(TrackingContext* context) |
15 : context_(context), weak_factory_(this) { | 15 : context_(context), weak_factory_(this) { |
16 } | 16 } |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 mean_health_numerator += it2->health; | 66 mean_health_numerator += it2->health; |
67 } | 67 } |
68 report->mean_health = mean_health_numerator / num_samples; | 68 report->mean_health = mean_health_numerator / num_samples; |
69 reports.push_back(report.Pass()); | 69 reports.push_back(report.Pass()); |
70 } | 70 } |
71 callback.Run(reports.Pass()); | 71 callback.Run(reports.Pass()); |
72 } | 72 } |
73 | 73 |
74 } // namespace test | 74 } // namespace test |
75 } // namespace mojo | 75 } // namespace mojo |
OLD | NEW |