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_browsertest.h"
17 class NetInternalsTest
: public WebUIBrowserTest
{
20 virtual ~NetInternalsTest();
25 // InProcessBrowserTest overrides.
26 virtual void SetUp() OVERRIDE
;
27 virtual void SetUpCommandLine(CommandLine
* command_line
) OVERRIDE
;
28 virtual void SetUpOnMainThread() OVERRIDE
;
30 // WebUIBrowserTest implementation.
31 virtual content::WebUIMessageHandler
* GetMockMessageHandler() OVERRIDE
;
33 GURL
CreatePrerenderLoaderUrl(const GURL
& prerender_url
);
35 // Attempts to start the test server. Returns true on success or if the
36 // TestServer is already started.
37 bool StartTestServer();
39 scoped_ptr
<MessageHandler
> message_handler_
;
41 // True if the test server has already been successfully started.
42 bool test_server_started_
;
44 DISALLOW_COPY_AND_ASSIGN(NetInternalsTest
);
47 #endif // CHROME_BROWSER_UI_WEBUI_NET_INTERNALS_NET_INTERNALS_UI_BROWSERTEST_H_