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

Side by Side Diff: webrtc/modules/video_coding/codecs/test/predictive_packet_manipulator.h

Issue 1528503003: Lint enabled for webrtc/modules/video_coding folder. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase Created 5 years 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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 13 matching lines...) Expand all
24 class PredictivePacketManipulator : public PacketManipulatorImpl { 24 class PredictivePacketManipulator : public PacketManipulatorImpl {
25 public: 25 public:
26 PredictivePacketManipulator(PacketReader* packet_reader, 26 PredictivePacketManipulator(PacketReader* packet_reader,
27 const NetworkingConfig& config); 27 const NetworkingConfig& config);
28 virtual ~PredictivePacketManipulator(); 28 virtual ~PredictivePacketManipulator();
29 // Adds a result. You must add at least the same number of results as the 29 // Adds a result. You must add at least the same number of results as the
30 // expected calls to the RandomUniform method. The results are added to a 30 // expected calls to the RandomUniform method. The results are added to a
31 // FIFO queue so they will be returned in the same order they were added. 31 // FIFO queue so they will be returned in the same order they were added.
32 // Result parameter must be 0.0 to 1.0. 32 // Result parameter must be 0.0 to 1.0.
33 void AddRandomResult(double result); 33 void AddRandomResult(double result);
34
34 protected: 35 protected:
35 // Returns a uniformly distributed random value between 0.0 and 1.0 36 // Returns a uniformly distributed random value between 0.0 and 1.0
36 double RandomUniform() override; 37 double RandomUniform() override;
37 38
38 private: 39 private:
39 std::queue<double> random_results_; 40 std::queue<double> random_results_;
40 }; 41 };
41 42
42 } // namespace test 43 } // namespace test
43 } // namespace webrtc 44 } // namespace webrtc
44 45
45 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_PREDICTIVE_PACKET_MANIPULATOR _H_ 46 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_PREDICTIVE_PACKET_MANIPULATOR _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698