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

Unified Diff: content/browser/renderer_host/render_process_host_browsertest.cc

Issue 1133243003: Remove Win32k fieldtrial, flag and switches, and make default enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo Created 5 years, 7 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
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_process_host_browsertest.cc
diff --git a/content/browser/renderer_host/render_process_host_browsertest.cc b/content/browser/renderer_host/render_process_host_browsertest.cc
index 126d933ca5c1de52390f38e6c1006c3eb85ef6d6..99247b2cea5e7505c637d4681c47ce12f703fe62 100644
--- a/content/browser/renderer_host/render_process_host_browsertest.cc
+++ b/content/browser/renderer_host/render_process_host_browsertest.cc
@@ -197,42 +197,5 @@ IN_PROC_BROWSER_TEST_F(RenderProcessHostTest,
}
}
-#if defined(OS_WIN)
-// Provides functionality to test renderer processes with the Win32K lockdown
-// process mitigation.
-class Win32KLockdownRendererProcessHostTest : public RenderProcessHostTest {
- public:
- Win32KLockdownRendererProcessHostTest() {}
-
- ~Win32KLockdownRendererProcessHostTest() override {}
-
- protected:
- void SetUp() override {
- base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
- command_line->AppendSwitch(switches::kEnableWin32kRendererLockDown);
- RenderProcessHostTest::SetUp();
- }
-
- private:
- DISALLOW_COPY_AND_ASSIGN(Win32KLockdownRendererProcessHostTest);
-};
-
-// Tests whether navigation requests with the Win32K lockdown mitigation set
-// work correctly.
-IN_PROC_BROWSER_TEST_F(Win32KLockdownRendererProcessHostTest,
- RendererWin32KLockdownNavigationTest) {
- if (base::win::GetVersion() < base::win::VERSION_WIN8)
- return;
-
- ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady());
-
- GURL test_url = embedded_test_server()->GetURL("/simple_page.html");
- NavigateToURL(shell(), test_url);
-
- EXPECT_EQ(1, RenderProcessHostCount());
- EXPECT_EQ(0, process_exits_);
-}
-#endif
-
} // namespace
} // namespace content
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698