Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(432)

Side by Side Diff: services/test_service/test_request_tracker_impl.cc

Issue 766403002: Move test_service implementation to //services (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « services/test_service/test_request_tracker_impl.h ('k') | services/test_service/test_service.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698