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

Unified Diff: blimp/net/blimp_message_demultiplexer_unittest.cc

Issue 1551583003: Implementation and fixes for Blimp client/engine E2E communication. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dtrainor-linux-cl1528243002
Patch Set: Fixed misplaced EXPORT directive Created 4 years, 12 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_demultiplexer.cc ('k') | blimp/net/blimp_message_output_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/blimp_message_demultiplexer_unittest.cc
diff --git a/blimp/net/blimp_message_demultiplexer_unittest.cc b/blimp/net/blimp_message_demultiplexer_unittest.cc
index b3248b7f8ec9ccae5497b38d7c31c650d059b4d4..95e63532724bdfd8784607bc8142716a6f093e47 100644
--- a/blimp/net/blimp_message_demultiplexer_unittest.cc
+++ b/blimp/net/blimp_message_demultiplexer_unittest.cc
@@ -58,5 +58,12 @@ TEST_F(BlimpMessageDemultiplexerTest, ProcessMessageFailed) {
EXPECT_EQ(net::ERR_FAILED, cb2.WaitForResult());
}
+TEST_F(BlimpMessageDemultiplexerTest, ProcessMessageNoRegisteredHandler) {
+ net::TestCompletionCallback cb;
+ scoped_ptr<BlimpMessage> unknown_message(new BlimpMessage);
+ unknown_message->set_type(BlimpMessage::UNKNOWN);
+ demux_.ProcessMessage(std::move(unknown_message), cb.callback());
+ EXPECT_EQ(net::ERR_NOT_IMPLEMENTED, cb.WaitForResult());
+}
} // namespace blimp
« no previous file with comments | « blimp/net/blimp_message_demultiplexer.cc ('k') | blimp/net/blimp_message_output_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698