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

Unified Diff: blimp/net/input_message_unittest.cc

Issue 1779673003: Added network components for blimp text input feature (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge origin/master Created 4 years, 9 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 | « blimp/net/input_message_converter.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/input_message_unittest.cc
diff --git a/blimp/net/input_message_unittest.cc b/blimp/net/input_message_unittest.cc
index 6157f2b01d8e6a22cdb9456eea9969810f1a16a2..02579d7ebad060033fa31cac43020c57a30bab4b 100644
--- a/blimp/net/input_message_unittest.cc
+++ b/blimp/net/input_message_unittest.cc
@@ -130,4 +130,13 @@ TEST(InputMessageTest, TestUnsupportedInputEventSerializationFails) {
EXPECT_EQ(nullptr, generator.GenerateMessage(event).get());
}
+TEST(InputMessageConverterTest, TestTextInputTypeToProtoConversion) {
+ for (size_t i = ui::TextInputType::TEXT_INPUT_TYPE_TEXT;
+ i < ui::TextInputType::TEXT_INPUT_TYPE_MAX; i++) {
+ ui::TextInputType type = static_cast<ui::TextInputType>(i);
+ EXPECT_EQ(type, InputMessageConverter::TextInputTypeFromProto(
+ InputMessageConverter::TextInputTypeToProto(type)));
+ }
+}
+
} // namespace blimp
« no previous file with comments | « blimp/net/input_message_converter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698