Home
last modified time | relevance | path

Searched refs:resolver (Results 1 – 25 of 240) sorted by relevance

12345678910

/external/chromium_org/net/proxy/
Dproxy_resolver_v8_unittest.cc145 ProxyResolverV8WithMockBindings resolver; in TEST() local
146 int result = resolver.SetPacScriptFromDisk("direct.js"); in TEST()
151 result = resolver.GetProxyForURL( in TEST()
157 EXPECT_EQ(0U, resolver.mock_js_bindings()->alerts.size()); in TEST()
158 EXPECT_EQ(0U, resolver.mock_js_bindings()->errors.size()); in TEST()
167 ProxyResolverV8WithMockBindings resolver; in TEST() local
168 int result = resolver.SetPacScriptFromDisk("return_empty_string.js"); in TEST()
172 result = resolver.GetProxyForURL( in TEST()
178 EXPECT_EQ(0U, resolver.mock_js_bindings()->alerts.size()); in TEST()
179 EXPECT_EQ(0U, resolver.mock_js_bindings()->errors.size()); in TEST()
[all …]
Dproxy_service_unittest.cc159 MockAsyncProxyResolver* resolver = new MockAsyncProxyResolver; in TEST_F() local
161 ProxyConfig::CreateDirect()), resolver, NULL); in TEST_F()
171 EXPECT_TRUE(resolver->pending_requests().empty()); in TEST_F()
195 MockAsyncProxyResolver* resolver = new MockAsyncProxyResolver; in TEST_F() local
197 ProxyService service(config_service, resolver, NULL); in TEST_F()
213 resolver->pending_set_pac_script_request()->script_data()->url()); in TEST_F()
214 resolver->pending_set_pac_script_request()->CompleteNow(OK); in TEST_F()
216 ASSERT_EQ(1u, resolver->pending_requests().size()); in TEST_F()
217 EXPECT_EQ(url, resolver->pending_requests()[0]->url()); in TEST_F()
220 resolver->pending_requests()[0]->results()->UseNamedProxy("foopy"); in TEST_F()
[all …]
Dproxy_resolver_v8_tracing_unittest.cc61 void InitResolver(ProxyResolverV8Tracing* resolver, const char* filename) { in InitResolver() argument
64 resolver->SetPacScript(LoadScriptData(filename), callback.callback()); in InitResolver()
104 ProxyResolverV8Tracing resolver(&host_resolver, error_observer, &log); in TEST_F() local
106 InitResolver(&resolver, "simple.js"); in TEST_F()
111 int rv = resolver.GetProxyForURL( in TEST_F()
135 ProxyResolverV8Tracing resolver(&host_resolver, error_observer, &log); in TEST_F() local
137 InitResolver(&resolver, "error.js"); in TEST_F()
142 int rv = resolver.GetProxyForURL( in TEST_F()
181 ProxyResolverV8Tracing resolver(&host_resolver, error_observer, &log); in TEST_F() local
183 InitResolver(&resolver, "too_many_alerts.js"); in TEST_F()
[all …]
Dmulti_threaded_proxy_resolver_unittest.cc199 explicit ForwardingProxyResolverFactory(ProxyResolver* resolver) in ForwardingProxyResolverFactory() argument
200 : ProxyResolverFactory(resolver->expects_pac_bytes()), in ForwardingProxyResolverFactory()
201 resolver_(resolver) {} in ForwardingProxyResolverFactory()
221 BlockableProxyResolver* resolver = new BlockableProxyResolver; in CreateProxyResolver() local
222 resolvers_.push_back(resolver); in CreateProxyResolver()
223 return new ForwardingProxyResolver(resolver); in CreateProxyResolver()
237 MultiThreadedProxyResolver resolver( in TEST() local
242 EXPECT_TRUE(resolver.expects_pac_bytes()); in TEST()
247 rv = resolver.SetPacScript( in TEST()
259 rv = resolver.GetProxyForURL(GURL("http://request0"), &results0, in TEST()
[all …]
Dproxy_resolver_perftest.cc84 PacPerfSuiteRunner(net::ProxyResolver* resolver, in PacPerfSuiteRunner() argument
86 : resolver_(resolver), in PacPerfSuiteRunner()
186 net::ProxyResolverWinHttp resolver; in TEST() local
187 PacPerfSuiteRunner runner(&resolver, "ProxyResolverWinHttp"); in TEST()
192 net::ProxyResolverMac resolver; in TEST() local
193 PacPerfSuiteRunner runner(&resolver, "ProxyResolverMac"); in TEST()
224 net::ProxyResolverV8 resolver; in TEST() local
225 resolver.set_js_bindings(&js_bindings); in TEST()
226 PacPerfSuiteRunner runner(&resolver, "ProxyResolverV8"); in TEST()
Dmulti_threaded_proxy_resolver.cc37 ProxyResolver* resolver,
53 ProxyResolver* resolver() { return resolver_.get(); } in resolver() function in net::MultiThreadedProxyResolver::Executor
180 ProxyResolver* resolver = executor()->resolver(); in Run() local
181 int rv = resolver->SetPacScript(script_data_, CompletionCallback()); in Run()
248 ProxyResolver* resolver = executor()->resolver(); in Run() local
249 int rv = resolver->GetProxyForURL( in Run()
309 ProxyResolver* resolver, in Executor() argument
313 resolver_(resolver) { in Executor()
315 DCHECK(resolver); in Executor()
543 ProxyResolver* resolver = resolver_factory_->CreateProxyResolver(); in AddNewExecutor() local
[all …]
/external/chromium-libpac/test/
Dproxy_resolver_v8_unittest.cc150 ProxyResolverV8WithMockBindings resolver(new MockJSBindings()); in TEST() local
151 int result = resolver.SetPacScript(SCRIPT(DIRECT_JS)); in TEST()
154 result = resolver.GetProxyForURL(kQueryUrl, kQueryHost, &kResults); in TEST()
161 EXPECT_EQ(0U, resolver.mock_js_bindings()->alerts.size()); in TEST()
162 EXPECT_EQ(0U, resolver.mock_js_bindings()->errors.size()); in TEST()
166 ProxyResolverV8WithMockBindings resolver(new MockJSBindings()); in TEST() local
167 int result = resolver.SetPacScript(SCRIPT(RETURN_EMPTY_STRING_JS)); in TEST()
170 result = resolver.GetProxyForURL(kQueryUrl, kQueryHost, &kResults); in TEST()
176 EXPECT_EQ(0U, resolver.mock_js_bindings()->alerts.size()); in TEST()
177 EXPECT_EQ(0U, resolver.mock_js_bindings()->errors.size()); in TEST()
[all …]
/external/chromium_org/chrome/common/extensions/docs/server2/
Dreference_resolver_test.py264 resolver = ReferenceResolver(_FakeAPIModels(_TEST_DATA),
270 }, resolver.GetLink('foo', namespace='baz'))
275 }, resolver.GetLink('foo.foo_t1', namespace='baz'))
280 }, resolver.GetLink('baz.baz_e1', namespace='baz'))
285 }, resolver.GetLink('baz_e1', namespace='baz'))
290 }, resolver.GetLink('foo.foo_f1', namespace='baz'))
295 }, resolver.GetLink('foo.foo_p3', namespace='baz'))
300 }, resolver.GetLink('bar.bon.bar_bon_t3', namespace='baz'))
305 }, resolver.GetLink('bar_bon_p3', namespace='bar.bon'))
310 }, resolver.GetLink('bar.bon.bar_bon_p3', namespace='bar.bon'))
[all …]
/external/chromium_org/net/dns/
Dmapped_host_resolver_unittest.cc34 scoped_ptr<MappedHostResolver> resolver( in TEST() local
43 rv = resolver->Resolve( in TEST()
55 EXPECT_TRUE(resolver->AddRuleFromString("map *.google.com baz.com")); in TEST()
58 rv = resolver->Resolve( in TEST()
72 rv = resolver->Resolve(HostResolver::RequestInfo(HostPortPair("foo.com", 77)), in TEST()
84 EXPECT_TRUE(resolver->AddRuleFromString("Map *.org proxy:99")); in TEST()
87 rv = resolver->Resolve( in TEST()
108 scoped_ptr<MappedHostResolver> resolver( in TEST() local
116 EXPECT_TRUE(resolver->AddRuleFromString("map *.com baz")); in TEST()
119 EXPECT_TRUE(resolver->AddRuleFromString("EXCLUDE *.google.com")); in TEST()
[all …]
Dsingle_request_host_resolver_unittest.cc71 MockHostResolver resolver; in TEST() local
72 resolver.rules()->AddIPLiteralRule("watsup", "199.188.1.166", std::string()); in TEST()
74 SingleRequestHostResolver single_request_resolver(&resolver); in TEST()
92 HangingHostResolver resolver; in TEST() local
95 SingleRequestHostResolver single_request_resolver(&resolver); in TEST()
107 EXPECT_TRUE(resolver.has_outstanding_request()); in TEST()
112 EXPECT_FALSE(resolver.has_outstanding_request()); in TEST()
118 HangingHostResolver resolver; in TEST() local
119 SingleRequestHostResolver single_request_resolver(&resolver); in TEST()
Ddns_config_watcher_mac.cc93 dns_resolver_t* resolver = dns_config->resolver[i]; in CheckDnsConfig() local
94 if (!resolver->n_nameserver) in CheckDnsConfig()
96 if (resolver->options && !strcmp(resolver->options, "mdns")) in CheckDnsConfig()
/external/chromium_org/third_party/WebKit/Source/core/rendering/line/
DLineBreaker.cpp30 void LineBreaker::skipLeadingWhitespace(InlineBidiResolver& resolver, LineInfo& lineInfo, in skipLeadingWhitespace() argument
33 …while (!resolver.position().atEnd() && !requiresLineBox(resolver.position(), lineInfo, LeadingWhit… in skipLeadingWhitespace()
34 RenderObject* object = resolver.position().object(); in skipLeadingWhitespace()
38 resolver.runs().addRun(createRun(0, 1, object, resolver)); in skipLeadingWhitespace()
48 resolver.position().increment(&resolver); in skipLeadingWhitespace()
50 resolver.commitExplicitEmbedding(); in skipLeadingWhitespace()
60 InlineIterator LineBreaker::nextLineBreak(InlineBidiResolver& resolver, LineInfo& lineInfo, RenderT… in nextLineBreak() argument
64 ASSERT(resolver.position().root() == m_block); in nextLineBreak()
66 bool appliedStartWidth = resolver.position().offset() > 0; in nextLineBreak()
70 skipLeadingWhitespace(resolver, lineInfo, lastFloatFromPreviousLine, width); in nextLineBreak()
[all …]
/external/chromium_org/sandbox/win/src/
Dservice_resolver_unittest.cc90 sandbox::ServiceResolverThunk* resolver) { in PatchNtdllWithResolver() argument
102 static_cast<WinXpResolverTest*>(resolver)->set_target(service); in PatchNtdllWithResolver()
105 void* function_entry = resolver; in PatchNtdllWithResolver()
106 size_t thunk_size = resolver->GetThunkSize(); in PatchNtdllWithResolver()
110 resolver->AllowLocalPatches(); in PatchNtdllWithResolver()
112 NTSTATUS ret = resolver->Setup(ntdll_base, NULL, function, NULL, in PatchNtdllWithResolver()
123 ret = resolver->Setup(ntdll_base, NULL, function, NULL, function_entry, in PatchNtdllWithResolver()
151 sandbox::ServiceResolverThunk* resolver = GetTestResolver(relaxed); in PatchNtdll() local
153 NTSTATUS ret = PatchNtdllWithResolver(function, relaxed, resolver); in PatchNtdll()
154 delete resolver; in PatchNtdll()
[all …]
/external/chromium_org/third_party/WebKit/Source/modules/serviceworkers/
DServiceWorkerContainer.cpp82 …RefPtr<ScriptPromiseResolverWithContext> resolver = ScriptPromiseResolverWithContext::create(scrip… in registerServiceWorker() local
83 ScriptPromise promise = resolver->promise(); in registerServiceWorker()
86resolver->reject(DOMException::create(InvalidStateError, "No associated provider is available")); in registerServiceWorker()
95resolver->reject(DOMException::create(SecurityError, "Can only register for patterns in the docume… in registerServiceWorker()
102resolver->reject(DOMException::create(SecurityError, "Script must be in document's origin.")); in registerServiceWorker()
106 …er(patternURL, scriptURL, new CallbackPromiseAdapter<ServiceWorker, ServiceWorkerError>(resolver)); in registerServiceWorker()
113 … static V8UndefinedType from(ScriptPromiseResolverWithContext* resolver, WebServiceWorker* worker) in from() argument
126 …RefPtr<ScriptPromiseResolverWithContext> resolver = ScriptPromiseResolverWithContext::create(scrip… in unregisterServiceWorker() local
127 ScriptPromise promise = resolver->promise(); in unregisterServiceWorker()
130resolver->reject(DOMException::create(InvalidStateError, "No associated provider is available")); in unregisterServiceWorker()
[all …]
/external/chromium_org/third_party/WebKit/Source/core/rendering/
DInlineIterator.h286 …enderObject* bidiFirstSkippingEmptyInlines(RenderBlockFlow* root, InlineBidiResolver* resolver = 0)
293 notifyObserverEnteredObject(resolver, o);
295 o = bidiNextSkippingEmptyInlines(root, o, resolver);
298 if (resolver)
299 resolver->commitExplicitEmbedding();
306 o = bidiNextSkippingEmptyInlines(root, o, resolver);
308 if (resolver)
309 resolver->commitExplicitEmbedding();
379 inline void InlineIterator::increment(InlineBidiResolver* resolver, IncrementRule rule) in increment() argument
385 && resolver && resolver->inIsolate() in increment()
[all …]
/external/chromium_org/chrome/common/local_discovery/
Dlocal_domain_resolver_unittest.cc102 LocalDomainResolverImpl resolver( in TEST_F() local
109 resolver.Start(); in TEST_F()
117 LocalDomainResolverImpl resolver( in TEST_F() local
124 resolver.Start(); in TEST_F()
132 LocalDomainResolverImpl resolver( in TEST_F() local
139 resolver.Start(); in TEST_F()
150 LocalDomainResolverImpl resolver( in TEST_F() local
157 resolver.Start(); in TEST_F()
167 LocalDomainResolverImpl resolver( in TEST_F() local
174 resolver.Start(); in TEST_F()
/external/chromium_org/third_party/WebKit/Source/modules/quota/
DStorageQuota.cpp89 …RefPtr<ScriptPromiseResolverWithContext> resolver = ScriptPromiseResolverWithContext::create(scrip… in queryInfo() local
90 ScriptPromise promise = resolver->promise(); in queryInfo()
94 resolver->reject(DOMError::create(NotSupportedError)); in queryInfo()
99 OwnPtr<StorageQuotaCallbacks> callbacks = StorageQuotaCallbacksImpl::create(resolver); in queryInfo()
108 RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptState); in requestPersistentQuota() local
109 ScriptPromise promise = resolver->promise(); in requestPersistentQuota()
110 resolver->reject(DOMError::create(NotSupportedError)); in requestPersistentQuota()
/external/apache-xml/src/main/java/org/apache/xpath/jaxp/
DJAXPExtensionsProvider.java46 private final XPathFunctionResolver resolver; field in JAXPExtensionsProvider
49 public JAXPExtensionsProvider(XPathFunctionResolver resolver) { in JAXPExtensionsProvider() argument
50 this.resolver = resolver; in JAXPExtensionsProvider()
54 public JAXPExtensionsProvider(XPathFunctionResolver resolver, in JAXPExtensionsProvider() argument
56 this.resolver = resolver; in JAXPExtensionsProvider()
76 resolver.resolveFunction ( myQName, 0 ); in functionAvailable()
128 resolver.resolveFunction ( myQName, arity ); in extFunction()
180 resolver.resolveFunction( myQName, arity ); in extFunction()
DJAXPVariableStack.java42 private final XPathVariableResolver resolver; field in JAXPVariableStack
44 public JAXPVariableStack(XPathVariableResolver resolver) { in JAXPVariableStack() argument
46 this.resolver = resolver; in JAXPVariableStack()
63 Object varValue = resolver.resolveVariable( name ); in getVariableOrParam()
DXPathFactoryImpl.java224 public void setXPathFunctionResolver(XPathFunctionResolver resolver) { in setXPathFunctionResolver() argument
227 if (resolver == null) { in setXPathFunctionResolver()
234 xPathFunctionResolver = resolver; in setXPathFunctionResolver()
250 public void setXPathVariableResolver(XPathVariableResolver resolver) { in setXPathVariableResolver() argument
253 if (resolver == null) { in setXPathVariableResolver()
260 xPathVariableResolver = resolver; in setXPathVariableResolver()
/external/chromium_org/chrome/browser/extensions/api/push_messaging/
Dpush_messaging_canary_test.cc103 scoped_refptr<net::RuleBasedHostResolverProc> resolver = in EnableDNSLookupForThisTest() local
105 resolver->AllowDirectLookup("*.google.com"); in EnableDNSLookupForThisTest()
109 resolver->AllowDirectLookup("*.thawte.com"); in EnableDNSLookupForThisTest()
110 resolver->AllowDirectLookup("*.geotrust.com"); in EnableDNSLookupForThisTest()
111 resolver->AllowDirectLookup("*.gstatic.com"); in EnableDNSLookupForThisTest()
112 resolver->AllowDirectLookup("*.googleapis.com"); in EnableDNSLookupForThisTest()
114 new net::ScopedDefaultHostResolverProc(resolver.get())); in EnableDNSLookupForThisTest()
/external/chromium_org/third_party/WebKit/Source/bindings/v8/
DScriptPromiseTest.cpp103 RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptState()); in TEST_F() local
104 ScriptPromise promise = resolver->promise(); in TEST_F()
113 resolver->resolve("hello"); in TEST_F()
126 RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptState()); in TEST_F() local
127 ScriptPromise promise = resolver->promise(); in TEST_F()
129 resolver->resolve("hello"); in TEST_F()
144 RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptState()); in TEST_F() local
145 ScriptPromise promise = resolver->promise(); in TEST_F()
154 resolver->reject("hello"); in TEST_F()
167 RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptState()); in TEST_F() local
[all …]
/external/chromium_org/chrome/browser/chromeos/login/auth/
Dparallel_authenticator.cc51 scoped_refptr<ParallelAuthenticator> resolver, in TriggerResolve() argument
56 resolver->Resolve(); in TriggerResolve()
61 scoped_refptr<ParallelAuthenticator> resolver, in TriggerResolveHash() argument
69 resolver->Resolve(); in TriggerResolveHash()
76 scoped_refptr<ParallelAuthenticator> resolver, in TriggerResolveWithLoginTimeMarker() argument
80 TriggerResolve(attempt, resolver, success, return_code); in TriggerResolveWithLoginTimeMarker()
85 scoped_refptr<ParallelAuthenticator> resolver, in Mount() argument
104 resolver)); in Mount()
109 resolver)); in Mount()
114 scoped_refptr<ParallelAuthenticator> resolver) { in MountGuest() argument
[all …]
/external/chromium_org/third_party/WebKit/Source/core/css/resolver/
DStyleResolverStats.h73 …ine INCREMENT_STYLE_STATS_COUNTER(resolver, counter) ((resolver).stats() && ++(resolver).stats()->… argument
/external/chromium_org/chrome/browser/chromeos/login/managed/
Dmanaged_user_authenticator.cc30 scoped_refptr<ManagedUserAuthenticator> resolver, in TriggerResolve() argument
35 resolver->Resolve(); in TriggerResolve()
40 scoped_refptr<ManagedUserAuthenticator> resolver, in TriggerResolveResult() argument
45 resolver->Resolve(); in TriggerResolveResult()
52 scoped_refptr<ManagedUserAuthenticator> resolver, in TriggerResolveWithLoginTimeMarker() argument
56 TriggerResolve(attempt, resolver, success, return_code); in TriggerResolveWithLoginTimeMarker()
61 scoped_refptr<ManagedUserAuthenticator> resolver, in Mount() argument
77 resolver)); in Mount()
81 base::Bind(&TriggerResolveResult, attempt, resolver)); in Mount()
86 scoped_refptr<ManagedUserAuthenticator> resolver, in AddKey() argument
[all …]

12345678910