Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: content/browser/renderer_host/render_process_host_browsertest.h

Issue 9328011: Adding a command line flag to specify renderer process limit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding unit test for the command line parameter Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_BROWSERTEST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_BROWSERTEST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_BROWSERTEST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_BROWSERTEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/command_line.h"
9 #include "base/process.h" 10 #include "base/process.h"
10 #include "chrome/test/base/in_process_browser_test.h" 11 #include "chrome/test/base/in_process_browser_test.h"
12 #include "content/public/common/content_switches.h"
11 13
12 14
13 class GURL; 15 class GURL;
14 16
15 class RenderProcessHostTest : public InProcessBrowserTest { 17 class RenderProcessHostTest : public InProcessBrowserTest {
16 public: 18 public:
17 RenderProcessHostTest(); 19 RenderProcessHostTest();
18 20
19 int RenderProcessHostCount(); 21 int RenderProcessHostCount();
20 base::ProcessHandle ShowSingletonTab(const GURL& page); 22 base::ProcessHandle ShowSingletonTab(const GURL& page);
23 void TestProcessOverflow();
24 };
25
26 class RenderProcessHostTestWithCommandLine : public RenderProcessHostTest {
27 protected:
28 virtual void SetUpCommandLine(CommandLine* command_line) {
29 InProcessBrowserTest::SetUpCommandLine(command_line);
30 command_line->AppendSwitchASCII(switches::kRendererProcessLimit, "1");
31 }
21 }; 32 };
22 33
23 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_BROWSERTEST_H_ 34 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_BROWSERTEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698