Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(549)

Side by Side Diff: chrome/browser/ui/views/find_bar_host_interactive_uitest.cc

Issue 8771006: views: Move the remaining file from views/ to ui/views/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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" 5 #include "base/process_util.h"
6 #include "base/string_util.h" 6 #include "base/string_util.h"
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/tabs/tab_strip_model.h" 8 #include "chrome/browser/tabs/tab_strip_model.h"
9 #include "chrome/browser/ui/browser.h" 9 #include "chrome/browser/ui/browser.h"
10 #include "chrome/browser/ui/find_bar/find_bar_controller.h" 10 #include "chrome/browser/ui/find_bar/find_bar_controller.h"
11 #include "chrome/browser/ui/find_bar/find_notification_details.h" 11 #include "chrome/browser/ui/find_bar/find_notification_details.h"
12 #include "chrome/browser/ui/view_ids.h" 12 #include "chrome/browser/ui/view_ids.h"
13 #include "chrome/browser/ui/views/find_bar_host.h" 13 #include "chrome/browser/ui/views/find_bar_host.h"
14 #include "chrome/browser/ui/views/frame/browser_view.h" 14 #include "chrome/browser/ui/views/frame/browser_view.h"
15 #include "chrome/common/chrome_notification_types.h" 15 #include "chrome/common/chrome_notification_types.h"
16 #include "chrome/test/base/in_process_browser_test.h" 16 #include "chrome/test/base/in_process_browser_test.h"
17 #include "chrome/test/base/ui_test_utils.h" 17 #include "chrome/test/base/ui_test_utils.h"
18 #include "content/browser/tab_contents/tab_contents.h" 18 #include "content/browser/tab_contents/tab_contents.h"
19 #include "content/public/browser/notification_service.h" 19 #include "content/public/browser/notification_service.h"
20 #include "net/test/test_server.h" 20 #include "net/test/test_server.h"
21 #include "ui/base/clipboard/clipboard.h" 21 #include "ui/base/clipboard/clipboard.h"
22 #include "ui/base/keycodes/keyboard_codes.h" 22 #include "ui/base/keycodes/keyboard_codes.h"
23 #include "ui/views/focus/focus_manager.h" 23 #include "ui/views/focus/focus_manager.h"
24 #include "ui/views/view.h" 24 #include "ui/views/view.h"
25 #include "views/views_delegate.h" 25 #include "ui/views/views_delegate.h"
26 26
27 namespace { 27 namespace {
28 28
29 // The delay waited after sending an OS simulated event. 29 // The delay waited after sending an OS simulated event.
30 static const int kActionDelayMs = 500; 30 static const int kActionDelayMs = 500;
31 static const char kSimplePage[] = "files/find_in_page/simple.html"; 31 static const char kSimplePage[] = "files/find_in_page/simple.html";
32 32
33 void Checkpoint(const char* message, const base::TimeTicks& start_time) { 33 void Checkpoint(const char* message, const base::TimeTicks& start_time) {
34 LOG(INFO) << message << " : " 34 LOG(INFO) << message << " : "
35 << (base::TimeTicks::Now() - start_time).InMilliseconds() 35 << (base::TimeTicks::Now() - start_time).InMilliseconds()
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 chrome::NOTIFICATION_FIND_RESULT_AVAILABLE, notification_source); 341 chrome::NOTIFICATION_FIND_RESULT_AVAILABLE, notification_source);
342 342
343 ASSERT_TRUE(ui_test_utils::SendKeyPressSync( 343 ASSERT_TRUE(ui_test_utils::SendKeyPressSync(
344 browser(), ui::VKEY_V, true, false, false, false)); 344 browser(), ui::VKEY_V, true, false, false, false));
345 345
346 ASSERT_NO_FATAL_FAILURE(observer.Wait()); 346 ASSERT_NO_FATAL_FAILURE(observer.Wait());
347 FindNotificationDetails details; 347 FindNotificationDetails details;
348 ASSERT_TRUE(observer.GetDetailsFor(notification_source.map_key(), &details)); 348 ASSERT_TRUE(observer.GetDetailsFor(notification_source.map_key(), &details));
349 EXPECT_TRUE(details.number_of_matches() > 0); 349 EXPECT_TRUE(details.number_of_matches() > 0);
350 } 350 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/extensions/extension_install_dialog_view.cc ('k') | chrome/browser/ui/views/find_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698