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

Unified Diff: content/public/test/text_input_test_utils.cc

Issue 2054163003: Fix SitePerProcessTextInputManagerTest.StopTrackingCrashedChildFrame on CFI Bots. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed the added code to RenderWidgetHostViewChildFrame::Destroy(). Created 4 years, 6 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: content/public/test/text_input_test_utils.cc
diff --git a/content/public/test/text_input_test_utils.cc b/content/public/test/text_input_test_utils.cc
index e3282b49f2a2677f443018e9cb12365f7ddbc5b9..50dcccf1ee432800bfbbb57071bd0ac3471bd125 100644
--- a/content/public/test/text_input_test_utils.cc
+++ b/content/public/test/text_input_test_utils.cc
@@ -196,10 +196,18 @@ bool GetTextInputTypeForView(WebContents* web_contents,
if (!manager || !manager->IsRegistered(view_base))
return false;
- *type = manager->text_input_state_map_[view_base].type;
+ *type = manager->GetTextInputTypeForViewForTesting(view_base);
+
return true;
}
+size_t GetRegisteredViewsCountFromTextInputManager(WebContents* web_contents) {
+ std::unordered_set<RenderWidgetHostView*> views;
+ TextInputManager* manager =
+ static_cast<WebContentsImpl*>(web_contents)->GetTextInputManager();
+ return !!manager ? manager->GetRegisteredViewsCountForTesting() : 0;
+}
+
RenderWidgetHostView* GetActiveViewFromWebContents(WebContents* web_contents) {
return static_cast<WebContentsImpl*>(web_contents)
->GetTextInputManager()
« content/public/test/text_input_test_utils.h ('K') | « content/public/test/text_input_test_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698