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

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

Issue 8413051: Move PageZoom enum into content/public/common and into the content namespace. Also move content_c... (Closed) Base URL: svn://chrome-svn/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 "base/compiler_specific.h" 5 #include "base/compiler_specific.h"
6 #include "base/stl_util.h" 6 #include "base/stl_util.h"
7 #include "base/string16.h" 7 #include "base/string16.h"
8 #include "content/browser/browsing_instance.h" 8 #include "content/browser/browsing_instance.h"
9 #include "content/browser/child_process_security_policy.h" 9 #include "content/browser/child_process_security_policy.h"
10 #include "content/browser/mock_content_browser_client.h" 10 #include "content/browser/mock_content_browser_client.h"
11 #include "content/browser/renderer_host/browser_render_process_host.h" 11 #include "content/browser/renderer_host/browser_render_process_host.h"
12 #include "content/browser/renderer_host/render_view_host.h" 12 #include "content/browser/renderer_host/render_view_host.h"
13 #include "content/browser/renderer_host/test_render_view_host.h" 13 #include "content/browser/renderer_host/test_render_view_host.h"
14 #include "content/browser/site_instance.h" 14 #include "content/browser/site_instance.h"
15 #include "content/browser/tab_contents/navigation_entry.h" 15 #include "content/browser/tab_contents/navigation_entry.h"
16 #include "content/browser/tab_contents/tab_contents.h" 16 #include "content/browser/tab_contents/tab_contents.h"
17 #include "content/browser/webui/empty_web_ui_factory.h" 17 #include "content/browser/webui/empty_web_ui_factory.h"
18 #include "content/common/content_constants.h"
19 #include "content/public/common/content_client.h" 18 #include "content/public/common/content_client.h"
19 #include "content/public/common/content_constants.h"
20 #include "content/public/common/url_constants.h" 20 #include "content/public/common/url_constants.h"
21 #include "content/test/test_browser_context.h" 21 #include "content/test/test_browser_context.h"
22 #include "content/test/test_browser_thread.h" 22 #include "content/test/test_browser_thread.h"
23 #include "googleurl/src/url_util.h" 23 #include "googleurl/src/url_util.h"
24 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
25 25
26 namespace { 26 namespace {
27 27
28 const char kSameAsAnyInstanceURL[] = "about:internets"; 28 const char kSameAsAnyInstanceURL[] = "about:internets";
29 29
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 // Make sure none of differing privilege processes are mixed. 559 // Make sure none of differing privilege processes are mixed.
560 EXPECT_NE(extension1_instance->GetProcess(), webui1_instance->GetProcess()); 560 EXPECT_NE(extension1_instance->GetProcess(), webui1_instance->GetProcess());
561 561
562 for (size_t i = 0; i < content::kMaxRendererProcessCount; ++i) { 562 for (size_t i = 0; i < content::kMaxRendererProcessCount; ++i) {
563 EXPECT_NE(extension1_instance->GetProcess(), hosts[i]); 563 EXPECT_NE(extension1_instance->GetProcess(), hosts[i]);
564 EXPECT_NE(webui1_instance->GetProcess(), hosts[i]); 564 EXPECT_NE(webui1_instance->GetProcess(), hosts[i]);
565 } 565 }
566 566
567 STLDeleteContainerPointers(hosts.begin(), hosts.end()); 567 STLDeleteContainerPointers(hosts.begin(), hosts.end());
568 } 568 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host.h ('k') | content/browser/tab_contents/navigation_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698