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

Unified Diff: third_party/WebKit/LayoutTests/usb/resources/fake-devices.js

Issue 1472693004: [Do not commit] Sample USB layout tests with Mojo service mocks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@usb-testing-4
Patch Set: rebase Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/usb/resources/fake-devices.js
diff --git a/third_party/WebKit/LayoutTests/usb/resources/fake-devices.js b/third_party/WebKit/LayoutTests/usb/resources/fake-devices.js
new file mode 100644
index 0000000000000000000000000000000000000000..e9b3d66afd5a579fb9ea19513b158645783f2cfe
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/usb/resources/fake-devices.js
@@ -0,0 +1,21 @@
+'use strict';
+
+let FAKE_PRINTER = {
+ guid: 'CD9FA048-FC9B-7A71-DBFC-FD44B78D6397',
+ usb_version_major: 2,
+ usb_version_minor: 0,
+ usb_version_subminor: 0,
+ class_code: 7,
+ subclass_code: 1,
+ protocol_code: 2,
+ vendor_id: 0x18d1,
+ product_id: 0xf00d,
+ device_version_major: 1,
+ device_version_minor: 2,
+ device_version_subminor: 3,
+ manufacturer_name: 'Google, Inc.',
+ product_name: 'The amazing imaginary printer',
+ serial_number: '4',
+ configurations: [],
+ webusb_allowed_origins: { origins: [], configurations: [] },
+};

Powered by Google App Engine
This is Rietveld 408576698