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

Side by Side Diff: chrome/browser/geolocation/geolocation_browsertest.cc

Issue 8983010: Convert WebContents to return a content::NavigationController instead of the implementation. Upda... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 11 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) 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/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/string_number_conversions.h" 8 #include "base/string_number_conversions.h"
9 #include "base/stringprintf.h" 9 #include "base/stringprintf.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 10 matching lines...) Expand all
21 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 21 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
22 #include "chrome/common/chrome_notification_types.h" 22 #include "chrome/common/chrome_notification_types.h"
23 #include "chrome/common/chrome_paths.h" 23 #include "chrome/common/chrome_paths.h"
24 #include "chrome/common/content_settings_pattern.h" 24 #include "chrome/common/content_settings_pattern.h"
25 #include "chrome/test/base/in_process_browser_test.h" 25 #include "chrome/test/base/in_process_browser_test.h"
26 #include "chrome/test/base/ui_test_utils.h" 26 #include "chrome/test/base/ui_test_utils.h"
27 #include "content/browser/geolocation/arbitrator_dependency_factories_for_test.h " 27 #include "content/browser/geolocation/arbitrator_dependency_factories_for_test.h "
28 #include "content/browser/geolocation/location_arbitrator.h" 28 #include "content/browser/geolocation/location_arbitrator.h"
29 #include "content/browser/geolocation/mock_location_provider.h" 29 #include "content/browser/geolocation/mock_location_provider.h"
30 #include "content/browser/renderer_host/render_view_host.h" 30 #include "content/browser/renderer_host/render_view_host.h"
31 #include "content/browser/tab_contents/navigation_controller.h" 31 #include "content/public/browser/navigation_controller.h"
32 #include "content/public/browser/notification_service.h" 32 #include "content/public/browser/notification_service.h"
33 #include "content/public/browser/notification_details.h" 33 #include "content/public/browser/notification_details.h"
34 #include "content/public/browser/web_contents.h" 34 #include "content/public/browser/web_contents.h"
35 #include "net/base/net_util.h" 35 #include "net/base/net_util.h"
36 #include "net/test/test_server.h" 36 #include "net/test/test_server.h"
37 37
38 using content::WebContents; 38 using content::WebContents;
39 39
40 namespace { 40 namespace {
41 41
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 "window.domAutomationController.setAutomationId(0);" 680 "window.domAutomationController.setAutomationId(0);"
681 "window.domAutomationController.send(window.close());"; 681 "window.domAutomationController.send(window.close());";
682 bool result = 682 bool result =
683 ui_test_utils::ExecuteJavaScript( 683 ui_test_utils::ExecuteJavaScript(
684 current_browser_->GetSelectedWebContents()->GetRenderViewHost(), 684 current_browser_->GetSelectedWebContents()->GetRenderViewHost(),
685 L"", UTF8ToWide(script)); 685 L"", UTF8ToWide(script));
686 EXPECT_EQ(result, true); 686 EXPECT_EQ(result, true);
687 } 687 }
688 688
689 } // namespace 689 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698