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

Side by Side Diff: mojo/public/interfaces/bindings/tests/versioning_test_service.mojom

Issue 2250183003: Make the fuchsia mojo/public repo the source of truth. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 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
OLDNEW
(Empty)
1 // Copyright 2015 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.versioning;
6
7 // versioning_test_service.mojom and versioning_test_client.mojom contain
8 // different versions of Mojom definitions for a fictitious human resource
9 // management system. They are used to test the versioning mechanism.
10
11 enum Department {
12 SALES,
13 DEV,
14 };
15
16 struct Date {
17 uint16 year;
18 uint8 month;
19 uint8 day;
20 };
21
22 struct Employee {
23 uint64 employee_id;
24 string name;
25 Department department;
26 [MinVersion=1] Date? birthday;
27 };
28
29 [ServiceName="mojo::test::versioning::HumanResourceDatabase"]
30 interface HumanResourceDatabase {
31 AddEmployee(Employee employee) => (bool success);
32
33 QueryEmployee(uint64 id, [MinVersion=1] bool retrieve_finger_print)
34 => (Employee? employee, [MinVersion=1] array<uint8>? finger_print);
35
36 [MinVersion=1]
37 AttachFingerPrint(uint64 id, array<uint8> finger_print) => (bool success);
38 };
OLDNEW
« no previous file with comments | « mojo/public/interfaces/bindings/tests/versioning_test_client.mojom ('k') | mojo/public/interfaces/network/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698