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

Unified Diff: chrome/test/data/webui/settings/fake_networking_private.js

Issue 2913323003: Settings: Network: Merge Tether networks into Mobile subpage (Closed)
Patch Set: Fix browser_tests Created 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/webui/settings/fake_networking_private.js
diff --git a/chrome/test/data/webui/settings/fake_networking_private.js b/chrome/test/data/webui/settings/fake_networking_private.js
index d6421e70b73f519a0d897d8bce909251abafe9c8..f067574ec7ceae99991fbfd25e267c31ed9a6576 100644
--- a/chrome/test/data/webui/settings/fake_networking_private.js
+++ b/chrome/test/data/webui/settings/fake_networking_private.js
@@ -29,6 +29,7 @@ cr.define('settings', function() {
Ethernet: {Type: 'Ethernet', State: 'Enabled'},
WiFi: {Type: 'WiFi', State: ''},
Cellular: {Type: 'Cellular', State: ''},
+ Tether: {Type: 'Tether', State: ''},
WiMAX: {Type: 'WiMAX', State: ''},
};
@@ -56,7 +57,13 @@ cr.define('settings', function() {
getProperties: assertNotReached,
/** @override */
- getManagedProperties: assertNotReached,
+ getManagedProperties: function(guid) {
+ var result = this.networkStates_.find(function(state) {
+ return state.GUID == guid;
+ });
+ // TODO(stevenjb): Convert state to ManagedProperties.
+ return result;
+ },
/** @override */
getState: assertNotReached,

Powered by Google App Engine
This is Rietveld 408576698