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()); |