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

Unified Diff: ui/views/controls/textfield/textfield_unittest.cc

Issue 700563002: Implementing directional text selection handles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new_assets_text
Patch Set: Removing the SelectionBound test from Android, since touch_editing_controller not included in Andro… Created 6 years, 1 month 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 | « ui/views/controls/textfield/textfield.cc ('k') | ui/views/touchui/touch_selection_controller_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/textfield/textfield_unittest.cc
diff --git a/ui/views/controls/textfield/textfield_unittest.cc b/ui/views/controls/textfield/textfield_unittest.cc
index 28f75441c969bf1a6d2d7a4bdd173475941ff935..84da7d4e37f0473ee520dd9fd47c223d63990270 100644
--- a/ui/views/controls/textfield/textfield_unittest.cc
+++ b/ui/views/controls/textfield/textfield_unittest.cc
@@ -31,6 +31,7 @@
#include "ui/views/test/test_views_delegate.h"
#include "ui/views/test/views_test_base.h"
#include "ui/views/widget/widget.h"
+#include "ui/wm/core/default_screen_position_client.h"
#include "url/gurl.h"
#if defined(OS_WIN)
@@ -159,6 +160,14 @@ class TextfieldTest : public ViewsTestBase, public TextfieldController {
}
// ::testing::Test:
+ void SetUp() override {
+ ViewsTestBase::SetUp();
+#if defined(USE_AURA)
+ aura::client::SetScreenPositionClient(GetContext(),
+ &screen_position_client_);
+#endif // !defined(USE_AURA)
+ }
+
void TearDown() override {
if (widget_)
widget_->Close();
@@ -375,6 +384,7 @@ class TextfieldTest : public ViewsTestBase, public TextfieldController {
private:
ui::ClipboardType copied_to_clipboard_;
+ wm::DefaultScreenPositionClient screen_position_client_;
DISALLOW_COPY_AND_ASSIGN(TextfieldTest);
};
« no previous file with comments | « ui/views/controls/textfield/textfield.cc ('k') | ui/views/touchui/touch_selection_controller_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698