Index: chrome/test/data/extensions/api_test/systeminfo/storage_eject/test.js |
diff --git a/chrome/test/data/extensions/api_test/systeminfo/storage_eject/test.js b/chrome/test/data/extensions/api_test/systeminfo/storage_eject/test.js |
deleted file mode 100644 |
index f124a066569bb0bc81bb7631c37a48df86eed2a3..0000000000000000000000000000000000000000 |
--- a/chrome/test/data/extensions/api_test/systeminfo/storage_eject/test.js |
+++ /dev/null |
@@ -1,42 +0,0 @@ |
-// Copyright 2013 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 attachedDeviceId; |
- |
-systemInfo = chrome.experimental.systemInfo; |
- |
-function testAttach(details) { |
- attachedDeviceId = details.id; |
- chrome.test.sendMessage('attach_test_ok,' + details.name); |
-}; |
- |
-function ejectCallback(result) { |
- if (result == "success") { |
- chrome.test.sendMessage("eject_ok"); |
- } else if (result == "in_use") { |
- chrome.test.sendMessage("eject_in_use"); |
- } else if (result == "no_such_device") { |
- chrome.test.sendMessage("eject_no_such_device"); |
- } else { |
- chrome.test.sendMessage("eject_failure"); |
- } |
-}; |
- |
-function ejectTest() { |
- systemInfo.storage.ejectDevice(attachedDeviceId, ejectCallback); |
-}; |
- |
-function addAttachListener() { |
- systemInfo.storage.onAttached.addListener(testAttach); |
- chrome.test.sendMessage('add_attach_ok'); |
-}; |
- |
-function removeAttachListener() { |
- systemInfo.storage.onAttached.removeListener(testAttach); |
- chrome.test.sendMessage('remove_attach_ok'); |
-}; |
- |
-function ejectFailTest() { |
- systemInfo.storage.ejectDevice('-1', ejectCallback); |
-}; |