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

Side by Side Diff: tools/chrome_proxy/integration_tests/chrome_proxy_metrics.js

Issue 397483002: Move chrome_proxy tests from under tools/perf to tools/chrome_proxy/integration_tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments and sync'ed Created 6 years, 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // This file contains common utilities to find chrome proxy related elements on 5 // This file contains common utilities to find chrome proxy related elements on
6 // a page and collect info from them. 6 // a page and collect info from them.
7 7
8 (function() { 8 (function() {
9 var PROXY_VIEW_ID = 'proxy-view-tab-content'; 9 var PROXY_VIEW_ID = 'proxy-view-tab-content';
10 var PROXY_VIEW_EFFECTIVE_SETTINGS_ID = 'proxy-view-effective-settings'; 10 var PROXY_VIEW_EFFECTIVE_SETTINGS_ID = 'proxy-view-effective-settings';
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 info = {}; 63 info = {};
64 info.proxies = getEffectiveProxies(document); 64 info.proxies = getEffectiveProxies(document);
65 info.enabled = (info.proxies.length > 1 && 65 info.enabled = (info.proxies.length > 1 &&
66 info.proxies[info.proxies.length - 1] == 'direct://' && 66 info.proxies[info.proxies.length - 1] == 'direct://' &&
67 info.proxies[info.proxies.length - 2] != 'direct://'); 67 info.proxies[info.proxies.length - 2] != 'direct://');
68 info.badProxies = getBadProxyList(document); 68 info.badProxies = getBadProxyList(document);
69 return info; 69 return info;
70 }; 70 };
71 window.__getChromeProxyInfo = getChromeProxyInfo; 71 window.__getChromeProxyInfo = getChromeProxyInfo;
72 })(); 72 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698