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

Unified Diff: ios/chrome/browser/ui/keyboard/hardware_keyboard_watcher_unittest.mm

Issue 1891863004: Copy contents of ui/base/ios into ios/chrome/browser/ui/context_menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix HardwardKeyboard test Created 4 years, 8 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/browser/ui/context_menu/context_menu_provider.h ('k') | ios/chrome/ios_chrome.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/keyboard/hardware_keyboard_watcher_unittest.mm
diff --git a/ios/chrome/browser/ui/keyboard/hardware_keyboard_watcher_unittest.mm b/ios/chrome/browser/ui/keyboard/hardware_keyboard_watcher_unittest.mm
index 6200e151ad0339a7d6df51274d7a2b995e91cad0..a820788d41ed8439f17c9f35c75787e2ea5cc21c 100644
--- a/ios/chrome/browser/ui/keyboard/hardware_keyboard_watcher_unittest.mm
+++ b/ios/chrome/browser/ui/keyboard/hardware_keyboard_watcher_unittest.mm
@@ -24,7 +24,17 @@ void PostKeyboardWillChangeNotification(CGRect beginFrame, CGRect endFrame) {
}];
}
-typedef PlatformTest HardwareKeyboardWatcherTest;
+class HardwareKeyboardWatcherTest : public PlatformTest {
+ public:
+ HardwareKeyboardWatcherTest() {
+ _window.reset(
+ [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]);
+ [_window makeKeyAndVisible];
+ }
+
+ protected:
+ base::scoped_nsobject<UIWindow> _window;
+};
TEST_F(HardwareKeyboardWatcherTest, AccessoryViewNotInHierarchy_NoHistogram) {
base::HistogramTester histogram_tester;
« no previous file with comments | « ios/chrome/browser/ui/context_menu/context_menu_provider.h ('k') | ios/chrome/ios_chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698