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

Unified Diff: chrome/test/data/extensions/api_test/usb/device_handling/test.js

Issue 695613002: Move the USB API tests into app_shell_browsertests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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: chrome/test/data/extensions/api_test/usb/device_handling/test.js
diff --git a/chrome/test/data/extensions/api_test/usb/device_handling/test.js b/chrome/test/data/extensions/api_test/usb/device_handling/test.js
deleted file mode 100644
index 9bcc2d4132aedc756ffb0bf0ce0e8013d49b983d..0000000000000000000000000000000000000000
--- a/chrome/test/data/extensions/api_test/usb/device_handling/test.js
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) 2012 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.
-
-var usb = chrome.usb;
-
-function getDevices() {
- usb.getDevices({
- vendorId: 0,
- productId: 0
- }, function(devices) {
- usb.openDevice(devices[0], function(handle) {
- usb.closeDevice(handle);
- chrome.test.succeed();
- });
- });
-}
-
-function explicitCloseDevice() {
- usb.findDevices({
- vendorId: 0,
- productId: 0
- }, function(devices) {
- usb.closeDevice(devices[0]);
- chrome.test.succeed();
- });
-}
-
-chrome.test.runTests([
- getDevices, explicitCloseDevice
-]);

Powered by Google App Engine
This is Rietveld 408576698