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

Unified Diff: chrome/browser/chromeos/input_method/textinput_surroundingtext_browsertest.cc

Issue 24012002: Move Range code to gfx. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: d Created 7 years, 3 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 | « ash/system/user/tray_user.cc ('k') | chrome/browser/chromeos/input_method/textinput_test_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/input_method/textinput_surroundingtext_browsertest.cc
diff --git a/chrome/browser/chromeos/input_method/textinput_surroundingtext_browsertest.cc b/chrome/browser/chromeos/input_method/textinput_surroundingtext_browsertest.cc
index f5873d39dea1622f6823628d2523c7d16504604d..d0351bdffc42ac372a58b694c23cf0adda221e67 100644
--- a/chrome/browser/chromeos/input_method/textinput_surroundingtext_browsertest.cc
+++ b/chrome/browser/chromeos/input_method/textinput_surroundingtext_browsertest.cc
@@ -37,8 +37,8 @@ IN_PROC_BROWSER_TEST_F(TextInput_SurroundingTextChangedTest,
const string16 sample_text1 = UTF8ToUTF16("abcde");
const string16 sample_text2 = UTF8ToUTF16("fghij");
const string16 surrounding_text2 = sample_text1 + sample_text2;
- ui::Range expected_range1(5, 5);
- ui::Range expected_range2(10, 10);
+ gfx::Range expected_range1(5, 5);
+ gfx::Range expected_range2(10, 10);
ASSERT_TRUE(helper.GetTextInputClient());
@@ -72,7 +72,7 @@ IN_PROC_BROWSER_TEST_F(TextInput_SurroundingTextChangedTest,
EXPECT_EQ(ui::TEXT_INPUT_TYPE_TEXT_AREA, helper.GetTextInputType());
const string16 sample_text = UTF8ToUTF16("abcde");
- ui::Range expected_range(5, 5);
+ gfx::Range expected_range(5, 5);
ui::CompositionText composition_text;
composition_text.text = sample_text;
@@ -103,7 +103,7 @@ IN_PROC_BROWSER_TEST_F(TextInput_SurroundingTextChangedTest,
content::WebContents* tab =
browser()->tab_strip_model()->GetActiveWebContents();
- const ui::Range zero_range(0, 0);
+ const gfx::Range zero_range(0, 0);
// We expect no surrounding texts.
helper.ClickElement("empty_textarea", tab);
@@ -116,7 +116,7 @@ IN_PROC_BROWSER_TEST_F(TextInput_SurroundingTextChangedTest,
// Click textarea containing text, so expecting new surrounding text comes.
helper.ClickElement("filled_textarea", tab);
const string16 expected_text = UTF8ToUTF16("abcde");
- const ui::Range expected_range(5, 5);
+ const gfx::Range expected_range(5, 5);
helper.WaitForSurroundingTextChanged(expected_text, expected_range);
EXPECT_EQ(expected_text, helper.GetSurroundingText());
EXPECT_EQ(expected_range, helper.GetSelectionRange());
« no previous file with comments | « ash/system/user/tray_user.cc ('k') | chrome/browser/chromeos/input_method/textinput_test_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698