| OLD | NEW |
| 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
| 9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "chrome/test/base/in_process_browser_test.h" | 24 #include "chrome/test/base/in_process_browser_test.h" |
| 25 #include "chrome/test/base/ui_test_utils.h" | 25 #include "chrome/test/base/ui_test_utils.h" |
| 26 #include "content/public/browser/dom_operation_notification_details.h" | 26 #include "content/public/browser/dom_operation_notification_details.h" |
| 27 #include "content/public/browser/navigation_controller.h" | 27 #include "content/public/browser/navigation_controller.h" |
| 28 #include "content/public/browser/notification_details.h" | 28 #include "content/public/browser/notification_details.h" |
| 29 #include "content/public/browser/notification_service.h" | 29 #include "content/public/browser/notification_service.h" |
| 30 #include "content/public/browser/render_view_host.h" | 30 #include "content/public/browser/render_view_host.h" |
| 31 #include "content/public/browser/web_contents.h" | 31 #include "content/public/browser/web_contents.h" |
| 32 #include "content/public/test/browser_test_utils.h" | 32 #include "content/public/test/browser_test_utils.h" |
| 33 #include "net/base/net_util.h" | 33 #include "net/base/net_util.h" |
| 34 #include "net/test/spawned_test_server.h" | 34 #include "net/test/spawned_test_server/spawned_test_server.h" |
| 35 | 35 |
| 36 using content::DomOperationNotificationDetails; | 36 using content::DomOperationNotificationDetails; |
| 37 using content::NavigationController; | 37 using content::NavigationController; |
| 38 using content::WebContents; | 38 using content::WebContents; |
| 39 | 39 |
| 40 namespace { | 40 namespace { |
| 41 | 41 |
| 42 | 42 |
| 43 // IFrameLoader --------------------------------------------------------------- | 43 // IFrameLoader --------------------------------------------------------------- |
| 44 | 44 |
| (...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 734 AddGeolocationWatch(false); | 734 AddGeolocationWatch(false); |
| 735 | 735 |
| 736 std::string script = | 736 std::string script = |
| 737 "window.domAutomationController.send(window.close());"; | 737 "window.domAutomationController.send(window.close());"; |
| 738 bool result = | 738 bool result = |
| 739 content::ExecuteScript( | 739 content::ExecuteScript( |
| 740 current_browser_->tab_strip_model()->GetActiveWebContents(), | 740 current_browser_->tab_strip_model()->GetActiveWebContents(), |
| 741 script); | 741 script); |
| 742 EXPECT_EQ(result, true); | 742 EXPECT_EQ(result, true); |
| 743 } | 743 } |
| OLD | NEW |