mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 16:26:10 +03:00
29 lines
863 B
Plaintext
29 lines
863 B
Plaintext
|
// Copyright 2016 The Chromium Authors. All rights reserved.
|
||
|
// Use of this source code is governed by a BSD-style license that can be
|
||
|
// found in the LICENSE file.
|
||
|
|
||
|
module mojom;
|
||
|
|
||
|
import "url/mojom/origin.mojom";
|
||
|
import "url/mojom/url.mojom";
|
||
|
|
||
|
struct TestDeviceInfo {
|
||
|
string guid;
|
||
|
string name;
|
||
|
string serial_number;
|
||
|
url.mojom.Url landing_page;
|
||
|
};
|
||
|
|
||
|
interface UsbInternalsPageHandler {
|
||
|
// Simulate the connection of a new device with the given properties.
|
||
|
AddDeviceForTesting(string name,
|
||
|
string serial_number,
|
||
|
string landing_page) => (bool success, string message);
|
||
|
|
||
|
// Simulate the disconnection of a device added with the function above.
|
||
|
RemoveDeviceForTesting(string guid) => ();
|
||
|
|
||
|
// Retrieves the list of test devices added with this API.
|
||
|
GetTestDevices() => (array<TestDeviceInfo> devices);
|
||
|
};
|