| 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 #import "ios/web/shell/test/earl_grey/shell_actions.h" | 5 #import "ios/web/shell/test/earl_grey/shell_actions.h" |
| 6 | 6 |
| 7 #import "ios/web/public/test/earl_grey/web_view_actions.h" | 7 #import "ios/web/public/test/earl_grey/web_view_actions.h" |
| 8 #import "ios/web/shell/test/app/web_shell_test_util.h" | 8 #import "ios/web/shell/test/app/web_shell_test_util.h" |
| 9 | 9 |
| 10 #if !defined(__has_feature) || !__has_feature(objc_arc) | 10 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 11 #error "This file requires ARC support." | 11 #error "This file requires ARC support." |
| 12 #endif | 12 #endif |
| 13 | 13 |
| 14 namespace web { | 14 namespace web { |
| 15 | 15 |
| 16 id<GREYAction> longPressElementForContextMenu(const std::string& element_id, | 16 id<GREYAction> LongPressElementForContextMenu(const std::string& element_id, |
| 17 bool triggers_context_menu) { | 17 bool triggers_context_menu) { |
| 18 return webViewLongPressElementForContextMenu( | 18 return WebViewLongPressElementForContextMenu( |
| 19 shell_test_util::GetCurrentWebState(), element_id, triggers_context_menu); | 19 shell_test_util::GetCurrentWebState(), element_id, triggers_context_menu); |
| 20 } | 20 } |
| 21 | 21 |
| 22 } // namespace web | 22 } // namespace web |
| OLD | NEW |