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

Side by Side Diff: webrtc/media/base/videoengine_unittest.h

Issue 1715883002: Remove DeviceManager and DeviceInfo. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase 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 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 VideoMediaChannelTest<E, C>() 101 VideoMediaChannelTest<E, C>()
102 : call_(webrtc::Call::Create(webrtc::Call::Config())) {} 102 : call_(webrtc::Call::Create(webrtc::Call::Config())) {}
103 103
104 virtual cricket::VideoCodec DefaultCodec() = 0; 104 virtual cricket::VideoCodec DefaultCodec() = 0;
105 105
106 virtual cricket::StreamParams DefaultSendStreamParams() { 106 virtual cricket::StreamParams DefaultSendStreamParams() {
107 return cricket::StreamParams::CreateLegacy(kSsrc); 107 return cricket::StreamParams::CreateLegacy(kSsrc);
108 } 108 }
109 109
110 virtual void SetUp() { 110 virtual void SetUp() {
111 cricket::Device device("test", "device");
112 engine_.Init(); 111 engine_.Init();
113 channel_.reset(engine_.CreateChannel(call_.get(), cricket::MediaConfig(), 112 channel_.reset(engine_.CreateChannel(call_.get(), cricket::MediaConfig(),
114 cricket::VideoOptions())); 113 cricket::VideoOptions()));
115 EXPECT_TRUE(channel_.get() != NULL); 114 EXPECT_TRUE(channel_.get() != NULL);
116 network_interface_.SetDestination(channel_.get()); 115 network_interface_.SetDestination(channel_.get());
117 channel_->SetInterface(&network_interface_); 116 channel_->SetInterface(&network_interface_);
118 media_error_ = cricket::VideoMediaChannel::ERROR_NONE; 117 media_error_ = cricket::VideoMediaChannel::ERROR_NONE;
119 cricket::VideoRecvParameters parameters; 118 cricket::VideoRecvParameters parameters;
120 parameters.codecs = engine_.codecs(); 119 parameters.codecs = engine_.codecs();
121 channel_->SetRecvParameters(parameters); 120 channel_->SetRecvParameters(parameters);
(...skipping 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after
1182 rtc::scoped_ptr<C> channel_; 1181 rtc::scoped_ptr<C> channel_;
1183 cricket::FakeNetworkInterface network_interface_; 1182 cricket::FakeNetworkInterface network_interface_;
1184 cricket::FakeVideoRenderer renderer_; 1183 cricket::FakeVideoRenderer renderer_;
1185 cricket::VideoMediaChannel::Error media_error_; 1184 cricket::VideoMediaChannel::Error media_error_;
1186 1185
1187 // Used by test cases where 2 streams are run on the same channel. 1186 // Used by test cases where 2 streams are run on the same channel.
1188 cricket::FakeVideoRenderer renderer2_; 1187 cricket::FakeVideoRenderer renderer2_;
1189 }; 1188 };
1190 1189
1191 #endif // WEBRTC_MEDIA_BASE_VIDEOENGINE_UNITTEST_H_ NOLINT 1190 #endif // WEBRTC_MEDIA_BASE_VIDEOENGINE_UNITTEST_H_ NOLINT
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698