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

Side by Side Diff: mojo/public/interfaces/bindings/tests/versioning_test_client.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 [DartPackage="_mojo_for_test_only"]
6 module mojo.test.versioning;
7
8 // versioning_test_service.mojom and versioning_test_client.mojom contain
9 // different versions of Mojom definitions for a fictitious human resource
10 // management system. They are used to test the versioning mechanism.
11
12 enum Department {
13 SALES,
14 DEV,
15 };
16
17 struct Employee {
18 uint64 employee_id;
19 string name;
20 Department department;
21 };
22
23 [ServiceName="mojo::test::versioning::HumanResourceDatabase"]
24 interface HumanResourceDatabase {
25 AddEmployee(Employee employee) => (bool success);
26
27 QueryEmployee(uint64 id, [MinVersion=1] bool retrieve_finger_print)
28 => (Employee? employee, [MinVersion=1] array<uint8>? finger_print);
29
30 [MinVersion=1]
31 AttachFingerPrint(uint64 id, array<uint8> finger_print) => (bool success);
32
33 [MinVersion=2]
34 ListEmployeeIds() => (array<uint64>? ids);
35 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698