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

Unified Diff: chrome/browser/extensions/extension_apitest.h

Issue 166793003: Allow FTP requests by Chromium extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_apitest.h
diff --git a/chrome/browser/extensions/extension_apitest.h b/chrome/browser/extensions/extension_apitest.h
index 9586f966ad3748b318acec02729a014f31627c09..a6518c65421d346f36c6ea41d6ddd37d475c9908 100644
--- a/chrome/browser/extensions/extension_apitest.h
+++ b/chrome/browser/extensions/extension_apitest.h
@@ -173,6 +173,11 @@ class ExtensionApiTest : public ExtensionBrowserTest {
// chrome.test.getConfig().
bool StartWebSocketServer(const base::FilePath& root_directory);
+ // Start the test FTP server, and store details of its state. Those
+ // details will be available to JavaScript tests using
+ // chrome.test.getConfig().
+ bool StartFTPServer(const base::FilePath& root_directory);
+
// Start the spawned test server, and store details of its state. Those
// details will be available to javascript tests using
// chrome.test.getConfig().
@@ -200,6 +205,9 @@ class ExtensionApiTest : public ExtensionBrowserTest {
// Hold the test WebSocket server.
scoped_ptr<net::SpawnedTestServer> websocket_server_;
+
+ // Hold the test FTP server.
+ scoped_ptr<net::SpawnedTestServer> ftp_server_;
};
#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_
« no previous file with comments | « chrome/browser/extensions/cross_origin_xhr_apitest.cc ('k') | chrome/browser/extensions/extension_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698