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

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, 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
« no previous file with comments | « webrtc/media/base/videocapturer.h ('k') | webrtc/media/devices/deviceinfo.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 VideoMediaChannelTest<E, C>() 102 VideoMediaChannelTest<E, C>()
103 : call_(webrtc::Call::Create(webrtc::Call::Config())) {} 103 : call_(webrtc::Call::Create(webrtc::Call::Config())) {}
104 104
105 virtual cricket::VideoCodec DefaultCodec() = 0; 105 virtual cricket::VideoCodec DefaultCodec() = 0;
106 106
107 virtual cricket::StreamParams DefaultSendStreamParams() { 107 virtual cricket::StreamParams DefaultSendStreamParams() {
108 return cricket::StreamParams::CreateLegacy(kSsrc); 108 return cricket::StreamParams::CreateLegacy(kSsrc);
109 } 109 }
110 110
111 virtual void SetUp() { 111 virtual void SetUp() {
112 cricket::Device device("test", "device");
113 engine_.Init(); 112 engine_.Init();
114 channel_.reset(engine_.CreateChannel(call_.get(), cricket::MediaConfig(), 113 channel_.reset(engine_.CreateChannel(call_.get(), cricket::MediaConfig(),
115 cricket::VideoOptions())); 114 cricket::VideoOptions()));
116 EXPECT_TRUE(channel_.get() != NULL); 115 EXPECT_TRUE(channel_.get() != NULL);
117 network_interface_.SetDestination(channel_.get()); 116 network_interface_.SetDestination(channel_.get());
118 channel_->SetInterface(&network_interface_); 117 channel_->SetInterface(&network_interface_);
119 media_error_ = cricket::VideoMediaChannel::ERROR_NONE; 118 media_error_ = cricket::VideoMediaChannel::ERROR_NONE;
120 cricket::VideoRecvParameters parameters; 119 cricket::VideoRecvParameters parameters;
121 parameters.codecs = engine_.codecs(); 120 parameters.codecs = engine_.codecs();
122 channel_->SetRecvParameters(parameters); 121 channel_->SetRecvParameters(parameters);
(...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after
1186 std::unique_ptr<C> channel_; 1185 std::unique_ptr<C> channel_;
1187 cricket::FakeNetworkInterface network_interface_; 1186 cricket::FakeNetworkInterface network_interface_;
1188 cricket::FakeVideoRenderer renderer_; 1187 cricket::FakeVideoRenderer renderer_;
1189 cricket::VideoMediaChannel::Error media_error_; 1188 cricket::VideoMediaChannel::Error media_error_;
1190 1189
1191 // Used by test cases where 2 streams are run on the same channel. 1190 // Used by test cases where 2 streams are run on the same channel.
1192 cricket::FakeVideoRenderer renderer2_; 1191 cricket::FakeVideoRenderer renderer2_;
1193 }; 1192 };
1194 1193
1195 #endif // WEBRTC_MEDIA_BASE_VIDEOENGINE_UNITTEST_H_ NOLINT 1194 #endif // WEBRTC_MEDIA_BASE_VIDEOENGINE_UNITTEST_H_ NOLINT
OLDNEW
« no previous file with comments | « webrtc/media/base/videocapturer.h ('k') | webrtc/media/devices/deviceinfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698