blob: 791a0e2e0ee930a4b72a13eab6eee62530bcb49d (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
|
// Copyright (c) 2012 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_BROWSER_UI_WEBUI_NET_INTERNALS_NET_INTERNALS_UI_BROWSERTEST_H_
#define CHROME_BROWSER_UI_WEBUI_NET_INTERNALS_NET_INTERNALS_UI_BROWSERTEST_H_
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "chrome/test/base/web_ui_browser_test.h"
class GURL;
namespace base {
class ListValue;
} // namespace base
class NetInternalsTest : public WebUIBrowserTest {
protected:
NetInternalsTest();
~NetInternalsTest() override;
private:
class MessageHandler;
// InProcessBrowserTest overrides.
void SetUpCommandLine(base::CommandLine* command_line) override;
void SetUpOnMainThread() override;
// WebUIBrowserTest implementation.
content::WebUIMessageHandler* GetMockMessageHandler() override;
GURL CreatePrerenderLoaderUrl(const GURL& prerender_url);
// Attempts to start the test server. Returns true on success or if the
// TestServer is already started.
bool StartTestServer();
scoped_ptr<MessageHandler> message_handler_;
// True if the test server has already been successfully started.
bool test_server_started_;
DISALLOW_COPY_AND_ASSIGN(NetInternalsTest);
};
#endif // CHROME_BROWSER_UI_WEBUI_NET_INTERNALS_NET_INTERNALS_UI_BROWSERTEST_H_
|