diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-23 21:07:07 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-23 21:07:07 +0000 |
commit | b297c5de56e19726064c128574d69fffbd465a18 (patch) | |
tree | 2819322760f18a34053cd6ce385bd632cc899382 /chrome/browser/net/ftp_browsertest.cc | |
parent | cb3f30178b2065ec440c6c840ea3c45d0bbeb61c (diff) | |
download | chromium_src-b297c5de56e19726064c128574d69fffbd465a18.zip chromium_src-b297c5de56e19726064c128574d69fffbd465a18.tar.gz chromium_src-b297c5de56e19726064c128574d69fffbd465a18.tar.bz2 |
Add a very basic test for FTP directory listing, browser side.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/220015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26982 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/ftp_browsertest.cc')
-rw-r--r-- | chrome/browser/net/ftp_browsertest.cc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/chrome/browser/net/ftp_browsertest.cc b/chrome/browser/net/ftp_browsertest.cc new file mode 100644 index 0000000..3f23e00 --- /dev/null +++ b/chrome/browser/net/ftp_browsertest.cc @@ -0,0 +1,23 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "chrome/test/in_process_browser_test.h" +#include "chrome/test/ui_test_utils.h" +#include "net/url_request/url_request_unittest.h" +#include "testing/gtest/include/gtest/gtest.h" + +class FtpBrowserTest : public InProcessBrowserTest { + public: + FtpBrowserTest() : server_(FTPTestServer::CreateServer(L"")) { + } + + protected: + scoped_refptr<FTPTestServer> server_; +}; + +IN_PROC_BROWSER_TEST_F(FtpBrowserTest, DirectoryListing) { + ASSERT_TRUE(NULL != server_.get()); + ui_test_utils::NavigateToURL(browser(), server_->TestServerPage("/")); + // TODO(phajdan.jr): test more things. +} |