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

Unified Diff: extensions/test/data/api_test/usb/add_event/background.js

Issue 800963005: Add browser tests for USB device add/remove events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: extensions/test/data/api_test/usb/add_event/background.js
diff --git a/extensions/test/data/api_test/hid/add_event/background.js b/extensions/test/data/api_test/usb/add_event/background.js
similarity index 77%
copy from extensions/test/data/api_test/hid/add_event/background.js
copy to extensions/test/data/api_test/usb/add_event/background.js
index 2ae0efbb204a679f80c410a6eddb174fb3a1b2fd..11190a1607a9c9d0c72208f1962fc68465bbf335 100644
--- a/extensions/test/data/api_test/hid/add_event/background.js
+++ b/extensions/test/data/api_test/usb/add_event/background.js
@@ -1,8 +1,8 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
+// Copyright 2015 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.
-chrome.hid.onDeviceAdded.addListener(function (device) {
+chrome.usb.onDeviceAdded.addListener(function (device) {
Yoyo Zhou 2015/01/21 06:57:43 nit: while you're here, delete the space after fun
Reilly Grant (use Gerrit) 2015/01/22 00:45:01 I swear some linter complained about me not puttin
if (device.vendorId == 6353 && device.productId == 22768) {
chrome.test.sendMessage("success");
} else {

Powered by Google App Engine
This is Rietveld 408576698