OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <stdio.h> | 5 #include <stdio.h> |
6 | 6 |
7 #include "app/keyboard_codes.h" | 7 #include "app/keyboard_codes.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/string16.h" | 9 #include "base/string16.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
11 #include "base/time.h" | 11 #include "base/time.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
13 #include "chrome/app/chrome_command_ids.h" | 13 #include "chrome/app/chrome_command_ids.h" |
14 #include "chrome/browser/autocomplete/autocomplete.h" | 14 #include "chrome/browser/autocomplete/autocomplete.h" |
15 #include "chrome/browser/autocomplete/autocomplete_edit.h" | 15 #include "chrome/browser/autocomplete/autocomplete_edit.h" |
16 #include "chrome/browser/autocomplete/autocomplete_match.h" | 16 #include "chrome/browser/autocomplete/autocomplete_match.h" |
17 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" | 17 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" |
18 #include "chrome/browser/autocomplete/autocomplete_edit_view.h" | 18 #include "chrome/browser/autocomplete/autocomplete_edit_view.h" |
19 #include "chrome/browser/bookmarks/bookmark_model.h" | 19 #include "chrome/browser/bookmarks/bookmark_model.h" |
20 #include "chrome/browser/browser.h" | |
21 #include "chrome/browser/browser_window.h" | 20 #include "chrome/browser/browser_window.h" |
22 #include "chrome/browser/history/history.h" | 21 #include "chrome/browser/history/history.h" |
23 #include "chrome/browser/location_bar.h" | 22 #include "chrome/browser/location_bar.h" |
24 #include "chrome/browser/profile.h" | 23 #include "chrome/browser/profile.h" |
25 #include "chrome/browser/search_engines/template_url.h" | 24 #include "chrome/browser/search_engines/template_url.h" |
26 #include "chrome/browser/search_engines/template_url_model.h" | 25 #include "chrome/browser/search_engines/template_url_model.h" |
27 #include "chrome/browser/tab_contents/tab_contents.h" | 26 #include "chrome/browser/tab_contents/tab_contents.h" |
| 27 #include "chrome/browser/ui/browser.h" |
28 #include "chrome/common/chrome_paths.h" | 28 #include "chrome/common/chrome_paths.h" |
29 #include "chrome/common/notification_service.h" | 29 #include "chrome/common/notification_service.h" |
30 #include "chrome/common/url_constants.h" | 30 #include "chrome/common/url_constants.h" |
31 #include "chrome/test/in_process_browser_test.h" | 31 #include "chrome/test/in_process_browser_test.h" |
32 #include "chrome/test/ui_test_utils.h" | 32 #include "chrome/test/ui_test_utils.h" |
33 #include "net/base/mock_host_resolver.h" | 33 #include "net/base/mock_host_resolver.h" |
34 #include "views/event.h" | 34 #include "views/event.h" |
35 | 35 |
36 using base::Time; | 36 using base::Time; |
37 using base::TimeDelta; | 37 using base::TimeDelta; |
(...skipping 740 matching lines...) Loading... |
778 | 778 |
779 // Undo delete two characters. | 779 // Undo delete two characters. |
780 ASSERT_NO_FATAL_FAILURE(SendKey(app::VKEY_Z, true, false, false)); | 780 ASSERT_NO_FATAL_FAILURE(SendKey(app::VKEY_Z, true, false, false)); |
781 EXPECT_EQ(old_text, edit_view->GetText()); | 781 EXPECT_EQ(old_text, edit_view->GetText()); |
782 | 782 |
783 // Undo again. | 783 // Undo again. |
784 ASSERT_NO_FATAL_FAILURE(SendKey(app::VKEY_Z, true, false, false)); | 784 ASSERT_NO_FATAL_FAILURE(SendKey(app::VKEY_Z, true, false, false)); |
785 EXPECT_TRUE(edit_view->GetText().empty()); | 785 EXPECT_TRUE(edit_view->GetText().empty()); |
786 } | 786 } |
787 #endif | 787 #endif |
OLD | NEW |