OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // system.storage api test | 5 // system.storage api test |
6 // app_shell_browsertests --gtest_filter=SystemStorageApiTest.Storage | 6 // extensions_browsertests --gtest_filter=SystemStorageApiTest.Storage |
7 | 7 |
8 // Testing data should be the same as |kRemovableStorageData| in | 8 // Testing data should be the same as |kRemovableStorageData| in |
9 // test_storage_info_provider.cc. | 9 // test_storage_info_provider.cc. |
10 var testData = { | 10 var testData = { |
11 id: "transient:0004", | 11 id: "transient:0004", |
12 name: "/media/usb1", | 12 name: "/media/usb1", |
13 type: "removable", | 13 type: "removable", |
14 capacity: 4098 | 14 capacity: 4098 |
15 }; | 15 }; |
16 | 16 |
(...skipping 21 matching lines...) Expand all Loading... |
38 chrome.system.storage.onDetached, | 38 chrome.system.storage.onDetached, |
39 function listener(id) { | 39 function listener(id) { |
40 chrome.test.assertEq(device_id, id); | 40 chrome.test.assertEq(device_id, id); |
41 chrome.test.sendMessage(id); | 41 chrome.test.sendMessage(id); |
42 } | 42 } |
43 ); | 43 ); |
44 // Tell browser process to detach a storage. | 44 // Tell browser process to detach a storage. |
45 chrome.test.sendMessage("detach"); | 45 chrome.test.sendMessage("detach"); |
46 } | 46 } |
47 ]); | 47 ]); |
OLD | NEW |