OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #if !defined(__has_feature) || !__has_feature(objc_arc) | 5 #if !defined(__has_feature) || !__has_feature(objc_arc) |
6 #error "This file requires ARC support." | 6 #error "This file requires ARC support." |
7 #endif | 7 #endif |
8 | 8 |
9 #import "remoting/client/ios/key_input.h" | 9 #import "remoting/ios/key_input.h" |
10 #import "remoting/client/ios/key_map_us.h" | 10 #import "remoting/ios/key_map_us.h" |
11 | 11 |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #import "base/compiler_specific.h" | 14 #import "base/compiler_specific.h" |
15 #import "testing/gtest_mac.h" | 15 #import "testing/gtest_mac.h" |
16 | 16 |
17 @interface KeyInputDelegateTester : NSObject<KeyInputDelegate> { | 17 @interface KeyInputDelegateTester : NSObject<KeyInputDelegate> { |
18 @private | 18 @private |
19 std::vector<uint32_t> _keyList; | 19 std::vector<uint32_t> _keyList; |
20 } | 20 } |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 TEST_F(KeyInputTest, KeyboardDismissed) { | 141 TEST_F(KeyInputTest, KeyboardDismissed) { |
142 ASSERT_FALSE(delegateTester_.wasDismissed); | 142 ASSERT_FALSE(delegateTester_.wasDismissed); |
143 | 143 |
144 NSNotificationCenter* center = [NSNotificationCenter defaultCenter]; | 144 NSNotificationCenter* center = [NSNotificationCenter defaultCenter]; |
145 [center postNotificationName:UIKeyboardWillHideNotification object:nil]; | 145 [center postNotificationName:UIKeyboardWillHideNotification object:nil]; |
146 | 146 |
147 ASSERT_TRUE(delegateTester_.wasDismissed); | 147 ASSERT_TRUE(delegateTester_.wasDismissed); |
148 } | 148 } |
149 | 149 |
150 } // namespace remoting | 150 } // namespace remoting |
OLD | NEW |