Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/base/codec_test.h" | 6 #include "remoting/codec/codec_test.h" |
| 7 #include "remoting/base/decoder_vp8.h" | 7 #include "remoting/codec/video_decoder_vp8.h" |
|
Sergey Ulanov
2012/08/22 16:10:28
nit: this should be the first include in this file
kxing
2012/08/22 17:08:05
Done.
| |
| 8 #include "remoting/base/encoder_vp8.h" | 8 #include "remoting/codec/video_encoder_vp8.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| 11 namespace remoting { | 11 namespace remoting { |
| 12 | 12 |
| 13 class DecoderVp8Test : public testing::Test { | 13 class DecoderVp8Test : public testing::Test { |
| 14 protected: | 14 protected: |
| 15 EncoderVp8 encoder_; | 15 EncoderVp8 encoder_; |
| 16 DecoderVp8 decoder_; | 16 DecoderVp8 decoder_; |
| 17 | 17 |
| 18 void TestGradient(int screen_width, int screen_height, | 18 void TestGradient(int screen_width, int screen_height, |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 65 | 65 |
| 66 TEST_F(DecoderVp8Test, GradientScaleDownOddToEven) { | 66 TEST_F(DecoderVp8Test, GradientScaleDownOddToEven) { |
| 67 TestGradient(321, 241, 160, 120, 0.04, 0.02); | 67 TestGradient(321, 241, 160, 120, 0.04, 0.02); |
| 68 } | 68 } |
| 69 | 69 |
| 70 TEST_F(DecoderVp8Test, GradientScaleDownOddToOdd) { | 70 TEST_F(DecoderVp8Test, GradientScaleDownOddToOdd) { |
| 71 TestGradient(321, 241, 161, 121, 0.04, 0.02); | 71 TestGradient(321, 241, 161, 121, 0.04, 0.02); |
| 72 } | 72 } |
| 73 | 73 |
| 74 } // namespace remoting | 74 } // namespace remoting |
| OLD | NEW |