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

Side by Side Diff: chrome/browser/extensions/app_process_apitest.cc

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/utf_string_conversions.h" 5 #include "base/utf_string_conversions.h"
6 #include "chrome/browser/extensions/extension_apitest.h" 6 #include "chrome/browser/extensions/extension_apitest.h"
7 #include "chrome/browser/extensions/extension_host.h" 7 #include "chrome/browser/extensions/extension_host.h"
8 #include "chrome/browser/extensions/extension_service.h" 8 #include "chrome/browser/extensions/extension_service.h"
9 #include "chrome/browser/extensions/process_map.h" 9 #include "chrome/browser/extensions/process_map.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/ui/browser.h" 11 #include "chrome/browser/ui/browser.h"
12 #include "chrome/browser/ui/browser_list.h" 12 #include "chrome/browser/ui/browser_list.h"
13 #include "chrome/browser/ui/browser_window.h" 13 #include "chrome/browser/ui/browser_window.h"
14 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 14 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
15 #include "chrome/common/chrome_switches.h" 15 #include "chrome/common/chrome_switches.h"
16 #include "chrome/common/extensions/extension.h" 16 #include "chrome/common/extensions/extension.h"
17 #include "chrome/common/extensions/extension_file_util.h" 17 #include "chrome/common/extensions/extension_file_util.h"
18 #include "chrome/common/string_ordinal.h" 18 #include "chrome/common/string_ordinal.h"
19 #include "chrome/test/base/ui_test_utils.h" 19 #include "chrome/test/base/ui_test_utils.h"
20 #include "content/public/browser/navigation_entry.h" 20 #include "content/public/browser/navigation_entry.h"
21 #include "content/public/browser/notification_service.h" 21 #include "content/public/browser/notification_service.h"
22 #include "content/public/browser/render_process_host.h" 22 #include "content/public/browser/render_process_host.h"
23 #include "content/public/browser/render_view_host.h" 23 #include "content/public/browser/render_view_host.h"
24 #include "content/public/browser/web_contents.h" 24 #include "content/public/browser/web_contents.h"
25 #include "content/test/test_navigation_observer.h" 25 #include "content/test/test_navigation_observer.h"
26 #include "net/base/mock_host_resolver.h" 26 #include "net/base/mock_host_resolver.h"
27 27
28 using content::NavigationController; 28 using content::NavigationController;
29 using content::RenderViewHost;
29 using content::WebContents; 30 using content::WebContents;
30 31
31 // Simulates a page calling window.open on an URL, and waits for the navigation. 32 // Simulates a page calling window.open on an URL, and waits for the navigation.
32 static void WindowOpenHelper(Browser* browser, 33 static void WindowOpenHelper(Browser* browser,
33 RenderViewHost* opener_host, 34 RenderViewHost* opener_host,
34 const GURL& url, 35 const GURL& url,
35 bool newtab_process_should_equal_opener) { 36 bool newtab_process_should_equal_opener) {
36 ui_test_utils::WindowedNotificationObserver observer( 37 ui_test_utils::WindowedNotificationObserver observer(
37 content::NOTIFICATION_LOAD_STOP, 38 content::NOTIFICATION_LOAD_STOP,
38 content::NotificationService::AllSources()); 39 content::NotificationService::AllSources());
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 &browser()->GetSelectedTabContentsWrapper()->web_contents()-> 665 &browser()->GetSelectedTabContentsWrapper()->web_contents()->
665 GetController())); 666 GetController()));
666 browser()->Reload(CURRENT_TAB); 667 browser()->Reload(CURRENT_TAB);
667 observer.Wait(); 668 observer.Wait();
668 ASSERT_TRUE(ui_test_utils::ExecuteJavaScriptAndExtractBool( 669 ASSERT_TRUE(ui_test_utils::ExecuteJavaScriptAndExtractBool(
669 contents->GetRenderViewHost(), L"", 670 contents->GetRenderViewHost(), L"",
670 L"window.domAutomationController.send(chrome.app.isInstalled)", 671 L"window.domAutomationController.send(chrome.app.isInstalled)",
671 &is_installed)); 672 &is_installed));
672 ASSERT_TRUE(is_installed); 673 ASSERT_TRUE(is_installed);
673 } 674 }
OLDNEW
« no previous file with comments | « chrome/browser/download/download_browsertest.cc ('k') | chrome/browser/extensions/extension_debugger_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698