OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 #ifndef CHROME_FRAME_TEST_HTTP_SERVER_H_ |
| 5 #define CHROME_FRAME_TEST_HTTP_SERVER_H_ |
| 6 |
| 7 #include <windows.h> |
| 8 #include <string> |
| 9 |
| 10 #include "googleurl/src/gurl.h" |
| 11 #include "base/ref_counted.h" |
| 12 #include "net/url_request/url_request_unittest.h" |
| 13 |
| 14 // chrome frame specilization of http server from net. |
| 15 class ChromeFrameHTTPServer { |
| 16 public: |
| 17 void SetUp(); |
| 18 void TearDown(); |
| 19 bool WaitToFinish(int milliseconds); |
| 20 GURL Resolve(const wchar_t* relative_url); |
| 21 std::wstring GetDataDir(); |
| 22 |
| 23 HTTPTestServer* server() { |
| 24 return server_; |
| 25 } |
| 26 |
| 27 protected: |
| 28 scoped_refptr<HTTPTestServer> server_; |
| 29 }; |
| 30 |
| 31 #endif // CHROME_FRAME_TEST_HTTP_SERVER_H_ |
| 32 |
OLD | NEW |