| 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 <deque> | 5 #include <deque> |
| 6 #include <stdlib.h> | 6 #include <stdlib.h> |
| 7 | 7 |
| 8 #include "media/base/video_frame.h" | 8 #include "media/base/video_frame.h" |
| 9 #include "remoting/base/base_mock_objects.h" |
| 9 #include "remoting/base/codec_test.h" | 10 #include "remoting/base/codec_test.h" |
| 10 #include "remoting/base/decoder.h" | 11 #include "remoting/base/decoder.h" |
| 11 #include "remoting/base/encoder.h" | 12 #include "remoting/base/encoder.h" |
| 12 #include "remoting/base/mock_objects.h" | |
| 13 #include "remoting/base/util.h" | 13 #include "remoting/base/util.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 #include "ui/gfx/rect.h" | 15 #include "ui/gfx/rect.h" |
| 16 | 16 |
| 17 static const int kWidth = 320; | 17 static const int kWidth = 320; |
| 18 static const int kHeight = 240; | 18 static const int kHeight = 240; |
| 19 static const int kBytesPerPixel = 4; | 19 static const int kBytesPerPixel = 4; |
| 20 | 20 |
| 21 // Some sample rects for testing. | 21 // Some sample rects for testing. |
| 22 static const gfx::Rect kTestRects[] = { | 22 static const gfx::Rect kTestRects[] = { |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 TestEncodingRects(encoder, &encoder_tester, &decoder_tester, data, | 346 TestEncodingRects(encoder, &encoder_tester, &decoder_tester, data, |
| 347 kTestRects + 2, 1); | 347 kTestRects + 2, 1); |
| 348 TestEncodingRects(encoder, &encoder_tester, &decoder_tester, data, | 348 TestEncodingRects(encoder, &encoder_tester, &decoder_tester, data, |
| 349 kTestRects + 3, 2); | 349 kTestRects + 3, 2); |
| 350 delete [] memory; | 350 delete [] memory; |
| 351 } | 351 } |
| 352 | 352 |
| 353 } // namespace remoting | 353 } // namespace remoting |
| 354 | 354 |
| 355 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::DecoderTester); | 355 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::DecoderTester); |
| OLD | NEW |