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

Side by Side Diff: remoting/base/decoder_verbatim_unittest.cc

Issue 2840036: Moving Encoder and Decoder to remoting/base (Closed)
Patch Set: fix DEPS 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 unified diff | Download patch
« no previous file with comments | « remoting/base/decoder_verbatim.cc ('k') | remoting/base/encoder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/base/video_frame.h" 5 #include "media/base/video_frame.h"
6 #include "remoting/client/decoder_verbatim.h" 6 #include "remoting/base/decoder_verbatim.h"
7 #include "remoting/client/mock_objects.h" 7 #include "remoting/client/mock_objects.h"
8 #include "testing/gmock/include/gmock/gmock.h" 8 #include "testing/gmock/include/gmock/gmock.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 using ::testing::InSequence; 11 using ::testing::InSequence;
12 12
13 namespace remoting { 13 namespace remoting {
14 14
15 TEST(DecoderVerbatimTest, SimpleDecode) { 15 TEST(DecoderVerbatimTest, SimpleDecode) {
16 DecoderVerbatim decoder; 16 DecoderVerbatim decoder;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // EXPECT_EQ(0, memcmp(kData, frame->data(media::VideoFrame::kRGBPlane), 63 // EXPECT_EQ(0, memcmp(kData, frame->data(media::VideoFrame::kRGBPlane),
64 // sizeof(kData))); 64 // sizeof(kData)));
65 65
66 // Check the updated rects. 66 // Check the updated rects.
67 ASSERT_TRUE(rects.size() == 1); 67 ASSERT_TRUE(rects.size() == 1);
68 EXPECT_EQ(kWidth, static_cast<size_t>(rects[0].width())); 68 EXPECT_EQ(kWidth, static_cast<size_t>(rects[0].width()));
69 EXPECT_EQ(kHeight, static_cast<size_t>(rects[0].height())); 69 EXPECT_EQ(kHeight, static_cast<size_t>(rects[0].height()));
70 } 70 }
71 71
72 } // namespace remoting 72 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/base/decoder_verbatim.cc ('k') | remoting/base/encoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698