Add value_type alias to EncodedImageBufferInterface

It would allow to use EncodedImageBufferInterface with gtest container matchers.

Bug: None
Change-Id: Iae37d1a019e044a4ec583c32e8141fe0758e60ce
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/365501
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Commit-Queue: Emil Vardar (xWF) <vardar@google.com>
Reviewed-by: Erik Språng <sprang@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#43253}
This commit is contained in:
Emil Vardar 2024-10-16 14:52:48 +00:00 committed by WebRTC LUCI CQ
parent 3cc5835ee4
commit 44e17f3fe4

View File

@ -39,6 +39,8 @@ namespace webrtc {
// releaseOutputBuffer. // releaseOutputBuffer.
class EncodedImageBufferInterface : public RefCountInterface { class EncodedImageBufferInterface : public RefCountInterface {
public: public:
using value_type = uint8_t;
virtual const uint8_t* data() const = 0; virtual const uint8_t* data() const = 0;
// TODO(bugs.webrtc.org/9378): Make interface essentially read-only, delete // TODO(bugs.webrtc.org/9378): Make interface essentially read-only, delete
// this non-const data method. // this non-const data method.