1 // Copyright (c) 2012 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.
5 #ifndef CHROME_BROWSER_UI_WEBUI_NET_INTERNALS_NET_INTERNALS_UI_BROWSERTEST_H_
6 #define CHROME_BROWSER_UI_WEBUI_NET_INTERNALS_NET_INTERNALS_UI_BROWSERTEST_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/test/base/web_ui_browser_test.h"
17 class NetInternalsTest
: public WebUIBrowserTest
{
20 ~NetInternalsTest() override
;
25 // InProcessBrowserTest overrides.
26 void SetUpCommandLine(base::CommandLine
* command_line
) override
;
27 void SetUpOnMainThread() override
;
29 // WebUIBrowserTest implementation.
30 content::WebUIMessageHandler
* GetMockMessageHandler() override
;
32 GURL
CreatePrerenderLoaderUrl(const GURL
& prerender_url
);
34 // Attempts to start the test server. Returns true on success or if the
35 // TestServer is already started.
36 bool StartTestServer();
38 scoped_ptr
<MessageHandler
> message_handler_
;
40 // True if the test server has already been successfully started.
41 bool test_server_started_
;
43 DISALLOW_COPY_AND_ASSIGN(NetInternalsTest
);
46 #endif // CHROME_BROWSER_UI_WEBUI_NET_INTERNALS_NET_INTERNALS_UI_BROWSERTEST_H_