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

Unified Diff: extensions/test/data/manifest_tests/usb_printers_invalid_filter.json

Issue 1123093003: Add a manifest property declaring USB printers supported by an app. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix leak of Value-encoded device filter in tests. Created 5 years, 7 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: extensions/test/data/manifest_tests/usb_printers_invalid_filter.json
diff --git a/extensions/test/data/manifest_tests/usb_printers_invalid_filter.json b/extensions/test/data/manifest_tests/usb_printers_invalid_filter.json
new file mode 100644
index 0000000000000000000000000000000000000000..e11777950f51bf8e8679834a168a4d00e736c410
--- /dev/null
+++ b/extensions/test/data/manifest_tests/usb_printers_invalid_filter.json
@@ -0,0 +1,16 @@
+{
+ "name": "extensions_unittests --gtest_filter=UsbPrinterManifestTest.InvalidFilter",
+ "version": "1",
+ "manifest_version": 2,
+ "app": {
+ "background": {
+ "scripts": ["background.js"]
+ }
+ },
+ "usb_printers": {
+ "filters": [
+ // Cannot specify both productId and interfaceClass.
+ { "vendorId": 0, "productId": 0, "interfaceClass": 0 }
+ ]
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698