| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 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 mojom; |
| 6 |
| 7 import "url/mojo/origin.mojom"; |
| 8 import "url/mojo/url.mojom"; |
| 9 |
| 10 struct TestDeviceInfo { |
| 11 string guid; |
| 12 string name; |
| 13 string serial_number; |
| 14 url.mojom.Url landing_page; |
| 15 url.mojom.Origin allowed_origin; |
| 16 }; |
| 17 |
| 18 interface UsbInternalsPageHandler { |
| 19 // Simulate the connection of a new device with the given properties. |
| 20 AddDeviceForTesting(string name, |
| 21 string serial_number, |
| 22 string landing_page, |
| 23 string allowed_origin) => (bool success, string message); |
| 24 |
| 25 // Simulate the disconnection of a device added with the function above. |
| 26 RemoveDeviceForTesting(string guid) => (); |
| 27 |
| 28 // Retrieves the list of test devices added with this API. |
| 29 GetTestDevices() => (array<TestDeviceInfo> devices); |
| 30 }; |
| OLD | NEW |