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

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

Issue 6677096: Move a bunch of files from chrome\common to content\common. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
« no previous file with comments | « no previous file | chrome/browser/history/history_backend.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/string_number_conversions.h" 6 #include "base/string_number_conversions.h"
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/browser_list.h" 9 #include "chrome/browser/browser_list.h"
10 #include "chrome/browser/dom_operation_notification_details.h" 10 #include "chrome/browser/dom_operation_notification_details.h"
11 #include "chrome/browser/geolocation/geolocation_content_settings_map.h" 11 #include "chrome/browser/geolocation/geolocation_content_settings_map.h"
12 #include "chrome/browser/geolocation/geolocation_settings_state.h" 12 #include "chrome/browser/geolocation/geolocation_settings_state.h"
13 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" 14 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
15 #include "chrome/browser/ui/browser.h" 15 #include "chrome/browser/ui/browser.h"
16 #include "chrome/common/chrome_paths.h" 16 #include "chrome/common/chrome_paths.h"
17 #include "chrome/common/geoposition.h"
18 #include "chrome/test/in_process_browser_test.h" 17 #include "chrome/test/in_process_browser_test.h"
19 #include "chrome/test/ui_test_utils.h" 18 #include "chrome/test/ui_test_utils.h"
20 #include "content/browser/geolocation/arbitrator_dependency_factories_for_test.h " 19 #include "content/browser/geolocation/arbitrator_dependency_factories_for_test.h "
21 #include "content/browser/geolocation/location_arbitrator.h" 20 #include "content/browser/geolocation/location_arbitrator.h"
22 #include "content/browser/geolocation/mock_location_provider.h" 21 #include "content/browser/geolocation/mock_location_provider.h"
23 #include "content/browser/renderer_host/render_view_host.h" 22 #include "content/browser/renderer_host/render_view_host.h"
24 #include "content/browser/tab_contents/tab_contents.h" 23 #include "content/browser/tab_contents/tab_contents.h"
24 #include "content/common/geoposition.h"
25 #include "content/common/notification_details.h" 25 #include "content/common/notification_details.h"
26 #include "content/common/notification_service.h" 26 #include "content/common/notification_service.h"
27 #include "content/common/notification_type.h" 27 #include "content/common/notification_type.h"
28 #include "net/base/net_util.h" 28 #include "net/base/net_util.h"
29 #include "net/test/test_server.h" 29 #include "net/test/test_server.h"
30 30
31 namespace { 31 namespace {
32 32
33 // Used to block until an iframe is loaded via a javascript call. 33 // Used to block until an iframe is loaded via a javascript call.
34 // Note: NavigateToURLBlockUntilNavigationsComplete doesn't seem to work for 34 // Note: NavigateToURLBlockUntilNavigationsComplete doesn't seem to work for
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 "window.domAutomationController.setAutomationId(0);" 642 "window.domAutomationController.setAutomationId(0);"
643 "window.domAutomationController.send(window.close());"; 643 "window.domAutomationController.send(window.close());";
644 bool result = 644 bool result =
645 ui_test_utils::ExecuteJavaScript( 645 ui_test_utils::ExecuteJavaScript(
646 current_browser_->GetSelectedTabContents()->render_view_host(), 646 current_browser_->GetSelectedTabContents()->render_view_host(),
647 L"", UTF8ToWide(script)); 647 L"", UTF8ToWide(script));
648 EXPECT_EQ(result, true); 648 EXPECT_EQ(result, true);
649 } 649 }
650 650
651 } // namespace 651 } // namespace
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/history/history_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698