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

Side by Side Diff: content/browser/websocket/websocket_dispatcher_host_unittest.cc

Issue 2119973002: Port WebSockets to Mojo IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/websocket_dispatcher_host.h" 5 #include "content/browser/renderer_host/websocket_dispatcher_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 // WebSocketHostMsg_AddChannelRequest. 433 // WebSocketHostMsg_AddChannelRequest.
434 host->WebSocketHost::OnMessageReceived(message); 434 host->WebSocketHost::OnMessageReceived(message);
435 435
436 EXPECT_EQ(0, dispatcher_host_->num_pending_connections()); 436 EXPECT_EQ(0, dispatcher_host_->num_pending_connections());
437 EXPECT_EQ(1, dispatcher_host_->num_failed_connections()); 437 EXPECT_EQ(1, dispatcher_host_->num_failed_connections());
438 EXPECT_EQ(0, dispatcher_host_->num_succeeded_connections()); 438 EXPECT_EQ(0, dispatcher_host_->num_succeeded_connections());
439 } 439 }
440 440
441 } // namespace 441 } // namespace
442 } // namespace content 442 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698