summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/url_request/url_request_unittest.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/net/url_request/url_request_unittest.cc b/net/url_request/url_request_unittest.cc
index 6ceebc0..d18ffeb 100644
--- a/net/url_request/url_request_unittest.cc
+++ b/net/url_request/url_request_unittest.cc
@@ -1933,6 +1933,23 @@ class URLRequestTestFTP : public URLRequestTest {
// static
scoped_refptr<FTPTestServer> URLRequestTestFTP::server_;
+TEST_F(URLRequestTestFTP, FTPDirectoryListing) {
+ ASSERT_TRUE(NULL != server_.get());
+ TestDelegate d;
+ {
+ TestURLRequest r(server_->TestServerPage("/"), &d);
+ r.Start();
+ EXPECT_TRUE(r.is_pending());
+
+ MessageLoop::current()->Run();
+
+ EXPECT_FALSE(r.is_pending());
+ EXPECT_EQ(1, d.response_started_count());
+ EXPECT_FALSE(d.received_data_before_response());
+ EXPECT_LT(0, d.bytes_received());
+ }
+}
+
TEST_F(URLRequestTestFTP, FTPGetTestAnonymous) {
ASSERT_TRUE(NULL != server_.get());
FilePath app_path;