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

Unified Diff: blimp/net/blimp_message_output_buffer_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/blimp_message_output_buffer.cc ('k') | blimp/net/blimp_message_pump_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/blimp_message_output_buffer_unittest.cc
diff --git a/blimp/net/blimp_message_output_buffer_unittest.cc b/blimp/net/blimp_message_output_buffer_unittest.cc
index 6db7ec2a2aec04abae594ee953f7e763cf1eac73..6bb1cba154a3d4db83213fe307c1fbef285b71d3 100644
--- a/blimp/net/blimp_message_output_buffer_unittest.cc
+++ b/blimp/net/blimp_message_output_buffer_unittest.cc
@@ -29,9 +29,9 @@ class BlimpMessageOutputBufferTest : public testing::Test {
BlimpMessageOutputBufferTest() {}
void SetUp() override {
- input_msg_.set_type(BlimpMessage::INPUT);
+ input_msg_.mutable_input();
input_msg_.set_message_id(1);
- compositor_msg_.set_type(BlimpMessage::COMPOSITOR);
+ compositor_msg_.mutable_compositor();
compositor_msg_.set_message_id(2);
// Buffer should only have space for two unacknowledged messages
« no previous file with comments | « blimp/net/blimp_message_output_buffer.cc ('k') | blimp/net/blimp_message_pump_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698