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

Unified Diff: blimp/common/create_blimp_message_unittest.cc

Issue 1492643003: [Blimp Net] Add EngineAuthHandler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addresses comments and adds unit tests Created 5 years 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/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 1db89566f135fe26cfc4691ba79c09a5be9a1c4a..99a73cf767018dc6aa4c75c3b2e60250c2f8e8d1 100644
--- a/blimp/common/create_blimp_message_unittest.cc
+++ b/blimp/common/create_blimp_message_unittest.cc
@@ -40,5 +40,14 @@ TEST(CreateBlimpMessageTest, RenderWidgetMessage) {
EXPECT_EQ(kTabId, message->target_tab_id());
}
+TEST(CreateBlimpMessageTest, StartConnectionMessage) {
+ StartConnectionMessage* details = nullptr;
+ scoped_ptr<BlimpMessage> message = CreateBlimpMessage(&details);
+ EXPECT_NE(nullptr, details);
+ EXPECT_NE(nullptr, message);
+ EXPECT_EQ(details,
+ message->mutable_protocol_control()->mutable_start_connection());
+}
+
} // namespace
} // namespace blimp

Powered by Google App Engine
This is Rietveld 408576698