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

Side by Side Diff: webrtc/video/video_quality_test.h

Issue 2794243002: Making FakeNetworkPipe demux audio and video packets. (Closed)
Patch Set: fixing android Created 3 years, 8 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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 #ifndef WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_ 10 #ifndef WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_
11 #define WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_ 11 #define WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_
12 12
13 #include <map>
13 #include <memory> 14 #include <memory>
14 #include <string> 15 #include <string>
15 #include <vector> 16 #include <vector>
16 17
17 #include "webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.h" 18 #include "webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.h"
18 #include "webrtc/test/call_test.h" 19 #include "webrtc/test/call_test.h"
19 #include "webrtc/test/frame_generator.h" 20 #include "webrtc/test/frame_generator.h"
20 #include "webrtc/test/testsupport/trace_to_stderr.h" 21 #include "webrtc/test/testsupport/trace_to_stderr.h"
21 22
22 namespace webrtc { 23 namespace webrtc {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 90
90 static void FillScalabilitySettings( 91 static void FillScalabilitySettings(
91 Params* params, 92 Params* params,
92 const std::vector<std::string>& stream_descriptors, 93 const std::vector<std::string>& stream_descriptors,
93 size_t selected_stream, 94 size_t selected_stream,
94 int num_spatial_layers, 95 int num_spatial_layers,
95 int selected_sl, 96 int selected_sl,
96 const std::vector<std::string>& sl_descriptors); 97 const std::vector<std::string>& sl_descriptors);
97 98
98 protected: 99 protected:
100 std::map<uint8_t, webrtc::MediaType> payload_type_map_;
101
99 // No-op implementation to be able to instantiate this class from non-TEST_F 102 // No-op implementation to be able to instantiate this class from non-TEST_F
100 // locations. 103 // locations.
101 void TestBody() override; 104 void TestBody() override;
102 105
103 // Helper methods accessing only params_. 106 // Helper methods accessing only params_.
104 std::string GenerateGraphTitle() const; 107 std::string GenerateGraphTitle() const;
105 void CheckParams(); 108 void CheckParams();
106 109
107 // Helper static methods. 110 // Helper static methods.
108 static VideoStream DefaultVideoStream(const Params& params); 111 static VideoStream DefaultVideoStream(const Params& params);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 int send_logs_; 149 int send_logs_;
147 150
148 VideoSendStream::DegradationPreference degradation_preference_ = 151 VideoSendStream::DegradationPreference degradation_preference_ =
149 VideoSendStream::DegradationPreference::kMaintainFramerate; 152 VideoSendStream::DegradationPreference::kMaintainFramerate;
150 Params params_; 153 Params params_;
151 }; 154 };
152 155
153 } // namespace webrtc 156 } // namespace webrtc
154 157
155 #endif // WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_ 158 #endif // WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698