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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/strings/string_number_conversions.h" | 6 #include "base/strings/string_number_conversions.h" |
7 #include "base/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "chrome/app/chrome_command_ids.h" | 8 #include "chrome/app/chrome_command_ids.h" |
9 #include "chrome/browser/tab_contents/render_view_context_menu.h" | 9 #include "chrome/browser/tab_contents/render_view_context_menu.h" |
10 #include "chrome/browser/tab_contents/render_view_context_menu_browsertest_util.
h" | 10 #include "chrome/browser/tab_contents/render_view_context_menu_browsertest_util.
h" |
11 #include "chrome/browser/ui/browser.h" | 11 #include "chrome/browser/ui/browser.h" |
12 #include "chrome/browser/ui/browser_commands.h" | 12 #include "chrome/browser/ui/browser_commands.h" |
13 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 13 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
14 #include "chrome/common/chrome_notification_types.h" | 14 #include "chrome/common/chrome_notification_types.h" |
15 #include "chrome/test/base/in_process_browser_test.h" | 15 #include "chrome/test/base/in_process_browser_test.h" |
16 #include "chrome/test/base/ui_test_utils.h" | 16 #include "chrome/test/base/ui_test_utils.h" |
17 #include "content/public/browser/notification_service.h" | 17 #include "content/public/browser/notification_service.h" |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 chrome::Reload(browser(), CURRENT_TAB); | 401 chrome::Reload(browser(), CURRENT_TAB); |
402 EXPECT_EQ(expected_title, title_watcher->WaitAndGetTitle()); | 402 EXPECT_EQ(expected_title, title_watcher->WaitAndGetTitle()); |
403 | 403 |
404 title_watcher.reset(new content::TitleWatcher(tab, expected_title)); | 404 title_watcher.reset(new content::TitleWatcher(tab, expected_title)); |
405 AddAllPossibleTitles(start_url, title_watcher.get()); | 405 AddAllPossibleTitles(start_url, title_watcher.get()); |
406 | 406 |
407 // Shift-reload to B. | 407 // Shift-reload to B. |
408 chrome::ReloadIgnoringCache(browser(), CURRENT_TAB); | 408 chrome::ReloadIgnoringCache(browser(), CURRENT_TAB); |
409 EXPECT_EQ(expected_title, title_watcher->WaitAndGetTitle()); | 409 EXPECT_EQ(expected_title, title_watcher->WaitAndGetTitle()); |
410 } | 410 } |
OLD | NEW |