OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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" |
(...skipping 26 matching lines...) Expand all Loading... |
37 const FilePath kTestFile(FILE_PATH_LITERAL("google.html")); | 37 const FilePath kTestFile(FILE_PATH_LITERAL("google.html")); |
38 GURL url(ui_test_utils::GetTestUrl(kTestDir, kTestFile)); | 38 GURL url(ui_test_utils::GetTestUrl(kTestDir, kTestFile)); |
39 | 39 |
40 ui_test_utils::NavigateToURL(browser(), url); | 40 ui_test_utils::NavigateToURL(browser(), url); |
41 EXPECT_EQ( | 41 EXPECT_EQ( |
42 ChildProcessSecurityPolicy::GetInstance()->security_state_.size(), 1U); | 42 ChildProcessSecurityPolicy::GetInstance()->security_state_.size(), 1U); |
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 ResultCodes::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 } |
OLD | NEW |