blob: a48bd628c2807355fc19043ab4e47425cd757625 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// Copyright (c) 2012 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/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "googleurl/src/gurl.h"
#include "net/test/test_server.h"
#include "testing/gtest/include/gtest/gtest.h"
class FtpBrowserTest : public InProcessBrowserTest {
public:
FtpBrowserTest()
: ftp_server_(net::TestServer::TYPE_FTP,
net::TestServer::kLocalhost,
FilePath()) {
}
protected:
net::TestServer ftp_server_;
};
IN_PROC_BROWSER_TEST_F(FtpBrowserTest, DirectoryListing) {
ASSERT_TRUE(ftp_server_.Start());
ui_test_utils::NavigateToURL(browser(), ftp_server_.GetURL("/"));
// TODO(phajdan.jr): test more things.
}
|