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

Side by Side Diff: net/url_request/url_request_ftp_job_unittest.cc

Issue 112963005: Update uses of UTF conversions in courgette/, device/, extensions/, google_apis/, gpu/, ipc/, media… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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 | Annotate | Revision Log
« no previous file with comments | « net/url_request/url_request_file_dir_job.cc ('k') | net/url_request/url_request_unittest.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/url_request/url_request_ftp_job.h" 5 #include "net/url_request/url_request_ftp_job.h"
6 6
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "base/memory/scoped_vector.h" 8 #include "base/memory/scoped_vector.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "net/base/request_priority.h" 10 #include "net/base/request_priority.h"
11 #include "net/ftp/ftp_auth_cache.h" 11 #include "net/ftp/ftp_auth_cache.h"
12 #include "net/http/http_transaction_unittest.h" 12 #include "net/http/http_transaction_unittest.h"
13 #include "net/proxy/mock_proxy_resolver.h" 13 #include "net/proxy/mock_proxy_resolver.h"
14 #include "net/proxy/proxy_config_service.h" 14 #include "net/proxy/proxy_config_service.h"
15 #include "net/proxy/proxy_config_service_fixed.h" 15 #include "net/proxy/proxy_config_service_fixed.h"
16 #include "net/socket/socket_test_util.h" 16 #include "net/socket/socket_test_util.h"
17 #include "net/url_request/ftp_protocol_handler.h" 17 #include "net/url_request/ftp_protocol_handler.h"
18 #include "net/url_request/url_request.h" 18 #include "net/url_request/url_request.h"
19 #include "net/url_request/url_request_context.h" 19 #include "net/url_request/url_request_context.h"
20 #include "net/url_request/url_request_job_factory_impl.h" 20 #include "net/url_request/url_request_job_factory_impl.h"
21 #include "net/url_request/url_request_status.h" 21 #include "net/url_request/url_request_status.h"
22 #include "net/url_request/url_request_test_util.h" 22 #include "net/url_request/url_request_test_util.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 #include "url/gurl.h" 24 #include "url/gurl.h"
25 25
26 using base::ASCIIToUTF16;
27
26 namespace net { 28 namespace net {
27 29
28 class FtpTestURLRequestContext : public TestURLRequestContext { 30 class FtpTestURLRequestContext : public TestURLRequestContext {
29 public: 31 public:
30 FtpTestURLRequestContext(ClientSocketFactory* socket_factory, 32 FtpTestURLRequestContext(ClientSocketFactory* socket_factory,
31 ProxyService* proxy_service, 33 ProxyService* proxy_service,
32 NetworkDelegate* network_delegate, 34 NetworkDelegate* network_delegate,
33 FtpTransactionFactory* ftp_transaction_factory) 35 FtpTransactionFactory* ftp_transaction_factory)
34 : TestURLRequestContext(true), 36 : TestURLRequestContext(true),
35 ftp_protocol_handler_(new FtpProtocolHandler(ftp_transaction_factory)) { 37 ftp_protocol_handler_(new FtpProtocolHandler(ftp_transaction_factory)) {
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 EXPECT_TRUE(url_request2.status().is_success()); 705 EXPECT_TRUE(url_request2.status().is_success());
704 EXPECT_EQ(2, network_delegate()->completed_requests()); 706 EXPECT_EQ(2, network_delegate()->completed_requests());
705 EXPECT_EQ(0, network_delegate()->error_count()); 707 EXPECT_EQ(0, network_delegate()->error_count());
706 EXPECT_FALSE(request_delegate2.auth_required_called()); 708 EXPECT_FALSE(request_delegate2.auth_required_called());
707 EXPECT_EQ("test2.html", request_delegate2.data_received()); 709 EXPECT_EQ("test2.html", request_delegate2.data_received());
708 } 710 }
709 711
710 } // namespace 712 } // namespace
711 713
712 } // namespace net 714 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_request_file_dir_job.cc ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698