diff options
author | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-20 20:55:17 +0000 |
---|---|---|
committer | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-20 20:55:17 +0000 |
commit | 2447640cc25951a7522c0b655f3482ca9cc1c27b (patch) | |
tree | d54947c9fb370362b387ade837869eceb2d9ad2f /net/proxy/sync_host_resolver_bridge_unittest.cc | |
parent | 28900505e2304ff77769f8fce09b575eab33fc85 (diff) | |
download | chromium_src-2447640cc25951a7522c0b655f3482ca9cc1c27b.zip chromium_src-2447640cc25951a7522c0b655f3482ca9cc1c27b.tar.gz chromium_src-2447640cc25951a7522c0b655f3482ca9cc1c27b.tar.bz2 |
Reference-count the data used by PAC scripts, so it is shared between threads.
BUG=49396
Review URL: http://codereview.chromium.org/2836060
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53095 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy/sync_host_resolver_bridge_unittest.cc')
-rw-r--r-- | net/proxy/sync_host_resolver_bridge_unittest.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/net/proxy/sync_host_resolver_bridge_unittest.cc b/net/proxy/sync_host_resolver_bridge_unittest.cc index 1a5b1337..95ba446 100644 --- a/net/proxy/sync_host_resolver_bridge_unittest.cc +++ b/net/proxy/sync_host_resolver_bridge_unittest.cc @@ -109,13 +109,13 @@ class SyncProxyResolver : public ProxyResolver { host_resolver_->Shutdown(); } - private: - virtual int SetPacScript(const GURL& pac_url, - const string16& pac_script, - CompletionCallback* callback) { + virtual int SetPacScript( + const scoped_refptr<ProxyResolverScriptData>& script_data, + CompletionCallback* callback) { return OK; } + private: scoped_refptr<SyncHostResolverBridge> host_resolver_; }; @@ -165,7 +165,8 @@ class IOThread : public base::Thread { // Initialize the resolver. TestCompletionCallback callback; - proxy_resolver_->SetPacScriptByUrl(GURL(), &callback); + proxy_resolver_->SetPacScript(ProxyResolverScriptData::FromURL(GURL()), + &callback); EXPECT_EQ(OK, callback.WaitForResult()); // Start an asynchronous request to the proxy resolver |