| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <cstring> | 5 #include <cstring> |
| 6 | 6 |
| 7 #include "base/i18n/char_iterator.h" | 7 #include "base/i18n/char_iterator.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "chromeos/dbus/dbus_thread_manager.h" | 10 #include "chromeos/dbus/dbus_thread_manager.h" |
| 11 #include "chromeos/dbus/ibus/ibus_text.h" |
| 11 #include "chromeos/dbus/ibus/mock_ibus_client.h" | 12 #include "chromeos/dbus/ibus/mock_ibus_client.h" |
| 12 #include "chromeos/dbus/ibus/mock_ibus_input_context_client.h" | 13 #include "chromeos/dbus/ibus/mock_ibus_input_context_client.h" |
| 13 #include "chromeos/dbus/mock_dbus_thread_manager_without_gmock.h" | 14 #include "chromeos/dbus/mock_dbus_thread_manager_without_gmock.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 15 #include "ui/base/ime/input_method_delegate.h" | 16 #include "ui/base/ime/input_method_delegate.h" |
| 16 #include "ui/base/ime/input_method_ibus.h" | 17 #include "ui/base/ime/input_method_ibus.h" |
| 17 #include "ui/base/ime/text_input_client.h" | 18 #include "ui/base/ime/text_input_client.h" |
| 18 #include "ui/gfx/rect.h" | 19 #include "ui/gfx/rect.h" |
| 19 | 20 |
| 20 namespace ui { | 21 namespace ui { |
| (...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 769 composition_text.underlines[0].start_offset); | 770 composition_text.underlines[0].start_offset); |
| 770 EXPECT_EQ(GetOffsetInUTF16(kSampleText, selection.end_index), | 771 EXPECT_EQ(GetOffsetInUTF16(kSampleText, selection.end_index), |
| 771 composition_text.underlines[0].end_offset); | 772 composition_text.underlines[0].end_offset); |
| 772 EXPECT_EQ(SK_ColorBLACK, composition_text.underlines[0].color); | 773 EXPECT_EQ(SK_ColorBLACK, composition_text.underlines[0].color); |
| 773 EXPECT_TRUE(composition_text.underlines[0].thick); | 774 EXPECT_TRUE(composition_text.underlines[0].thick); |
| 774 } | 775 } |
| 775 | 776 |
| 776 // TODO(nona): Write more tests, especially for key event functions. | 777 // TODO(nona): Write more tests, especially for key event functions. |
| 777 | 778 |
| 778 } // namespace ui | 779 } // namespace ui |
| OLD | NEW |