OLD | NEW |
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 Loading... |
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 |
OLD | NEW |