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

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

Issue 3034038: GTTF: Move more test server code from net/url_request/url_request_unittest.h (Closed)
Patch Set: hopefully final Created 10 years, 4 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) 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 }
OLDNEW
« no previous file with comments | « chrome/browser/net/cookie_policy_browsertest.cc ('k') | chrome/browser/notifications/notifications_interactive_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698