OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/string16.h" | 5 #include "base/string16.h" |
6 #include "chrome/browser/child_process_security_policy.h" | 6 #include "chrome/browser/child_process_security_policy.h" |
7 #include "chrome/browser/renderer_host/browser_render_process_host.h" | 7 #include "chrome/browser/renderer_host/browser_render_process_host.h" |
8 #include "chrome/browser/renderer_host/render_view_host.h" | 8 #include "chrome/browser/renderer_host/render_view_host.h" |
9 #include "chrome/browser/renderer_host/test_render_view_host.h" | 9 #include "chrome/browser/renderer_host/test/test_render_view_host.h" |
10 #include "chrome/browser/tab_contents/navigation_entry.h" | 10 #include "chrome/browser/tab_contents/navigation_entry.h" |
11 #include "chrome/browser/tab_contents/tab_contents.h" | 11 #include "chrome/browser/tab_contents/tab_contents.h" |
12 #include "chrome/common/chrome_constants.h" | 12 #include "chrome/common/chrome_constants.h" |
13 #include "chrome/common/render_messages.h" | 13 #include "chrome/common/render_messages.h" |
14 #include "chrome/test/testing_profile.h" | 14 #include "chrome/test/testing_profile.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 class SiteInstanceTest : public testing::Test { | 17 class SiteInstanceTest : public testing::Test { |
18 private: | 18 private: |
19 MessageLoopForUI message_loop_; | 19 MessageLoopForUI message_loop_; |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 // Make sure none of differing privilege processes are mixed. | 449 // Make sure none of differing privilege processes are mixed. |
450 EXPECT_NE(extension1_instance->GetProcess(), dom1_instance->GetProcess()); | 450 EXPECT_NE(extension1_instance->GetProcess(), dom1_instance->GetProcess()); |
451 | 451 |
452 for (size_t i = 0; i < chrome::kMaxRendererProcessCount; ++i) { | 452 for (size_t i = 0; i < chrome::kMaxRendererProcessCount; ++i) { |
453 EXPECT_NE(extension1_instance->GetProcess(), hosts[i]); | 453 EXPECT_NE(extension1_instance->GetProcess(), hosts[i]); |
454 EXPECT_NE(dom1_instance->GetProcess(), hosts[i]); | 454 EXPECT_NE(dom1_instance->GetProcess(), hosts[i]); |
455 } | 455 } |
456 | 456 |
457 STLDeleteContainerPointers(hosts.begin(), hosts.end()); | 457 STLDeleteContainerPointers(hosts.begin(), hosts.end()); |
458 } | 458 } |
OLD | NEW |