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

Side by Side Diff: chrome/browser/ui/cocoa/find_bar/find_bar_browsertest.mm

Issue 2565813002: Create c/b/ui/cocoa/test and move test files to there (Closed)
Patch Set: Rebase Created 4 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
OLDNEW
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/mac/foundation_util.h" 5 #include "base/mac/foundation_util.h"
6 #include "chrome/browser/ui/browser.h" 6 #include "chrome/browser/ui/browser.h"
7 #include "chrome/browser/ui/browser_window.h" 7 #include "chrome/browser/ui/browser_window.h"
8 #import "chrome/browser/ui/cocoa/browser_window_controller.h" 8 #import "chrome/browser/ui/cocoa/browser_window_controller.h"
9 #include "chrome/browser/ui/cocoa/find_bar/find_bar_text_field.h" 9 #include "chrome/browser/ui/cocoa/find_bar/find_bar_text_field.h"
10 #import "chrome/browser/ui/cocoa/run_loop_testing.h" 10 #import "chrome/browser/ui/cocoa/test/run_loop_testing.h"
11 #include "chrome/browser/ui/exclusive_access/fullscreen_controller_test.h" 11 #include "chrome/browser/ui/exclusive_access/fullscreen_controller_test.h"
12 #include "chrome/browser/ui/find_bar/find_bar.h" 12 #include "chrome/browser/ui/find_bar/find_bar.h"
13 #include "chrome/browser/ui/find_bar/find_bar_controller.h" 13 #include "chrome/browser/ui/find_bar/find_bar_controller.h"
14 #include "chrome/browser/ui/location_bar/location_bar.h" 14 #include "chrome/browser/ui/location_bar/location_bar.h"
15 #include "chrome/browser/ui/tabs/tab_strip_model.h" 15 #include "chrome/browser/ui/tabs/tab_strip_model.h"
16 #include "chrome/test/base/in_process_browser_test.h" 16 #include "chrome/test/base/in_process_browser_test.h"
17 #include "ui/base/test/ui_controls.h" 17 #include "ui/base/test/ui_controls.h"
18 #import "ui/events/test/cocoa_test_event_utils.h" 18 #import "ui/events/test/cocoa_test_event_utils.h"
19 19
20 namespace { 20 namespace {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 ui_controls::EnableUIControls(); 77 ui_controls::EnableUIControls();
78 ui_controls::SendKeyPressNotifyWhenDone(window, ui::VKEY_ESCAPE, false, false, 78 ui_controls::SendKeyPressNotifyWhenDone(window, ui::VKEY_ESCAPE, false, false,
79 false, false, run_loop.QuitClosure()); 79 false, false, run_loop.QuitClosure());
80 run_loop.Run(); 80 run_loop.Run();
81 81
82 // Check that the browser is still in fullscreen and that the find bar has 82 // Check that the browser is still in fullscreen and that the find bar has
83 // lost focus. 83 // lost focus.
84 EXPECT_FALSE(FindBarHasFocus(browser())); 84 EXPECT_FALSE(FindBarHasFocus(browser()));
85 EXPECT_TRUE([bwc isInAppKitFullscreen]); 85 EXPECT_TRUE([bwc isInAppKitFullscreen]);
86 } 86 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698