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