OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 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 | 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 "chrome/test/in_process_browser_test.h" | 5 #include "chrome/test/in_process_browser_test.h" |
6 #include "chrome/test/ui_test_utils.h" | 6 #include "chrome/test/ui_test_utils.h" |
7 #include "net/url_request/url_request_unittest.h" | 7 #include "net/test/test_server.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
9 | 9 |
10 class FtpBrowserTest : public InProcessBrowserTest { | 10 class FtpBrowserTest : public InProcessBrowserTest { |
11 public: | 11 public: |
12 FtpBrowserTest() : server_(FTPTestServer::CreateServer(L"")) { | 12 FtpBrowserTest() : server_(net::FTPTestServer::CreateServer(L"")) { |
13 } | 13 } |
14 | 14 |
15 protected: | 15 protected: |
16 scoped_refptr<FTPTestServer> server_; | 16 scoped_refptr<net::FTPTestServer> server_; |
17 }; | 17 }; |
18 | 18 |
19 IN_PROC_BROWSER_TEST_F(FtpBrowserTest, DirectoryListing) { | 19 IN_PROC_BROWSER_TEST_F(FtpBrowserTest, DirectoryListing) { |
20 ASSERT_TRUE(NULL != server_.get()); | 20 ASSERT_TRUE(NULL != server_.get()); |
21 ui_test_utils::NavigateToURL(browser(), server_->TestServerPage("/")); | 21 ui_test_utils::NavigateToURL(browser(), server_->TestServerPage("/")); |
22 // TODO(phajdan.jr): test more things. | 22 // TODO(phajdan.jr): test more things. |
23 } | 23 } |
OLD | NEW |