| 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 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 callbackPass(function(result) { | 520 callbackPass(function(result) { |
| 521 assertEq({ | 521 assertEq({ |
| 522 Connectable: true, | 522 Connectable: true, |
| 523 ConnectionState: ConnectionStateType.NOT_CONNECTED, | 523 ConnectionState: ConnectionStateType.NOT_CONNECTED, |
| 524 GUID: 'stub_wifi2', | 524 GUID: 'stub_wifi2', |
| 525 Name: { | 525 Name: { |
| 526 Active: 'wifi2_PSK', | 526 Active: 'wifi2_PSK', |
| 527 Effective: 'UserPolicy', | 527 Effective: 'UserPolicy', |
| 528 UserPolicy: 'My WiFi Network' | 528 UserPolicy: 'My WiFi Network' |
| 529 }, | 529 }, |
| 530 ProxySettings: { |
| 531 Type: { |
| 532 Active: 'Direct', |
| 533 Effective: 'UserPolicy', |
| 534 UserEditable: false, |
| 535 UserPolicy: 'Direct' |
| 536 } |
| 537 }, |
| 530 Source: 'UserPolicy', | 538 Source: 'UserPolicy', |
| 531 Type: NetworkType.WI_FI, | 539 Type: NetworkType.WI_FI, |
| 532 WiFi: { | 540 WiFi: { |
| 533 AutoConnect: { | 541 AutoConnect: { |
| 534 Active: false, | 542 Active: false, |
| 535 UserEditable: true | 543 UserEditable: true |
| 536 }, | 544 }, |
| 537 HexSSID: { | 545 HexSSID: { |
| 538 Active: '77696669325F50534B', // 'wifi2_PSK' | 546 Active: '77696669325F50534B', // 'wifi2_PSK' |
| 539 Effective: 'UserPolicy', | 547 Effective: 'UserPolicy', |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 868 })); | 876 })); |
| 869 })); | 877 })); |
| 870 }))); | 878 }))); |
| 871 } | 879 } |
| 872 ]; | 880 ]; |
| 873 | 881 |
| 874 var testToRun = window.location.search.substring(1); | 882 var testToRun = window.location.search.substring(1); |
| 875 chrome.test.runTests(availableTests.filter(function(op) { | 883 chrome.test.runTests(availableTests.filter(function(op) { |
| 876 return op.name == testToRun; | 884 return op.name == testToRun; |
| 877 })); | 885 })); |
| OLD | NEW |