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

Side by Side Diff: ios/chrome/test/earl_grey/chrome_actions.h

Issue 2580333003: Upstream Chrome on iOS source code [10/11]. (Closed)
Patch Set: Created 4 years 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef IOS_CHROME_TEST_EARL_GREY_CHROME_ACTIONS_H_
6 #define IOS_CHROME_TEST_EARL_GREY_CHROME_ACTIONS_H_
7
8 #include <string>
9
10 #import <EarlGrey/EarlGrey.h>
11
12 namespace chrome_test_util {
13
14 // Action to longpress on element |element_id| in the Chrome's webview.
15 // If |triggers_context_menu| is true, this gesture is expected to
16 // cause the context menu to appear, and is not expected to trigger events
17 // in the webview. If |triggers_context_menu| is false, the converse is true.
18 // This action doesn't fail if the context menu isn't displayed; calling code
19 // should check for that separately with a matcher.
20 id<GREYAction> longPressElementForContextMenu(const std::string& element_id,
21 bool triggers_context_menu);
22
23 // Action to turn the switch of a CollectionViewSwitchCell to the given |on|
24 // state.
25 id<GREYAction> turnCollectionViewSwitchOn(BOOL on);
26
27 } // namespace chrome_test_util
28
29 #endif // IOS_CHROME_TEST_EARL_GREY_CHROME_ACTIONS_H_
OLDNEW
« no previous file with comments | « ios/chrome/test/earl_grey/accessibility_util.mm ('k') | ios/chrome/test/earl_grey/chrome_actions.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698