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/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "base/string16.h" | 8 #include "base/string16.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "chrome/app/chrome_command_ids.h" | 10 #include "chrome/app/chrome_command_ids.h" |
11 #include "chrome/browser/tab_contents/render_view_context_menu.h" | 11 #include "chrome/browser/tab_contents/render_view_context_menu.h" |
12 #include "chrome/browser/tab_contents/render_view_context_menu_browsertest_util.
h" | 12 #include "chrome/browser/tab_contents/render_view_context_menu_browsertest_util.
h" |
13 #include "chrome/browser/tab_contents/render_view_context_menu_test_util.h" | 13 #include "chrome/browser/tab_contents/render_view_context_menu_test_util.h" |
14 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
15 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 15 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
16 #include "chrome/common/chrome_notification_types.h" | 16 #include "chrome/common/chrome_notification_types.h" |
17 #include "chrome/test/base/in_process_browser_test.h" | 17 #include "chrome/test/base/in_process_browser_test.h" |
18 #include "chrome/test/base/ui_test_utils.h" | 18 #include "chrome/test/base/ui_test_utils.h" |
19 #include "content/public/browser/navigation_controller.h" | 19 #include "content/public/browser/navigation_controller.h" |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 // Verify that the referrer on the page matches |kEmptyReferrer|. | 218 // Verify that the referrer on the page matches |kEmptyReferrer|. |
219 std::string page_referrer; | 219 std::string page_referrer; |
220 ASSERT_TRUE(content::ExecuteScriptAndExtractString( | 220 ASSERT_TRUE(content::ExecuteScriptAndExtractString( |
221 tab, | 221 tab, |
222 "window.domAutomationController.send(window.document.referrer);", | 222 "window.domAutomationController.send(window.document.referrer);", |
223 &page_referrer)); | 223 &page_referrer)); |
224 ASSERT_EQ(kEmptyReferrer, page_referrer); | 224 ASSERT_EQ(kEmptyReferrer, page_referrer); |
225 } | 225 } |
226 | 226 |
227 } // namespace | 227 } // namespace |
OLD | NEW |