OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 // The expectations in this test for the Chrome OS implementation. See | 5 // The expectations in this test for the Chrome OS implementation. See |
6 // networking_private_chromeos_apitest.cc for more info. | 6 // networking_private_chromeos_apitest.cc for more info. |
7 | 7 |
8 var callbackPass = chrome.test.callbackPass; | 8 var callbackPass = chrome.test.callbackPass; |
9 var callbackFail = chrome.test.callbackFail; | 9 var callbackFail = chrome.test.callbackFail; |
10 var assertTrue = chrome.test.assertTrue; | 10 var assertTrue = chrome.test.assertTrue; |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 function getPropertiesCellular() { | 324 function getPropertiesCellular() { |
325 chrome.networkingPrivate.getProperties( | 325 chrome.networkingPrivate.getProperties( |
326 "stub_cellular1_guid", | 326 "stub_cellular1_guid", |
327 callbackPass(function(result) { | 327 callbackPass(function(result) { |
328 assertEq({ "Cellular": { | 328 assertEq({ "Cellular": { |
329 "ActivationState": "NotActivated", | 329 "ActivationState": "NotActivated", |
330 "AllowRoaming": false, | 330 "AllowRoaming": false, |
331 "AutoConnect": true, | 331 "AutoConnect": true, |
332 "Carrier": "Cellular1_Carrier", | 332 "Carrier": "Cellular1_Carrier", |
333 "HomeProvider": { | 333 "HomeProvider": { |
334 "country": "us", | 334 "Country": "us", |
335 "name": "Cellular1_Provider" | 335 "Name": "Cellular1_Provider" |
336 }, | 336 }, |
337 "NetworkTechnology": "GSM", | 337 "NetworkTechnology": "GSM", |
338 "RoamingState": "Home" | 338 "RoamingState": "Home" |
339 }, | 339 }, |
340 "ConnectionState": "NotConnected", | 340 "ConnectionState": "NotConnected", |
341 "GUID": "stub_cellular1_guid", | 341 "GUID": "stub_cellular1_guid", |
342 "Name": "cellular1", | 342 "Name": "cellular1", |
343 "Type": "Cellular" | 343 "Type": "Cellular" |
344 }, result); | 344 }, result); |
345 })); | 345 })); |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 new privateHelpers.watchForCaptivePortalState( | 580 new privateHelpers.watchForCaptivePortalState( |
581 'wifi_guid', 'Online', done); | 581 'wifi_guid', 'Online', done); |
582 chrome.test.sendMessage('notifyPortalDetectorObservers'); | 582 chrome.test.sendMessage('notifyPortalDetectorObservers'); |
583 }, | 583 }, |
584 ]; | 584 ]; |
585 | 585 |
586 var testToRun = window.location.search.substring(1); | 586 var testToRun = window.location.search.substring(1); |
587 chrome.test.runTests(availableTests.filter(function(op) { | 587 chrome.test.runTests(availableTests.filter(function(op) { |
588 return op.name == testToRun; | 588 return op.name == testToRun; |
589 })); | 589 })); |
OLD | NEW |