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

Side by Side Diff: net/data/proxy_resolver_v8_tracing_unittest/terminate.js

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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
(Empty)
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
3 // found in the LICENSE file.
4
5 var g_iteration = 0;
6
7 function FindProxyForURL(url, host) {
8 g_iteration++;
9
10 var ip1 = dnsResolve("host1");
11 var ip2 = dnsResolveEx("host2");
12
13 if (ip1 == "182.111.0.222" && ip2 == "111.33.44.55")
14 return "PROXY foopy:" + g_iteration;
15
16 // If the script didn't terminate when abandoned, then it will reach this and
17 // hang.
18 for (;;) {}
19 throw "not reached";
20 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698