blob: b902e09dd3a155c33520607a455367c164bc78ab (
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
28
29
30
31
32
|
// Copyright (c) 2010 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 <windows.h>
#include <string>
#include "googleurl/src/gurl.h"
#include "base/ref_counted.h"
#include "net/url_request/url_request_unittest.h"
class FilePath;
// 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);
FilePath GetDataDir();
HTTPTestServer* server() { return server_; }
protected:
scoped_refptr<HTTPTestServer> server_;
};
#endif // CHROME_FRAME_TEST_HTTP_SERVER_H_
|