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

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

Issue 2482713002: [ios] Removes an unneeded UIWindow from HardwareKeyboardWatcherTest. (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | no next file » | 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 a820788d41ed8439f17c9f35c75787e2ea5cc21c..6200e151ad0339a7d6df51274d7a2b995e91cad0 100644
--- a/ios/chrome/browser/ui/keyboard/hardware_keyboard_watcher_unittest.mm
+++ b/ios/chrome/browser/ui/keyboard/hardware_keyboard_watcher_unittest.mm
@@ -24,17 +24,7 @@ void PostKeyboardWillChangeNotification(CGRect beginFrame, CGRect endFrame) {
}];
}
-class HardwareKeyboardWatcherTest : public PlatformTest {
- public:
- HardwareKeyboardWatcherTest() {
- _window.reset(
- [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]);
- [_window makeKeyAndVisible];
- }
-
- protected:
- base::scoped_nsobject<UIWindow> _window;
-};
+typedef PlatformTest HardwareKeyboardWatcherTest;
TEST_F(HardwareKeyboardWatcherTest, AccessoryViewNotInHierarchy_NoHistogram) {
base::HistogramTester histogram_tester;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698