| Index: ui/base/ime/input_method_ibus_unittest.cc
|
| diff --git a/ui/base/ime/input_method_ibus_unittest.cc b/ui/base/ime/input_method_ibus_unittest.cc
|
| index 0ed408611aa4bec53f9702c4d3a18ad3b447ba9f..df04e6883ed0588dfd89c1879347b48942ac21be 100644
|
| --- a/ui/base/ime/input_method_ibus_unittest.cc
|
| +++ b/ui/base/ime/input_method_ibus_unittest.cc
|
| @@ -1147,9 +1147,10 @@ TEST_F(InputMethodIBusTest, SurroundingText_NoSelectionTest) {
|
| selection_range_ = ui::Range(3, 3);
|
|
|
| // Set the verifier for SetSurroundingText mock call.
|
| - SetSurroundingTextVerifier verifier(UTF16ToUTF8(surrounding_text_),
|
| - selection_range_.start(),
|
| - selection_range_.end());
|
| + SetSurroundingTextVerifier verifier(
|
| + UTF16ToUTF8(surrounding_text_),
|
| + selection_range_.start() - text_range_.start(),
|
| + selection_range_.end() - text_range_.end());
|
|
|
| mock_ibus_input_context_client_->set_set_surrounding_text_handler(
|
| base::Bind(&SetSurroundingTextVerifier::Verify,
|
| @@ -1178,9 +1179,10 @@ TEST_F(InputMethodIBusTest, SurroundingText_SelectionTest) {
|
| selection_range_ = ui::Range(2, 5);
|
|
|
| // Set the verifier for SetSurroundingText mock call.
|
| - SetSurroundingTextVerifier verifier(UTF16ToUTF8(surrounding_text_),
|
| - selection_range_.start(),
|
| - selection_range_.end());
|
| + SetSurroundingTextVerifier verifier(
|
| + UTF16ToUTF8(surrounding_text_),
|
| + selection_range_.start() - text_range_.start(),
|
| + selection_range_.end() - text_range_.end());
|
|
|
| mock_ibus_input_context_client_->set_set_surrounding_text_handler(
|
| base::Bind(&SetSurroundingTextVerifier::Verify,
|
|
|