| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // This just tests the interface. It does not test for specific results, only | 5 // This just tests the interface. It does not test for specific results, only |
| 6 // that callbacks are correctly invoked, expected parameters are correct, | 6 // that callbacks are correctly invoked, expected parameters are correct, |
| 7 // and failures are detected. | 7 // and failures are detected. |
| 8 | 8 |
| 9 var callbackPass = chrome.test.callbackPass; | 9 var callbackPass = chrome.test.callbackPass; |
| 10 | 10 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 }, | 120 }, |
| 121 function unlockCellularSim() { | 121 function unlockCellularSim() { |
| 122 chrome.networkingPrivate.unlockCellularSim( | 122 chrome.networkingPrivate.unlockCellularSim( |
| 123 kGuid, '1111', callbackPass(callbackResult)); | 123 kGuid, '1111', callbackPass(callbackResult)); |
| 124 }, | 124 }, |
| 125 function setCellularSimState() { | 125 function setCellularSimState() { |
| 126 var simState = { requirePin: true, currentPin: '1111', newPin: '1234' }; | 126 var simState = { requirePin: true, currentPin: '1111', newPin: '1234' }; |
| 127 chrome.networkingPrivate.setCellularSimState( | 127 chrome.networkingPrivate.setCellularSimState( |
| 128 kGuid, simState, callbackPass(callbackResult)); | 128 kGuid, simState, callbackPass(callbackResult)); |
| 129 }, | 129 }, |
| 130 function getThirdPartyVPNProviders() { |
| 131 chrome.networkingPrivate.getThirdPartyVPNProviders( |
| 132 callbackPass(callbackResult)); |
| 133 }, |
| 130 ]; | 134 ]; |
| 131 | 135 |
| 132 var testToRun = window.location.search.substring(1); | 136 var testToRun = window.location.search.substring(1); |
| 133 chrome.test.runTests(availableTests.filter(function(op) { | 137 chrome.test.runTests(availableTests.filter(function(op) { |
| 134 return op.name == testToRun; | 138 return op.name == testToRun; |
| 135 })); | 139 })); |
| OLD | NEW |