blob: a6dae20b7b4251665cc3a047ba5b96dfcf9fa14e (
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
33
34
|
// 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/test/test_server.h"
class FilePath;
// Chrome Frame specilization of http server from net.
class ChromeFrameHTTPServer {
public:
ChromeFrameHTTPServer();
void SetUp();
void TearDown();
bool WaitToFinish(int milliseconds);
GURL Resolve(const wchar_t* relative_url);
FilePath GetDataDir();
net::TestServer* test_server() { return &test_server_; }
protected:
net::TestServer test_server_;
};
#endif // CHROME_FRAME_TEST_HTTP_SERVER_H_
|