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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_process_host_browsertest.h
diff --git a/content/browser/renderer_host/render_process_host_browsertest.h b/content/browser/renderer_host/render_process_host_browsertest.h
index 58d9f512a42f817d9150ba9984e609b26a1ca708..a8405ee5308752f0afcd214185735c37b20a1e82 100644
--- a/content/browser/renderer_host/render_process_host_browsertest.h
+++ b/content/browser/renderer_host/render_process_host_browsertest.h
@@ -6,8 +6,10 @@
#define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_BROWSERTEST_H_
#pragma once
+#include "base/command_line.h"
#include "base/process.h"
#include "chrome/test/base/in_process_browser_test.h"
+#include "content/public/common/content_switches.h"
class GURL;
@@ -18,6 +20,15 @@ class RenderProcessHostTest : public InProcessBrowserTest {
int RenderProcessHostCount();
base::ProcessHandle ShowSingletonTab(const GURL& page);
+ void TestProcessOverflow();
+};
+
+class RenderProcessHostTestWithCommandLine : public RenderProcessHostTest {
+ protected:
+ virtual void SetUpCommandLine(CommandLine* command_line) {
+ InProcessBrowserTest::SetUpCommandLine(command_line);
+ command_line->AppendSwitchASCII(switches::kRendererProcessLimit, "1");
+ }
};
#endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_BROWSERTEST_H_

Powered by Google App Engine
This is Rietveld 408576698