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

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

Issue 285233008: Add MacAddress to ONC and networkingPrivate (Closed) Base URL: https://chromium.googlesource.com/chromium/src
Patch Set: Rebase Created 6 years, 7 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
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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 listener.listenForChanges); 262 listener.listenForChanges);
263 chrome.networkingPrivate.requestNetworkScan(); 263 chrome.networkingPrivate.requestNetworkScan();
264 }, 264 },
265 function getProperties() { 265 function getProperties() {
266 chrome.networkingPrivate.getProperties( 266 chrome.networkingPrivate.getProperties(
267 "stub_wifi1", 267 "stub_wifi1",
268 callbackPass(function(result) { 268 callbackPass(function(result) {
269 assertEq({ "Connectable": true, 269 assertEq({ "Connectable": true,
270 "ConnectionState": "Connected", 270 "ConnectionState": "Connected",
271 "GUID": "stub_wifi1", 271 "GUID": "stub_wifi1",
272 "MacAddress": "00:11:22:AA:BB:CC",
272 "IPConfigs": [{ 273 "IPConfigs": [{
273 "Gateway": "0.0.0.1", 274 "Gateway": "0.0.0.1",
274 "IPAddress": "0.0.0.0", 275 "IPAddress": "0.0.0.0",
275 "RoutingPrefix": 0, 276 "RoutingPrefix": 0,
276 "Type": "IPv4" 277 "Type": "IPv4"
277 }], 278 }],
278 "Name": "wifi1", 279 "Name": "wifi1",
279 "Type": "WiFi", 280 "Type": "WiFi",
280 "WiFi": { 281 "WiFi": {
281 "Frequency": 2400, 282 "Frequency": 2400,
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 var listener = 488 var listener =
488 new privateHelpers.watchForCaptivePortalState('wifi', 'Online', done); 489 new privateHelpers.watchForCaptivePortalState('wifi', 'Online', done);
489 chrome.test.sendMessage('notifyPortalDetectorObservers'); 490 chrome.test.sendMessage('notifyPortalDetectorObservers');
490 }, 491 },
491 ]; 492 ];
492 493
493 var testToRun = window.location.search.substring(1); 494 var testToRun = window.location.search.substring(1);
494 chrome.test.runTests(availableTests.filter(function(op) { 495 chrome.test.runTests(availableTests.filter(function(op) {
495 return op.name == testToRun; 496 return op.name == testToRun;
496 })); 497 }));
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc ('k') | chromeos/dbus/fake_shill_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698