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

Side by Side Diff: ios/web/public/test/earl_grey/web_view_actions.mm

Issue 2605913002: Fix include import in ios/web (Closed)
Patch Set: Created 3 years, 11 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
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 "ios/web/public/test/earl_grey/web_view_actions.h" 5 #import "ios/web/public/test/earl_grey/web_view_actions.h"
6 6
7 #include "base/callback_helpers.h" 7 #include "base/callback_helpers.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/mac/bind_objc_block.h" 9 #import "base/mac/bind_objc_block.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
11 #include "base/test/ios/wait_util.h" 11 #import "base/test/ios/wait_util.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #import "ios/testing/wait_util.h" 13 #import "ios/testing/wait_util.h"
14 #import "ios/web/public/test/earl_grey/web_view_matchers.h" 14 #import "ios/web/public/test/earl_grey/web_view_matchers.h"
15 #import "ios/web/public/test/web_view_interaction_test_util.h" 15 #import "ios/web/public/test/web_view_interaction_test_util.h"
16 #import "ios/web/web_state/web_state_impl.h" 16 #import "ios/web/web_state/web_state_impl.h"
17 17
18 using web::test::ExecuteJavaScript; 18 using web::test::ExecuteJavaScript;
19 19
20 namespace { 20 namespace {
21 21
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 id<GREYAction> webViewTapElement(WebState* state, 218 id<GREYAction> webViewTapElement(WebState* state,
219 const std::string& element_id) { 219 const std::string& element_id) {
220 CGRect rect = web::test::GetBoundingRectOfElementWithId(state, element_id); 220 CGRect rect = web::test::GetBoundingRectOfElementWithId(state, element_id);
221 CGPoint point = CGPointMake(CGRectGetMidX(rect), CGRectGetMidY(rect)); 221 CGPoint point = CGPointMake(CGRectGetMidX(rect), CGRectGetMidY(rect));
222 return CGRectIsEmpty(rect) ? webViewElementNotFound(element_id) 222 return CGRectIsEmpty(rect) ? webViewElementNotFound(element_id)
223 : webViewVerifiedActionOnElement( 223 : webViewVerifiedActionOnElement(
224 state, grey_tapAtPoint(point), element_id); 224 state, grey_tapAtPoint(point), element_id);
225 } 225 }
226 226
227 } // namespace web 227 } // namespace web
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698