2011-07-07 08:21:25 +00:00
|
|
|
/*
|
2012-01-23 14:56:14 +00:00
|
|
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
2011-07-07 08:21:25 +00:00
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#ifndef MODULES_VIDEO_CODING_TEST_TEST_UTIL_H_
|
|
|
|
|
#define MODULES_VIDEO_CODING_TEST_TEST_UTIL_H_
|
2011-09-23 16:41:11 +00:00
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#include "system_wrappers/include/event_wrapper.h"
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2013-03-13 08:46:25 +00:00
|
|
|
class NullEventFactory : public webrtc::EventFactory {
|
|
|
|
|
public:
|
|
|
|
|
virtual ~NullEventFactory() {}
|
|
|
|
|
|
Reland of Add QP sum stats for received streams. (patchset #2 id:300001 of https://codereview.webrtc.org/2680893002/ )
Reason for revert:
Fix the problem.
Original issue's description:
> Revert of Add QP sum stats for received streams. (patchset #10 id:180001 of https://codereview.webrtc.org/2649133005/ )
>
> Reason for revert:
> Breaks downstream build.
>
> Original issue's description:
> > Add QP sum stats for received streams.
> >
> > This is not implemented yet in any of the decoders.
> >
> > BUG=webrtc:6541
> >
> > Review-Url: https://codereview.webrtc.org/2649133005
> > Cr-Commit-Position: refs/heads/master@{#16475}
> > Committed: https://chromium.googlesource.com/external/webrtc/+/ff0e72fd165facac27f0313aa178648782e63bc4
>
> TBR=hta@webrtc.org,hbos@webrtc.org,sprang@webrtc.org,magjed@webrtc.org,stefan@webrtc.org,sakal@webrtc.org
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=webrtc:6541
>
> Review-Url: https://codereview.webrtc.org/2680893002 .
> Cr-Commit-Position: refs/heads/master@{#16480}
> Committed: https://chromium.googlesource.com/external/webrtc/+/69fb2cca4d54f3df7ceddcd1c3e9b0ad80fa849b
TBR=hta@webrtc.org,hbos@webrtc.org,sprang@webrtc.org,magjed@webrtc.org,stefan@webrtc.org,skvlad@webrtc.org
BUG=webrtc:6541
Review-Url: https://codereview.webrtc.org/2681663005
Cr-Commit-Position: refs/heads/master@{#16511}
2017-02-09 04:53:45 -08:00
|
|
|
webrtc::EventWrapper* CreateEvent() override { return new NullEvent; }
|
2018-06-19 15:03:05 +02:00
|
|
|
|
2013-04-16 10:31:56 +00:00
|
|
|
private:
|
2017-03-17 08:11:11 -07:00
|
|
|
// Private class to avoid more dependencies on it in tests.
|
|
|
|
|
class NullEvent : public webrtc::EventWrapper {
|
|
|
|
|
public:
|
|
|
|
|
~NullEvent() override {}
|
|
|
|
|
bool Set() override { return true; }
|
|
|
|
|
webrtc::EventTypeWrapper Wait(unsigned long max_time) override { // NOLINT
|
|
|
|
|
return webrtc::kEventTimeout;
|
|
|
|
|
}
|
|
|
|
|
};
|
2015-03-19 08:18:53 +00:00
|
|
|
};
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#endif // MODULES_VIDEO_CODING_TEST_TEST_UTIL_H_
|