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

Unified Diff: net/url_request/url_request_unittest.cc

Issue 2428143002: Clean up FtpTransactionFacory ownership. (Closed)
Patch Set: Oops Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: net/url_request/url_request_unittest.cc
diff --git a/net/url_request/url_request_unittest.cc b/net/url_request/url_request_unittest.cc
index 5b98e35153751db431f745e670ecf9a6665be286..3a1442133076776c45a50e443e381fecf57a7d28 100644
--- a/net/url_request/url_request_unittest.cc
+++ b/net/url_request/url_request_unittest.cc
@@ -9858,8 +9858,7 @@ TEST_F(HTTPSCRLSetTest, CRLSetRevoked) {
class URLRequestTestFTP : public URLRequestTest {
public:
URLRequestTestFTP()
- : ftp_transaction_factory_(&host_resolver_),
- ftp_test_server_(SpawnedTestServer::TYPE_FTP,
+ : ftp_test_server_(SpawnedTestServer::TYPE_FTP,
SpawnedTestServer::kLocalhost,
base::FilePath(kTestFilePath)) {
// Can't use |default_context_|'s HostResolver to set up the
@@ -9871,7 +9870,7 @@ class URLRequestTestFTP : public URLRequestTest {
void SetUpFactory() override {
// Add FTP support to the default URLRequestContext.
job_factory_impl_->SetProtocolHandler(
- "ftp", base::MakeUnique<FtpProtocolHandler>(&ftp_transaction_factory_));
+ "ftp", FtpProtocolHandler::Create(&host_resolver_));
}
std::string GetTestFileContents() {
@@ -9886,7 +9885,6 @@ class URLRequestTestFTP : public URLRequestTest {
protected:
MockHostResolver host_resolver_;
eroman 2016/10/19 16:29:51 Note this does mean that now the ftp protocol hand
mmenke 2016/10/19 17:09:35 Added a comment (This was the case with the FtpPro
- FtpNetworkLayer ftp_transaction_factory_;
SpawnedTestServer ftp_test_server_;
};
« net/url_request/ftp_protocol_handler.cc ('K') | « net/url_request/url_request_ftp_job_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698