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

Unified Diff: ios/web/shell/test/earl_grey/shell_matchers.mm

Issue 2275303004: Context menu egtests, plus related utilities. (Closed)
Patch Set: Fewer References. Created 4 years, 4 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/web/shell/test/earl_grey/shell_matchers.h ('k') | ios/web/shell/view_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/shell/test/earl_grey/shell_matchers.mm
diff --git a/ios/web/shell/test/earl_grey/shell_matchers.mm b/ios/web/shell/test/earl_grey/shell_matchers.mm
index 88e6e1222014c38f82c679367efa5746970ca771..5e71d586fcaf04b655d23df432dffb640bcbae79 100644
--- a/ios/web/shell/test/earl_grey/shell_matchers.mm
+++ b/ios/web/shell/test/earl_grey/shell_matchers.mm
@@ -6,6 +6,7 @@
#import "base/mac/foundation_util.h"
#include "base/strings/sys_string_conversions.h"
+#import "ios/testing/earl_grey/matchers.h"
#include "ios/testing/earl_grey/wait_util.h"
#import "ios/web/public/web_state/web_state.h"
#import "ios/web/public/test/earl_grey/web_view_matchers.h"
@@ -14,16 +15,20 @@
namespace web {
-id<GREYMatcher> webViewContainingText(std::string text) {
+id<GREYMatcher> webViewContainingText(const std::string& text) {
WebState* web_state = shell_test_util::GetCurrentWebState();
return webViewContainingText(std::move(text), web_state);
}
-id<GREYMatcher> webViewCssSelector(std::string selector) {
+id<GREYMatcher> webViewCssSelector(const std::string& selector) {
WebState* web_state = shell_test_util::GetCurrentWebState();
return webViewCssSelector(std::move(selector), web_state);
}
+id<GREYMatcher> webView() {
+ return webViewInWebState(shell_test_util::GetCurrentWebState());
+}
+
id<GREYMatcher> webViewScrollView() {
return webViewScrollView(shell_test_util::GetCurrentWebState());
}
« no previous file with comments | « ios/web/shell/test/earl_grey/shell_matchers.h ('k') | ios/web/shell/view_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698