1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "chrome/test/in_process_browser_test.h" 6 #include "chrome/test/ui_test_utils.h" 7 #include "googleurl/src/gurl.h" 8 #include "net/test/test_server.h" 9 #include "testing/gtest/include/gtest/gtest.h" 10 11 class FtpBrowserTest : public InProcessBrowserTest { 12 public: 13 FtpBrowserTest() : ftp_server_(net::TestServer::TYPE_FTP, FilePath()) { 14 } 15 16 protected: 17 net::TestServer ftp_server_; 18 }; 19 20 IN_PROC_BROWSER_TEST_F(FtpBrowserTest, DirectoryListing) { 21 ASSERT_TRUE(ftp_server_.Start()); 22 ui_test_utils::NavigateToURL(browser(), ftp_server_.GetURL("/")); 23 // TODO(phajdan.jr): test more things. 24 } 25