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

Side by Side Diff: mojo/services/test_service/test_request_tracker.mojom

Issue 349303006: mojo: add some end-to-end shell tests and a new test sample app (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no icu Created 6 years, 5 months 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 | Annotate | Revision Log
« no previous file with comments | « mojo/mojo_services.gypi ('k') | mojo/services/test_service/test_request_tracker_application.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 module mojo.test {
6
7 // Various counters that services can periodically send to a
8 // TestTrackedRequestService for recording.
9 struct ServiceStats {
10 uint64 num_new_requests;
11 double health;
12 };
13
14 // A per-service summary of all the ServiceStats the
15 // TestTrackedRequestService has observed.
16 struct ServiceReport {
17 string service_name;
18 uint64 total_requests;
19 double mean_health;
20 };
21
22 // A simple interface to obtain a "report" from all services that have
23 // opted to connect themselves to for request tracking.
24 interface TestTrackedRequestService {
25 GetReport() => (ServiceReport[] report);
26 };
27
28 // TestRequestTracker records ServiceStats for an individual service
29 // connection for aggregation in a TestTrackedRequestService.
30 [Client=TestRequestTrackerClient]
31 interface TestRequestTracker {
32 // Upload a ServiceStats for tracking.
33 RecordStats(uint64 client_id, ServiceStats stats);
34 };
35
36 // The client-side contract for uploading ServiceStats to TestRequestTracker.
37 interface TestRequestTrackerClient {
38 const uint64 kInvalidId = 0;
39 // Handshake to tell the client its global identifier and get the name.
40 SetIdAndReturnName(uint64 id) => (string service_name);
41 };
42
43 } // module mojo.test
OLDNEW
« no previous file with comments | « mojo/mojo_services.gypi ('k') | mojo/services/test_service/test_request_tracker_application.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698