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

Unified Diff: blimp/net/blimp_connection_unittest.cc

Issue 1933053003: Used oneof in blimp_message.proto (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
Index: blimp/net/blimp_connection_unittest.cc
diff --git a/blimp/net/blimp_connection_unittest.cc b/blimp/net/blimp_connection_unittest.cc
index 59c7a39a370f218e2a17c58283f87dd14d19822b..a634d866649811b78ee4a841da6e224074465acf 100644
--- a/blimp/net/blimp_connection_unittest.cc
+++ b/blimp/net/blimp_connection_unittest.cc
@@ -49,13 +49,13 @@ class BlimpConnectionTest : public testing::Test {
protected:
std::unique_ptr<BlimpMessage> CreateInputMessage() {
std::unique_ptr<BlimpMessage> msg(new BlimpMessage);
- msg->set_type(BlimpMessage::INPUT);
+ msg->mutable_input();
return msg;
}
std::unique_ptr<BlimpMessage> CreateControlMessage() {
std::unique_ptr<BlimpMessage> msg(new BlimpMessage);
- msg->set_type(BlimpMessage::TAB_CONTROL);
+ msg->mutable_tab_control();
return msg;
}

Powered by Google App Engine
This is Rietveld 408576698