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

Side by Side Diff: remoting/ios/key_input_unittest.mm

Issue 2871993003: Moving the iOS directory to be remoting top level. (Closed)
Patch Set: //remoting/ios was the old landing target for the internal iOS application. Fix. Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « remoting/ios/key_input.mm ('k') | remoting/ios/key_map_us.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « remoting/ios/key_input.mm ('k') | remoting/ios/key_map_us.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698