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

Unified Diff: chrome/test/data/extensions/api_test/systeminfo/storage_eject/test.js

Issue 18578008: [SystemInfo API] Move Storage API out of experimental namespace and rename to the "system" namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix PermissionTest unittest. Created 7 years, 5 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/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);
-};

Powered by Google App Engine
This is Rietveld 408576698