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

Unified Diff: ios/chrome/test/app/static_html_view_test_util.h

Issue 2784943002: Remove matcher to wait for static HTML view. (Closed)
Patch Set: typo 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
Index: ios/chrome/test/app/static_html_view_test_util.h
diff --git a/ios/chrome/test/app/static_html_view_test_util.h b/ios/chrome/test/app/static_html_view_test_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..8e19659a3dbedb8dfbb13b13989e7050d463d9ad
--- /dev/null
+++ b/ios/chrome/test/app/static_html_view_test_util.h
@@ -0,0 +1,19 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_CHROME_TEST_APP_STATIC_HTML_VIEW_TEST_UTIL_H_
+#define IOS_CHROME_TEST_APP_STATIC_HTML_VIEW_TEST_UTIL_H_
+
+#import "ios/web/public/web_state/web_state.h"
+
+namespace chrome_test_util {
+
+// Returns true if there is a static html view in the |web_state|, which
+// contains |text|. If the text is not present, or there is no static html view
+// it returns false.
+bool StaticHtmlViewContainingText(web::WebState* web_state, std::string text);
+
+} // namespace chrome_test_util
+
+#endif // IOS_CHROME_TEST_APP_STATIC_HTML_VIEW_TEST_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698