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

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

Issue 8515027: Define the public version of the browser side RenderProcessHost interface. This interface is not ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 #include <string> 5 #include <string>
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/process_util.h" 9 #include "base/process_util.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
11 #include "chrome/test/base/in_process_browser_test.h" 11 #include "chrome/test/base/in_process_browser_test.h"
12 #include "chrome/test/base/ui_test_utils.h" 12 #include "chrome/test/base/ui_test_utils.h"
13 #include "content/browser/child_process_security_policy.h" 13 #include "content/browser/child_process_security_policy.h"
14 #include "content/browser/renderer_host/render_process_host.h"
15 #include "content/browser/tab_contents/tab_contents.h" 14 #include "content/browser/tab_contents/tab_contents.h"
15 #include "content/public/browser/render_process_host.h"
16 #include "content/public/common/result_codes.h" 16 #include "content/public/common/result_codes.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 class ChildProcessSecurityPolicyInProcessBrowserTest 19 class ChildProcessSecurityPolicyInProcessBrowserTest
20 : public InProcessBrowserTest { 20 : public InProcessBrowserTest {
21 public: 21 public:
22 virtual void SetUp() { 22 virtual void SetUp() {
23 EXPECT_EQ( 23 EXPECT_EQ(
24 ChildProcessSecurityPolicy::GetInstance()->security_state_.size(), 0U); 24 ChildProcessSecurityPolicy::GetInstance()->security_state_.size(), 0U);
25 InProcessBrowserTest::SetUp(); 25 InProcessBrowserTest::SetUp();
(...skipping 17 matching lines...) Expand all
43 43
44 TabContents* tab = browser()->GetTabContentsAt(0); 44 TabContents* tab = browser()->GetTabContentsAt(0);
45 ASSERT_TRUE(tab != NULL); 45 ASSERT_TRUE(tab != NULL);
46 base::KillProcess(tab->GetRenderProcessHost()->GetHandle(), 46 base::KillProcess(tab->GetRenderProcessHost()->GetHandle(),
47 content::RESULT_CODE_KILLED, true); 47 content::RESULT_CODE_KILLED, true);
48 48
49 tab->controller().Reload(true); 49 tab->controller().Reload(true);
50 EXPECT_EQ( 50 EXPECT_EQ(
51 ChildProcessSecurityPolicy::GetInstance()->security_state_.size(), 1U); 51 ChildProcessSecurityPolicy::GetInstance()->security_state_.size(), 1U);
52 } 52 }
OLDNEW
« no previous file with comments | « content/browser/cert_store.cc ('k') | content/browser/debugger/render_view_devtools_agent_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698