| 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/strings/string_util.h" | 5 #include "base/strings/string_util.h" |
| 6 #include "base/strings/utf_string_conversions.h" | 6 #include "base/strings/utf_string_conversions.h" |
| 7 #include "chrome/browser/chrome_notification_types.h" | 7 #include "chrome/browser/chrome_notification_types.h" |
| 8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
| 9 #include "chrome/browser/ui/browser_commands.h" | 9 #include "chrome/browser/ui/browser_commands.h" |
| 10 #include "chrome/browser/ui/browser_tabstrip.h" | 10 #include "chrome/browser/ui/browser_tabstrip.h" |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 ui_test_utils::UrlLoadObserver observer( | 435 ui_test_utils::UrlLoadObserver observer( |
| 436 GURL("about:blank"), content::NotificationService::AllSources()); | 436 GURL("about:blank"), content::NotificationService::AllSources()); |
| 437 | 437 |
| 438 // Send Ctrl-Enter, should cause navigation to about:blank. | 438 // Send Ctrl-Enter, should cause navigation to about:blank. |
| 439 ASSERT_TRUE(ui_test_utils::SendKeyPressSync( | 439 ASSERT_TRUE(ui_test_utils::SendKeyPressSync( |
| 440 browser(), ui::VKEY_RETURN, true, false, false, false)); | 440 browser(), ui::VKEY_RETURN, true, false, false, false)); |
| 441 | 441 |
| 442 observer.Wait(); | 442 observer.Wait(); |
| 443 } | 443 } |
| 444 #endif | 444 #endif |
| OLD | NEW |