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

Unified Diff: webrtc/modules/video_coding/frame_buffer2_unittest.cc

Issue 2124943002: Added various timestamps to FrameObject. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Renamed |received_timestamp| to |received_time|. Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/modules/video_coding/frame_object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/video_coding/frame_buffer2_unittest.cc
diff --git a/webrtc/modules/video_coding/frame_buffer2_unittest.cc b/webrtc/modules/video_coding/frame_buffer2_unittest.cc
index 7e4e2209e0d78ab491e36cb46b5127b86101252d..5c81d0284d4d34956aea4499e8631b5cb96a931c 100644
--- a/webrtc/modules/video_coding/frame_buffer2_unittest.cc
+++ b/webrtc/modules/video_coding/frame_buffer2_unittest.cc
@@ -72,9 +72,15 @@ class VCMJitterEstimatorMock : public VCMJitterEstimator {
bool incompleteFrame));
};
-class FrameObjectMock : public FrameObject {
+class FrameObjectFake : public FrameObject {
public:
- MOCK_CONST_METHOD1(GetBitstream, bool(uint8_t* destination));
+ bool GetBitstream(uint8_t* destination) const override { return true; }
+
+ uint32_t Timestamp() const override { return timestamp; }
+
+ int64_t ReceivedTime() const override { return 0; }
+
+ int64_t RenderTime() const override { return _renderTimeMs; }
};
class TestFrameBuffer2 : public ::testing::Test {
@@ -113,7 +119,7 @@ class TestFrameBuffer2 : public ::testing::Test {
"To many references specified for FrameObject.");
std::array<uint16_t, sizeof...(refs)> references = {{refs...}};
- std::unique_ptr<FrameObjectMock> frame(new FrameObjectMock());
+ std::unique_ptr<FrameObjectFake> frame(new FrameObjectFake());
frame->picture_id = picture_id;
frame->spatial_layer = spatial_layer;
frame->timestamp = ts_ms * 90;
« no previous file with comments | « no previous file | webrtc/modules/video_coding/frame_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698