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

Side by Side Diff: remoting/protocol/client_video_dispatcher_unittest.cc

Issue 1649063003: Add MessagePipe interface. Use it in ChannelDispatcherBase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@simple_parser
Patch Set: Created 4 years, 10 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "remoting/protocol/client_video_dispatcher.h" 5 #include "remoting/protocol/client_video_dispatcher.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/scoped_vector.h" 8 #include "base/memory/scoped_vector.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
11 #include "remoting/base/buffered_socket_writer.h" 11 #include "remoting/base/buffered_socket_writer.h"
12 #include "remoting/base/constants.h" 12 #include "remoting/base/constants.h"
13 #include "remoting/proto/video.pb.h" 13 #include "remoting/proto/video.pb.h"
14 #include "remoting/protocol/fake_stream_socket.h" 14 #include "remoting/protocol/fake_stream_socket.h"
15 #include "remoting/protocol/message_reader.h"
15 #include "remoting/protocol/message_serialization.h" 16 #include "remoting/protocol/message_serialization.h"
16 #include "remoting/protocol/video_stub.h" 17 #include "remoting/protocol/video_stub.h"
17 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
18 19
19 namespace remoting { 20 namespace remoting {
20 namespace protocol { 21 namespace protocol {
21 22
22 class ClientVideoDispatcherTest : public testing::Test, 23 class ClientVideoDispatcherTest : public testing::Test,
23 public VideoStub, 24 public VideoStub,
24 public ChannelDispatcherBase::EventHandler { 25 public ChannelDispatcherBase::EventHandler {
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 base::RunLoop().RunUntilIdle(); 177 base::RunLoop().RunUntilIdle();
177 178
178 // Verify order of Ack messages. 179 // Verify order of Ack messages.
179 ASSERT_EQ(2U, ack_messages_.size()); 180 ASSERT_EQ(2U, ack_messages_.size());
180 EXPECT_EQ(kTestFrameId, ack_messages_[0]->frame_id()); 181 EXPECT_EQ(kTestFrameId, ack_messages_[0]->frame_id());
181 EXPECT_EQ(kTestFrameId + 1, ack_messages_[1]->frame_id()); 182 EXPECT_EQ(kTestFrameId + 1, ack_messages_[1]->frame_id());
182 } 183 }
183 184
184 } // namespace protocol 185 } // namespace protocol
185 } // namespace remoting 186 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/client_video_dispatcher.cc ('k') | remoting/protocol/host_control_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698