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

Unified Diff: blimp/net/input_message_unittest.cc

Issue 1933053003: Used oneof in blimp_message.proto (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 4 years, 7 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/engine_authentication_handler.cc ('k') | blimp/net/thread_pipe_manager.h » ('j') | 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 4b7a2e76b3f7042e95740aee69c94a1e3093292d..071b0fc33fe48330f00f8ae52569563604722503 100644
--- a/blimp/net/input_message_unittest.cc
+++ b/blimp/net/input_message_unittest.cc
@@ -24,8 +24,7 @@ void ValidateWebGestureEventRoundTripping(const blink::WebGestureEvent& event) {
std::unique_ptr<BlimpMessage> proto = generator.GenerateMessage(event);
EXPECT_NE(nullptr, proto.get());
- EXPECT_TRUE(proto->has_input());
- EXPECT_EQ(BlimpMessage::INPUT, proto->type());
+ EXPECT_EQ(BlimpMessage::kInput, proto->feature_case());
std::unique_ptr<blink::WebGestureEvent> new_event =
processor.ProcessMessage(proto->input());
« no previous file with comments | « blimp/net/engine_authentication_handler.cc ('k') | blimp/net/thread_pipe_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698