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

Side by Side Diff: chrome/test/data/webui/settings/fake_networking_private.js

Issue 2913323003: Settings: Network: Merge Tether networks into Mobile subpage (Closed)
Patch Set: Rebase Created 3 years, 6 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 /** 5 /**
6 * @fileoverview Fake implementation of chrome.networkingPrivate for testing. 6 * @fileoverview Fake implementation of chrome.networkingPrivate for testing.
7 */ 7 */
8 cr.define('settings', function() { 8 cr.define('settings', function() {
9 /** 9 /**
10 * @constructor 10 * @constructor
(...skipping 11 matching lines...) Expand all
22 22
23 this.resetForTest(); 23 this.resetForTest();
24 } 24 }
25 25
26 FakeNetworkingPrivate.prototype = { 26 FakeNetworkingPrivate.prototype = {
27 resetForTest() { 27 resetForTest() {
28 this.deviceStates_ = { 28 this.deviceStates_ = {
29 Ethernet: {Type: 'Ethernet', State: 'Enabled'}, 29 Ethernet: {Type: 'Ethernet', State: 'Enabled'},
30 WiFi: {Type: 'WiFi', State: ''}, 30 WiFi: {Type: 'WiFi', State: ''},
31 Cellular: {Type: 'Cellular', State: ''}, 31 Cellular: {Type: 'Cellular', State: ''},
32 Tether: {Type: 'Tether', State: ''},
32 WiMAX: {Type: 'WiMAX', State: ''}, 33 WiMAX: {Type: 'WiMAX', State: ''},
33 }; 34 };
34 35
35 this.networkStates_ = [ 36 this.networkStates_ = [
36 {GUID: 'eth0_guid', Type: 'Ethernet'}, 37 {GUID: 'eth0_guid', Type: 'Ethernet'},
37 ]; 38 ];
38 39
39 this.globalPolicy_ = {}; 40 this.globalPolicy_ = {};
40 }, 41 },
41 42
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 155
155 /** @type {!FakeChromeEvent} */ 156 /** @type {!FakeChromeEvent} */
156 onDeviceStateListChanged: new FakeChromeEvent(), 157 onDeviceStateListChanged: new FakeChromeEvent(),
157 158
158 /** @type {!FakeChromeEvent} */ 159 /** @type {!FakeChromeEvent} */
159 onPortalDetectionCompleted: new FakeChromeEvent(), 160 onPortalDetectionCompleted: new FakeChromeEvent(),
160 }; 161 };
161 162
162 return {FakeNetworkingPrivate: FakeNetworkingPrivate}; 163 return {FakeNetworkingPrivate: FakeNetworkingPrivate};
163 }); 164 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698