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

Unified Diff: blimp/common/create_blimp_message_unittest.cc

Issue 1970463004: Blimp: Add BlobChannel Helium messages and delegate impls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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/common/create_blimp_message.cc ('k') | blimp/common/logging.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/common/create_blimp_message_unittest.cc
diff --git a/blimp/common/create_blimp_message_unittest.cc b/blimp/common/create_blimp_message_unittest.cc
index 063eed58aadbc90889a28a89508e579f9a5f6b9b..2546b784903fb16fb91f4ce852665776551ef0d2 100644
--- a/blimp/common/create_blimp_message_unittest.cc
+++ b/blimp/common/create_blimp_message_unittest.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/memory/ptr_util.h"
#include "blimp/common/create_blimp_message.h"
#include "blimp/common/proto/blimp_message.pb.h"
#include "blimp/common/proto/compositor.pb.h"
@@ -92,5 +93,13 @@ TEST(CreateBlimpMessageTest, StartConnectionMessage) {
message->protocol_control().start_connection().protocol_version());
}
+TEST(CreateBlimpMessageTest, BlobChannelMessage) {
+ BlobChannelMessage* details;
+ std::unique_ptr<BlimpMessage> message = CreateBlimpMessage(&details);
+ ASSERT_TRUE(message);
+ EXPECT_EQ(details, &message->blob_channel());
+ EXPECT_EQ(BlimpMessage::kBlobChannel, message->feature_case());
+}
+
} // namespace
} // namespace blimp
« no previous file with comments | « blimp/common/create_blimp_message.cc ('k') | blimp/common/logging.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698