From f781782dd67077478e117c61dca4ea5eefce3544 Mon Sep 17 00:00:00 2001 From: "slightlyoff@chromium.org" Date: Thu, 24 Sep 2009 05:11:58 +0000 Subject: Initial import of the Chrome Frame codebase. Integration in chrome.gyp coming in a separate CL. BUG=None TEST=None Review URL: http://codereview.chromium.org/218019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27042 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome_frame/test/http_server.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 chrome_frame/test/http_server.h (limited to 'chrome_frame/test/http_server.h') diff --git a/chrome_frame/test/http_server.h b/chrome_frame/test/http_server.h new file mode 100644 index 0000000..acac5b5 --- /dev/null +++ b/chrome_frame/test/http_server.h @@ -0,0 +1,32 @@ +// Copyright (c) 2006-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. +#ifndef CHROME_FRAME_TEST_HTTP_SERVER_H_ +#define CHROME_FRAME_TEST_HTTP_SERVER_H_ + +#include +#include + +#include "googleurl/src/gurl.h" +#include "base/ref_counted.h" +#include "net/url_request/url_request_unittest.h" + +// chrome frame specilization of http server from net. +class ChromeFrameHTTPServer { + public: + void SetUp(); + void TearDown(); + bool WaitToFinish(int milliseconds); + GURL Resolve(const wchar_t* relative_url); + std::wstring GetDataDir(); + + HTTPTestServer* server() { + return server_; + } + + protected: + scoped_refptr server_; +}; + +#endif // CHROME_FRAME_TEST_HTTP_SERVER_H_ + -- cgit v1.1