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

Side by Side Diff: chrome/test/data/extensions/api_test/networking/test.js

Issue 23506040: Add ethernet to ONC validation and Shill translation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed networkingPrivate api test on non-chromeos. Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 var callbackPass = chrome.test.callbackPass; 5 var callbackPass = chrome.test.callbackPass;
6 var callbackFail = chrome.test.callbackFail; 6 var callbackFail = chrome.test.callbackFail;
7 var assertTrue = chrome.test.assertTrue; 7 var assertTrue = chrome.test.assertTrue;
8 var assertFalse = chrome.test.assertFalse; 8 var assertFalse = chrome.test.assertFalse;
9 var assertEq = chrome.test.assertEq; 9 var assertEq = chrome.test.assertEq;
10 10
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 })); 108 }));
109 }, 109 },
110 function getVisibleNetworks() { 110 function getVisibleNetworks() {
111 chrome.networkingPrivate.getVisibleNetworks( 111 chrome.networkingPrivate.getVisibleNetworks(
112 "All", 112 "All",
113 callbackPass(function(result) { 113 callbackPass(function(result) {
114 assertEq([{ 114 assertEq([{
115 "ConnectionState": "Connected", 115 "ConnectionState": "Connected",
116 "GUID": "stub_ethernet", 116 "GUID": "stub_ethernet",
117 "Name": "eth0", 117 "Name": "eth0",
118 "Type": "Ethernet" 118 "Type": "Ethernet",
119 "Ethernet": {
120 "Authentication": "None"
121 }
119 }, 122 },
120 { 123 {
121 "ConnectionState": "Connected", 124 "ConnectionState": "Connected",
122 "GUID": "stub_wifi1", 125 "GUID": "stub_wifi1",
123 "Name": "wifi1", 126 "Name": "wifi1",
124 "Type": "WiFi", 127 "Type": "WiFi",
125 "WiFi": { 128 "WiFi": {
126 "Security": "WEP-PSK", 129 "Security": "WEP-PSK",
127 "SignalStrength": 0 130 "SignalStrength": 0
128 } 131 }
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 callbackPass(function(result) { 366 callbackPass(function(result) {
364 assertEq("encrypted_data", result); 367 assertEq("encrypted_data", result);
365 })); 368 }));
366 } 369 }
367 ]; 370 ];
368 371
369 var testToRun = window.location.search.substring(1); 372 var testToRun = window.location.search.substring(1);
370 chrome.test.runTests(availableTests.filter(function(op) { 373 chrome.test.runTests(availableTests.filter(function(op) {
371 return op.name == testToRun; 374 return op.name == testToRun;
372 })); 375 }));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698