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

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

Issue 1663013005: [DO NOT REVIEW] Always calling Notify for android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Trying to Fix MAC Created 4 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
« no previous file with comments | « content/public/test/browser_test_utils.h ('k') | content/renderer/render_view_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/browser_test_utils.cc
diff --git a/content/public/test/browser_test_utils.cc b/content/public/test/browser_test_utils.cc
index fac8957dbfd8e28c7518cbcb49e8401e6c04cdec..703202d0ff59cb9901dce5ef4755b19d05f6ce5b 100644
--- a/content/public/test/browser_test_utils.cc
+++ b/content/public/test/browser_test_utils.cc
@@ -29,6 +29,7 @@
#include "content/browser/web_contents/web_contents_view.h"
#include "content/common/input/synthetic_web_input_event_builders.h"
#include "content/common/input_messages.h"
+#include "content/common/text_input_state.h"
#include "content/common/view_messages.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/histogram_fetcher.h"
@@ -1223,4 +1224,18 @@ uint32_t InputMsgWatcher::WaitForAck() {
return ack_result_;
}
+TextInputStateTestExport::TextInputStateTestExport(
+ const ui::TextInputType& type,
+ const std::string& value)
+ : type_(type), value_(value) {}
+
+// static
+TextInputStateTestExport TextInputStateTestExport::FromWebContents(
+ WebContents* web_contents) {
+ TextInputState state =
+ static_cast<WebContentsImpl*>(web_contents)->GetTextInputState();
+
+ return TextInputStateTestExport(state.type, state.value);
+}
+
} // namespace content
« no previous file with comments | « content/public/test/browser_test_utils.h ('k') | content/renderer/render_view_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698