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

Unified Diff: remoting/base/decoder_verbatim_unittest.cc

Issue 3011010: Unit test for Encoder / Decoder for remoting (Closed)
Patch Set: fixed comments Created 10 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 | « remoting/base/decoder_verbatim.h ('k') | remoting/base/encoder_verbatim.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/decoder_verbatim_unittest.cc
diff --git a/remoting/base/decoder_verbatim_unittest.cc b/remoting/base/decoder_verbatim_unittest.cc
index f32b08cbbe0690a87c0dd2649c80f05ac8afd8fe..947750a7493f9631950d8576b64b6f5658313aca 100644
--- a/remoting/base/decoder_verbatim_unittest.cc
+++ b/remoting/base/decoder_verbatim_unittest.cc
@@ -3,7 +3,9 @@
// found in the LICENSE file.
#include "media/base/video_frame.h"
+#include "remoting/base/codec_test.h"
#include "remoting/base/decoder_verbatim.h"
+#include "remoting/base/encoder_verbatim.h"
#include "remoting/client/mock_objects.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -59,9 +61,6 @@ TEST(DecoderVerbatimTest, SimpleDecode) {
EXPECT_EQ(kWidth, frame->width());
EXPECT_EQ(kHeight, frame->height());
EXPECT_EQ(media::VideoFrame::ASCII, frame->format());
- // TODO(hclam): Enable this line.
- // EXPECT_EQ(0, memcmp(kData, frame->data(media::VideoFrame::kRGBPlane),
- // sizeof(kData)));
// Check the updated rects.
ASSERT_TRUE(rects.size() == 1);
@@ -69,4 +68,11 @@ TEST(DecoderVerbatimTest, SimpleDecode) {
EXPECT_EQ(kHeight, static_cast<size_t>(rects[0].height()));
}
+TEST(DecoderVerbatimTest, EncodeAndDecode) {
+ EncoderVerbatim encoder;
+ DecoderVerbatim decoder;
+ decoder.set_reverse_rows(false);
+ TestEncoderDecoder(&encoder, &decoder, true);
+}
+
} // namespace remoting
« no previous file with comments | « remoting/base/decoder_verbatim.h ('k') | remoting/base/encoder_verbatim.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698