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

Side by Side Diff: webrtc/modules/video_coding/test/test_util.h

Issue 1528503003: Lint enabled for webrtc/modules/video_coding folder. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: 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 15 matching lines...) Expand all
26 enum { kMaxPacketAgeToNack = 450 }; 26 enum { kMaxPacketAgeToNack = 450 };
27 27
28 class NullEvent : public webrtc::EventWrapper { 28 class NullEvent : public webrtc::EventWrapper {
29 public: 29 public:
30 virtual ~NullEvent() {} 30 virtual ~NullEvent() {}
31 31
32 virtual bool Set() { return true; } 32 virtual bool Set() { return true; }
33 33
34 virtual bool Reset() { return true; } 34 virtual bool Reset() { return true; }
35 35
36 virtual webrtc::EventTypeWrapper Wait(unsigned long max_time) { 36 virtual webrtc::EventTypeWrapper Wait(uint64_t max_time) {
37 return webrtc::kEventTimeout; 37 return webrtc::kEventTimeout;
38 } 38 }
39 39
40 virtual bool StartTimer(bool periodic, unsigned long time) { return true; } 40 virtual bool StartTimer(bool periodic, uint64_t time) { return true; }
41 41
42 virtual bool StopTimer() { return true; } 42 virtual bool StopTimer() { return true; }
43 }; 43 };
44 44
45 class NullEventFactory : public webrtc::EventFactory { 45 class NullEventFactory : public webrtc::EventFactory {
46 public: 46 public:
47 virtual ~NullEventFactory() {} 47 virtual ~NullEventFactory() {}
48 48
49 virtual webrtc::EventWrapper* CreateEvent() { 49 virtual webrtc::EventWrapper* CreateEvent() { return new NullEvent; }
50 return new NullEvent;
51 }
52 }; 50 };
53 51
54 class FileOutputFrameReceiver : public webrtc::VCMReceiveCallback { 52 class FileOutputFrameReceiver : public webrtc::VCMReceiveCallback {
55 public: 53 public:
56 FileOutputFrameReceiver(const std::string& base_out_filename, uint32_t ssrc); 54 FileOutputFrameReceiver(const std::string& base_out_filename, uint32_t ssrc);
57 virtual ~FileOutputFrameReceiver(); 55 virtual ~FileOutputFrameReceiver();
58 56
59 // VCMReceiveCallback 57 // VCMReceiveCallback
60 virtual int32_t FrameToRender(webrtc::VideoFrame& video_frame); 58 virtual int32_t FrameToRender(webrtc::VideoFrame& video_frame); // NOLINT
61 59
62 private: 60 private:
63 std::string out_filename_; 61 std::string out_filename_;
64 FILE* out_file_; 62 FILE* out_file_;
65 FILE* timing_file_; 63 FILE* timing_file_;
66 int width_; 64 int width_;
67 int height_; 65 int height_;
68 int count_; 66 int count_;
69 67
70 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(FileOutputFrameReceiver); 68 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(FileOutputFrameReceiver);
71 }; 69 };
72 70
73 class CmdArgs { 71 class CmdArgs {
74 public: 72 public:
75 CmdArgs(); 73 CmdArgs();
76 74
77 std::string codecName; 75 std::string codecName;
78 webrtc::VideoCodecType codecType; 76 webrtc::VideoCodecType codecType;
79 int width; 77 int width;
80 int height; 78 int height;
81 int rtt; 79 int rtt;
82 std::string inputFile; 80 std::string inputFile;
83 std::string outputFile; 81 std::string outputFile;
84 }; 82 };
85 83
86 #endif // WEBRTC_MODULES_VIDEO_CODING_TEST_TEST_UTIL_H_ 84 #endif // WEBRTC_MODULES_VIDEO_CODING_TEST_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698