Home | History | Annotate | Download | only in net
      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
      3 // found in the LICENSE file.
      4 
      5 #include "chrome/test/base/in_process_browser_test.h"
      6 #include "chrome/test/base/ui_test_utils.h"
      7 #include "net/test/spawned_test_server/spawned_test_server.h"
      8 #include "testing/gtest/include/gtest/gtest.h"
      9 #include "url/gurl.h"
     10 
     11 class FtpBrowserTest : public InProcessBrowserTest {
     12  public:
     13   FtpBrowserTest()
     14       : ftp_server_(net::SpawnedTestServer::TYPE_FTP,
     15                     net::SpawnedTestServer::kLocalhost,
     16                     base::FilePath()) {
     17   }
     18 
     19  protected:
     20   net::SpawnedTestServer ftp_server_;
     21 };
     22 
     23 IN_PROC_BROWSER_TEST_F(FtpBrowserTest, DirectoryListing) {
     24   ASSERT_TRUE(ftp_server_.Start());
     25   ui_test_utils::NavigateToURL(browser(), ftp_server_.GetURL("/"));
     26   // TODO(phajdan.jr): test more things.
     27 }
     28