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

Side by Side Diff: content/browser/security_exploit_browsertest.cc

Issue 23316003: [content shell] move browser process stuff into browser/ subdir (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #include "base/command_line.h" 5 #include "base/command_line.h"
6 #include "content/browser/renderer_host/render_view_host_impl.h" 6 #include "content/browser/renderer_host/render_view_host_impl.h"
7 #include "content/browser/web_contents/web_contents_impl.h" 7 #include "content/browser/web_contents/web_contents_impl.h"
8 #include "content/public/browser/notification_service.h" 8 #include "content/public/browser/notification_service.h"
9 #include "content/public/browser/notification_types.h" 9 #include "content/public/browser/notification_types.h"
10 #include "content/public/common/content_switches.h" 10 #include "content/public/common/content_switches.h"
11 #include "content/public/test/test_utils.h" 11 #include "content/public/test/test_utils.h"
12 #include "content/shell/shell.h" 12 #include "content/shell/browser/shell.h"
13 #include "content/test/content_browser_test.h" 13 #include "content/test/content_browser_test.h"
14 #include "content/test/content_browser_test_utils.h" 14 #include "content/test/content_browser_test_utils.h"
15 15
16 namespace content { 16 namespace content {
17 17
18 // The goal of these tests will be to "simulate" exploited renderer processes, 18 // The goal of these tests will be to "simulate" exploited renderer processes,
19 // which can send arbitrary IPC messages and confuse browser process internal 19 // which can send arbitrary IPC messages and confuse browser process internal
20 // state, leading to security bugs. We are trying to verify that the browser 20 // state, leading to security bugs. We are trying to verify that the browser
21 // doesn't perform any dangerous operations in such cases. 21 // doesn't perform any dangerous operations in such cases.
22 class SecurityExploitBrowserTest : public ContentBrowserTest { 22 class SecurityExploitBrowserTest : public ContentBrowserTest {
(...skipping 23 matching lines...) Expand all
46 46
47 content::WindowedNotificationObserver terminated( 47 content::WindowedNotificationObserver terminated(
48 content::NOTIFICATION_RENDERER_PROCESS_CLOSED, 48 content::NOTIFICATION_RENDERER_PROCESS_CLOSED,
49 content::NotificationService::AllSources()); 49 content::NotificationService::AllSources());
50 shell()->web_contents()->GetRenderViewHost()->SetWebUIProperty( 50 shell()->web_contents()->GetRenderViewHost()->SetWebUIProperty(
51 "toolkit", "views"); 51 "toolkit", "views");
52 terminated.Wait(); 52 terminated.Wait();
53 } 53 }
54 54
55 } 55 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698