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

Unified Diff: content/browser/child_process_security_policy_browsertest.cc

Issue 11340029: Move remaining files in content\browser to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 2 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/child_process_security_policy_browsertest.cc
===================================================================
--- content/browser/child_process_security_policy_browsertest.cc (revision 164795)
+++ content/browser/child_process_security_policy_browsertest.cc (working copy)
@@ -16,8 +16,10 @@
#include "content/test/content_browser_test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
+namespace content {
+
class ChildProcessSecurityPolicyInProcessBrowserTest
- : public content::ContentBrowserTest {
+ : public ContentBrowserTest {
public:
virtual void SetUp() {
EXPECT_EQ(
@@ -39,19 +41,21 @@
#else
IN_PROC_BROWSER_TEST_F(ChildProcessSecurityPolicyInProcessBrowserTest, NoLeak) {
#endif
- GURL url = content::GetTestUrl("", "simple_page.html");
+ GURL url = GetTestUrl("", "simple_page.html");
- content::NavigateToURL(shell(), url);
+ NavigateToURL(shell(), url);
EXPECT_EQ(
ChildProcessSecurityPolicyImpl::GetInstance()->security_state_.size(),
1U);
- content::WebContents* web_contents = shell()->web_contents();
+ WebContents* web_contents = shell()->web_contents();
base::KillProcess(web_contents->GetRenderProcessHost()->GetHandle(),
- content::RESULT_CODE_KILLED, true);
+ RESULT_CODE_KILLED, true);
web_contents->GetController().Reload(true);
EXPECT_EQ(
1U,
ChildProcessSecurityPolicyImpl::GetInstance()->security_state_.size());
}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698