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

Side by Side Diff: chrome/browser/net/ftp_browsertest.cc

Issue 9430050: Remove usage of a deprecated TestServer constructor. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Disentangle test refactoring from TestServer refactoring. Created 8 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/base/in_process_browser_test.h" 5 #include "chrome/test/base/in_process_browser_test.h"
6 #include "chrome/test/base/ui_test_utils.h" 6 #include "chrome/test/base/ui_test_utils.h"
7 #include "googleurl/src/gurl.h" 7 #include "googleurl/src/gurl.h"
8 #include "net/test/test_server.h" 8 #include "net/test/test_server.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 class FtpBrowserTest : public InProcessBrowserTest { 11 class FtpBrowserTest : public InProcessBrowserTest {
12 public: 12 public:
13 FtpBrowserTest() : ftp_server_(net::TestServer::TYPE_FTP, FilePath()) { 13 FtpBrowserTest()
14 : ftp_server_(net::TestServer::TYPE_FTP,
15 net::TestServer::kLocalhost,
16 FilePath()) {
14 } 17 }
15 18
16 protected: 19 protected:
17 net::TestServer ftp_server_; 20 net::TestServer ftp_server_;
18 }; 21 };
19 22
20 IN_PROC_BROWSER_TEST_F(FtpBrowserTest, DirectoryListing) { 23 IN_PROC_BROWSER_TEST_F(FtpBrowserTest, DirectoryListing) {
21 ASSERT_TRUE(ftp_server_.Start()); 24 ASSERT_TRUE(ftp_server_.Start());
22 ui_test_utils::NavigateToURL(browser(), ftp_server_.GetURL("/")); 25 ui_test_utils::NavigateToURL(browser(), ftp_server_.GetURL("/"));
23 // TODO(phajdan.jr): test more things. 26 // TODO(phajdan.jr): test more things.
24 } 27 }
OLDNEW
« no previous file with comments | « chrome/browser/net/connection_tester_unittest.cc ('k') | chrome/browser/net/http_pipelining_compatibility_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698