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

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

Issue 332313003: Add Finch experiment for selectively bypassing proxies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: callback design (not yet done) Created 6 years, 5 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
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/host_port_pair.h" 10 #include "net/base/host_port_pair.h"
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 job->Start(); 209 job->Start();
210 ASSERT_TRUE(network_layer_.last_transaction()); 210 ASSERT_TRUE(network_layer_.last_transaction());
211 EXPECT_EQ(LOW, network_layer_.last_transaction()->priority()); 211 EXPECT_EQ(LOW, network_layer_.last_transaction()->priority());
212 } 212 }
213 213
214 class URLRequestFtpJobTest : public testing::Test { 214 class URLRequestFtpJobTest : public testing::Test {
215 public: 215 public:
216 URLRequestFtpJobTest() 216 URLRequestFtpJobTest()
217 : request_context_(&socket_factory_, 217 : request_context_(&socket_factory_,
218 new ProxyService( 218 new ProxyService(
219 new SimpleProxyConfigService, NULL, NULL), 219 new SimpleProxyConfigService, NULL, NULL, NULL),
220 &network_delegate_, 220 &network_delegate_,
221 &ftp_transaction_factory_) { 221 &ftp_transaction_factory_) {
222 } 222 }
223 223
224 virtual ~URLRequestFtpJobTest() { 224 virtual ~URLRequestFtpJobTest() {
225 // Clean up any remaining tasks that mess up unrelated tests. 225 // Clean up any remaining tasks that mess up unrelated tests.
226 base::RunLoop run_loop; 226 base::RunLoop run_loop;
227 run_loop.RunUntilIdle(); 227 run_loop.RunUntilIdle();
228 } 228 }
229 229
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 EXPECT_TRUE(url_request2.status().is_success()); 712 EXPECT_TRUE(url_request2.status().is_success());
713 EXPECT_EQ(2, network_delegate()->completed_requests()); 713 EXPECT_EQ(2, network_delegate()->completed_requests());
714 EXPECT_EQ(0, network_delegate()->error_count()); 714 EXPECT_EQ(0, network_delegate()->error_count());
715 EXPECT_FALSE(request_delegate2.auth_required_called()); 715 EXPECT_FALSE(request_delegate2.auth_required_called());
716 EXPECT_EQ("test2.html", request_delegate2.data_received()); 716 EXPECT_EQ("test2.html", request_delegate2.data_received());
717 } 717 }
718 718
719 } // namespace 719 } // namespace
720 720
721 } // namespace net 721 } // namespace net
OLDNEW
« net/proxy/proxy_service.cc ('K') | « net/url_request/url_request_ftp_job.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698