OLD | NEW |
(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_ |
OLD | NEW |