| 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/process_util.h" | |
| 6 #include "base/strings/string_util.h" | 5 #include "base/strings/string_util.h" |
| 7 #include "base/strings/utf_string_conversions.h" | 6 #include "base/strings/utf_string_conversions.h" |
| 8 #include "chrome/browser/chrome_notification_types.h" | 7 #include "chrome/browser/chrome_notification_types.h" |
| 9 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
| 10 #include "chrome/browser/ui/browser_commands.h" | 9 #include "chrome/browser/ui/browser_commands.h" |
| 11 #include "chrome/browser/ui/browser_tabstrip.h" | 10 #include "chrome/browser/ui/browser_tabstrip.h" |
| 12 #include "chrome/browser/ui/find_bar/find_bar_controller.h" | 11 #include "chrome/browser/ui/find_bar/find_bar_controller.h" |
| 13 #include "chrome/browser/ui/find_bar/find_notification_details.h" | 12 #include "chrome/browser/ui/find_bar/find_notification_details.h" |
| 14 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 13 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 15 #include "chrome/browser/ui/view_ids.h" | 14 #include "chrome/browser/ui/view_ids.h" |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 chrome::NOTIFICATION_FIND_RESULT_AVAILABLE, notification_source); | 317 chrome::NOTIFICATION_FIND_RESULT_AVAILABLE, notification_source); |
| 319 | 318 |
| 320 ASSERT_TRUE(ui_test_utils::SendKeyPressSync( | 319 ASSERT_TRUE(ui_test_utils::SendKeyPressSync( |
| 321 browser(), ui::VKEY_V, true, false, false, false)); | 320 browser(), ui::VKEY_V, true, false, false, false)); |
| 322 | 321 |
| 323 ASSERT_NO_FATAL_FAILURE(observer.Wait()); | 322 ASSERT_NO_FATAL_FAILURE(observer.Wait()); |
| 324 FindNotificationDetails details; | 323 FindNotificationDetails details; |
| 325 ASSERT_TRUE(observer.GetDetailsFor(notification_source.map_key(), &details)); | 324 ASSERT_TRUE(observer.GetDetailsFor(notification_source.map_key(), &details)); |
| 326 EXPECT_TRUE(details.number_of_matches() > 0); | 325 EXPECT_TRUE(details.number_of_matches() > 0); |
| 327 } | 326 } |
| OLD | NEW |