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

Side by Side Diff: chrome/gpu/gpu_video_decoder_unittest.cc

Issue 4113006: Rename UploadToVideoFrame to ConvertToVideoFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « chrome/gpu/gpu_video_decoder.cc ('k') | chrome/gpu/media/fake_gl_video_decode_engine.cc » ('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 "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"
(...skipping 18 matching lines...) Expand all
29 MockGpuVideoDevice() {} 29 MockGpuVideoDevice() {}
30 virtual ~MockGpuVideoDevice() {} 30 virtual ~MockGpuVideoDevice() {}
31 31
32 MOCK_METHOD0(GetDevice, void*()); 32 MOCK_METHOD0(GetDevice, void*());
33 MOCK_METHOD5(CreateVideoFrameFromGlTextures, 33 MOCK_METHOD5(CreateVideoFrameFromGlTextures,
34 bool(size_t, size_t, media::VideoFrame::Format, 34 bool(size_t, size_t, media::VideoFrame::Format,
35 const std::vector<media::VideoFrame::GlTexture>&, 35 const std::vector<media::VideoFrame::GlTexture>&,
36 scoped_refptr<media::VideoFrame>*)); 36 scoped_refptr<media::VideoFrame>*));
37 MOCK_METHOD1(ReleaseVideoFrame, 37 MOCK_METHOD1(ReleaseVideoFrame,
38 void(const scoped_refptr<media::VideoFrame>& frame)); 38 void(const scoped_refptr<media::VideoFrame>& frame));
39 MOCK_METHOD2(UploadToVideoFrame, 39 MOCK_METHOD2(ConvertToVideoFrame,
40 bool(void* buffer, scoped_refptr<media::VideoFrame> frame)); 40 bool(void* buffer, scoped_refptr<media::VideoFrame> frame));
41 41
42 private: 42 private:
43 DISALLOW_COPY_AND_ASSIGN(MockGpuVideoDevice); 43 DISALLOW_COPY_AND_ASSIGN(MockGpuVideoDevice);
44 }; 44 };
45 45
46 ACTION_P(InitializationDone, handler) { 46 ACTION_P(InitializationDone, handler) {
47 media::VideoCodecInfo info; 47 media::VideoCodecInfo info;
48 info.success = true; 48 info.success = true;
49 info.provides_buffers = false; 49 info.provides_buffers = false;
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
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);
OLDNEW
« no previous file with comments | « chrome/gpu/gpu_video_decoder.cc ('k') | chrome/gpu/media/fake_gl_video_decode_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698