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

Unified Diff: ios/chrome/test/earl_grey/chrome_actions.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/test/earl_grey/chrome_actions.h ('k') | ios/web/public/test/earl_grey/web_view_actions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/test/earl_grey/chrome_actions.mm
diff --git a/ios/chrome/test/earl_grey/chrome_actions.mm b/ios/chrome/test/earl_grey/chrome_actions.mm
index 3f2690f438dc7cbed493bcbd2d9076f495f76121..6c4eb6c1eb5097ebbd4f827dfd1db020bc1e55cf 100644
--- a/ios/chrome/test/earl_grey/chrome_actions.mm
+++ b/ios/chrome/test/earl_grey/chrome_actions.mm
@@ -15,14 +15,19 @@
namespace chrome_test_util {
-id<GREYAction> longPressElementForContextMenu(const std::string& element_id,
+id<GREYAction> LongPressElementForContextMenu(const std::string& element_id,
bool triggers_context_menu) {
- return webViewLongPressElementForContextMenu(
+ return WebViewLongPressElementForContextMenu(
chrome_test_util::GetCurrentWebState(), element_id,
triggers_context_menu);
}
-id<GREYAction> turnCollectionViewSwitchOn(BOOL on) {
+id<GREYAction> longPressElementForContextMenu(const std::string& element_id,
+ bool triggers_context_menu) {
+ return LongPressElementForContextMenu(element_id, triggers_context_menu);
+}
+
+id<GREYAction> TurnCollectionViewSwitchOn(BOOL on) {
id<GREYMatcher> constraints = grey_not(grey_systemAlertViewShown());
NSString* actionName =
[NSString stringWithFormat:@"Turn collection view switch to %@ state",
« no previous file with comments | « ios/chrome/test/earl_grey/chrome_actions.h ('k') | ios/web/public/test/earl_grey/web_view_actions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698