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

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

Issue 2757723002: Update ICE protocol to handle closed channel (Closed)
Patch Set: . Created 3 years, 9 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 #define _USE_MATH_DEFINES // For VC++ to get M_PI. This has to be first. 5 #define _USE_MATH_DEFINES // For VC++ to get M_PI. This has to be first.
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/ptr_util.h" 11 #include "base/memory/ptr_util.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/run_loop.h" 13 #include "base/run_loop.h"
14 #include "base/test/scoped_task_scheduler.h" 14 #include "base/test/scoped_task_scheduler.h"
15 #include "base/threading/thread.h" 15 #include "base/threading/thread.h"
16 #include "base/threading/thread_checker.h" 16 #include "base/threading/thread_checker.h"
17 #include "base/threading/thread_task_runner_handle.h"
joedow 2017/03/17 15:13:28 I don't see any usage of base::ThreadTaskRunnerHan
Sergey Ulanov 2017/03/17 18:18:22 Done.
17 #include "remoting/base/constants.h" 18 #include "remoting/base/constants.h"
18 #include "remoting/proto/audio.pb.h" 19 #include "remoting/proto/audio.pb.h"
19 #include "remoting/protocol/audio_source.h" 20 #include "remoting/protocol/audio_source.h"
20 #include "remoting/protocol/audio_stream.h" 21 #include "remoting/protocol/audio_stream.h"
21 #include "remoting/protocol/audio_stub.h" 22 #include "remoting/protocol/audio_stub.h"
22 #include "remoting/protocol/fake_session.h" 23 #include "remoting/protocol/fake_session.h"
23 #include "remoting/protocol/fake_video_renderer.h" 24 #include "remoting/protocol/fake_video_renderer.h"
24 #include "remoting/protocol/ice_connection_to_client.h" 25 #include "remoting/protocol/ice_connection_to_client.h"
25 #include "remoting/protocol/ice_connection_to_host.h" 26 #include "remoting/protocol/ice_connection_to_host.h"
26 #include "remoting/protocol/protocol_mock_objects.h" 27 #include "remoting/protocol/protocol_mock_objects.h"
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 auto capturer = base::MakeUnique<TestScreenCapturer>(); 678 auto capturer = base::MakeUnique<TestScreenCapturer>();
678 capturer->FailNthFrame(1); 679 capturer->FailNthFrame(1);
679 auto video_stream = host_connection_->StartVideoStream(std::move(capturer)); 680 auto video_stream = host_connection_->StartVideoStream(std::move(capturer));
680 681
681 WaitNextVideoFrame(); 682 WaitNextVideoFrame();
682 WaitNextVideoFrame(); 683 WaitNextVideoFrame();
683 } 684 }
684 685
685 } // namespace protocol 686 } // namespace protocol
686 } // namespace remoting 687 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698