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 "base/message_loop.h" | 5 #include "base/message_loop.h" |
6 #include "base/process.h" | 6 #include "base/process.h" |
7 #include "chrome/common/gpu_messages.h" | 7 #include "chrome/common/gpu_messages.h" |
8 #include "chrome/gpu/gpu_video_decoder.h" | 8 #include "chrome/gpu/gpu_video_decoder.h" |
9 #include "gpu/command_buffer/service/gles2_cmd_decoder_mock.h" | 9 #include "gpu/command_buffer/service/gles2_cmd_decoder_mock.h" |
10 #include "ipc/ipc_message_utils.h" | 10 #include "ipc/ipc_message_utils.h" |
11 #include "media/video/mock_objects.h" | 11 #include "media/video/video_mock_objects.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 | 13 |
14 using testing::_; | 14 using testing::_; |
15 using testing::DoAll; | 15 using testing::DoAll; |
16 using testing::NotNull; | 16 using testing::NotNull; |
17 using testing::Return; | 17 using testing::Return; |
18 using testing::SetArgumentPointee; | 18 using testing::SetArgumentPointee; |
19 | 19 |
20 static const int32 kFrameId = 10; | 20 static const int32 kFrameId = 10; |
21 static const int32 kDecoderHostId = 50; | 21 static const int32 kDecoderHostId = 50; |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 | 253 |
254 TEST_F(GpuVideoDecoderTest, BufferExchange) { | 254 TEST_F(GpuVideoDecoderTest, BufferExchange) { |
255 Initialize(); | 255 Initialize(); |
256 AllocateVideoFrames(); | 256 AllocateVideoFrames(); |
257 BufferExchange(); | 257 BufferExchange(); |
258 BufferExchange(); | 258 BufferExchange(); |
259 ReleaseVideoFrames(); | 259 ReleaseVideoFrames(); |
260 } | 260 } |
261 | 261 |
262 DISABLE_RUNNABLE_METHOD_REFCOUNT(GpuVideoDecoderTest); | 262 DISABLE_RUNNABLE_METHOD_REFCOUNT(GpuVideoDecoderTest); |
OLD | NEW |