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

Side by Side Diff: net/proxy/mojo_proxy_resolver_impl_unittest.cc

Issue 955263002: Rename mojo_type_converters.* to mojo_{host,proxy}_type_converters.* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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
« no previous file with comments | « net/proxy/mojo_proxy_resolver_impl.cc ('k') | net/proxy/mojo_proxy_type_converters.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "net/proxy/mojo_proxy_resolver_impl.h" 5 #include "net/proxy/mojo_proxy_resolver_impl.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "net/base/net_errors.h" 12 #include "net/base/net_errors.h"
13 #include "net/proxy/mock_proxy_resolver.h" 13 #include "net/proxy/mock_proxy_resolver.h"
14 #include "net/proxy/mojo_type_converters.h" 14 #include "net/proxy/mojo_proxy_type_converters.h"
15 #include "net/proxy/proxy_info.h" 15 #include "net/proxy/proxy_info.h"
16 #include "net/proxy/proxy_server.h" 16 #include "net/proxy/proxy_server.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h" 18 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h"
19 #include "third_party/mojo/src/mojo/public/cpp/bindings/error_handler.h" 19 #include "third_party/mojo/src/mojo/public/cpp/bindings/error_handler.h"
20 20
21 namespace net { 21 namespace net {
22 namespace { 22 namespace {
23 23
24 class TestRequestClient : public interfaces::ProxyResolverRequestClient, 24 class TestRequestClient : public interfaces::ProxyResolverRequestClient,
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 resolver_->GetProxyForUrl("http://example.com", client_ptr.Pass()); 407 resolver_->GetProxyForUrl("http://example.com", client_ptr.Pass());
408 resolver_->SetPacScript("pac script", base::Bind(&Fail)); 408 resolver_->SetPacScript("pac script", base::Bind(&Fail));
409 ASSERT_EQ(1u, mock_proxy_resolver_->pending_requests().size()); 409 ASSERT_EQ(1u, mock_proxy_resolver_->pending_requests().size());
410 scoped_refptr<MockAsyncProxyResolverBase::Request> request = 410 scoped_refptr<MockAsyncProxyResolverBase::Request> request =
411 mock_proxy_resolver_->pending_requests()[0]; 411 mock_proxy_resolver_->pending_requests()[0];
412 resolver_.reset(); 412 resolver_.reset();
413 client.WaitForConnectionError(); 413 client.WaitForConnectionError();
414 } 414 }
415 415
416 } // namespace net 416 } // namespace net
OLDNEW
« no previous file with comments | « net/proxy/mojo_proxy_resolver_impl.cc ('k') | net/proxy/mojo_proxy_type_converters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698