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

Side by Side Diff: ios/chrome/browser/autofill/form_input_egtest.mm

Issue 2777463002: Make custom GREYAction methods Chromium C-Style. (Closed)
Patch Set: more c-style Created 3 years, 9 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 | « no previous file | ios/chrome/browser/context_menu/context_menu_egtest.mm » ('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 #import <EarlGrey/EarlGrey.h> 5 #import <EarlGrey/EarlGrey.h>
6 6
7 #include "base/strings/sys_string_conversions.h" 7 #include "base/strings/sys_string_conversions.h"
8 #import "base/test/ios/wait_util.h" 8 #import "base/test/ios/wait_util.h"
9 #include "ios/chrome/browser/autofill/form_input_accessory_view_controller.h" 9 #include "ios/chrome/browser/autofill/form_input_accessory_view_controller.h"
10 #include "ios/chrome/browser/ui/ui_util.h" 10 #include "ios/chrome/browser/ui/ui_util.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 // Opening the keyboard from a webview blocks EarlGrey's synchronization. 91 // Opening the keyboard from a webview blocks EarlGrey's synchronization.
92 [[GREYConfiguration sharedInstance] 92 [[GREYConfiguration sharedInstance]
93 setValue:@NO 93 setValue:@NO
94 forConfigKey:kGREYConfigKeySynchronizationEnabled]; 94 forConfigKey:kGREYConfigKeySynchronizationEnabled];
95 95
96 // Brings up the keyboard by tapping on one of the form's field. 96 // Brings up the keyboard by tapping on one of the form's field.
97 [[EarlGrey 97 [[EarlGrey
98 selectElementWithMatcher:web::WebViewInWebState( 98 selectElementWithMatcher:web::WebViewInWebState(
99 chrome_test_util::GetCurrentWebState())] 99 chrome_test_util::GetCurrentWebState())]
100 performAction:web::webViewTapElement( 100 performAction:web::WebViewTapElement(
101 chrome_test_util::GetCurrentWebState(), 101 chrome_test_util::GetCurrentWebState(),
102 kFormElementId1)]; 102 kFormElementId1)];
103 103
104 id<GREYMatcher> nextButtonMatcher = 104 id<GREYMatcher> nextButtonMatcher =
105 chrome_test_util::ButtonWithAccessibilityLabelId( 105 chrome_test_util::ButtonWithAccessibilityLabelId(
106 IDS_IOS_AUTOFILL_ACCNAME_NEXT_FIELD); 106 IDS_IOS_AUTOFILL_ACCNAME_NEXT_FIELD);
107 id<GREYMatcher> previousButtonMatcher = 107 id<GREYMatcher> previousButtonMatcher =
108 chrome_test_util::ButtonWithAccessibilityLabelId( 108 chrome_test_util::ButtonWithAccessibilityLabelId(
109 IDS_IOS_AUTOFILL_ACCNAME_PREVIOUS_FIELD); 109 IDS_IOS_AUTOFILL_ACCNAME_PREVIOUS_FIELD);
110 id<GREYMatcher> closeButtonMatcher = 110 id<GREYMatcher> closeButtonMatcher =
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // visible doesn't crash the browser. 151 // visible doesn't crash the browser.
152 - (void)testCloseKeyboardWhenNotVisible { 152 - (void)testCloseKeyboardWhenNotVisible {
153 FormInputAccessoryViewController* inputAccessoryViewController = 153 FormInputAccessoryViewController* inputAccessoryViewController =
154 chrome_test_util::GetInputAccessoryViewController(); 154 chrome_test_util::GetInputAccessoryViewController();
155 GREYAssertNotNil(inputAccessoryViewController, 155 GREYAssertNotNil(inputAccessoryViewController,
156 @"The tab's input accessory view should not be non nil."); 156 @"The tab's input accessory view should not be non nil.");
157 [inputAccessoryViewController closeKeyboardWithoutButtonPress]; 157 [inputAccessoryViewController closeKeyboardWithoutButtonPress];
158 } 158 }
159 159
160 @end 160 @end
OLDNEW
« no previous file with comments | « no previous file | ios/chrome/browser/context_menu/context_menu_egtest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698