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

Side by Side Diff: content/common/gpu/media/android_video_decode_accelerator_unittest.cc

Issue 185403020: Make VEA client of command buffer; move sync. IPC to VDA/VEA::Initialize() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 56683e7a Rebase. Created 6 years, 9 months 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "content/common/gpu/media/android_video_decode_accelerator.h" 5 #include "content/common/gpu/media/android_video_decode_accelerator.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 19 matching lines...) Expand all
30 // TODO(felipeg): Add more unit tests to test the ordinary behavior of 30 // TODO(felipeg): Add more unit tests to test the ordinary behavior of
31 // AndroidVideoDecodeAccelerator. 31 // AndroidVideoDecodeAccelerator.
32 // http://crbug.com/178647 32 // http://crbug.com/178647
33 class MockVideoDecodeAcceleratorClient 33 class MockVideoDecodeAcceleratorClient
34 : public media::VideoDecodeAccelerator::Client { 34 : public media::VideoDecodeAccelerator::Client {
35 public: 35 public:
36 MockVideoDecodeAcceleratorClient() {}; 36 MockVideoDecodeAcceleratorClient() {};
37 virtual ~MockVideoDecodeAcceleratorClient() {}; 37 virtual ~MockVideoDecodeAcceleratorClient() {};
38 38
39 // VideoDecodeAccelerator::Client implementation. 39 // VideoDecodeAccelerator::Client implementation.
40 virtual void NotifyInitializeDone() OVERRIDE {};
41 virtual void ProvidePictureBuffers(uint32 requested_num_of_buffers, 40 virtual void ProvidePictureBuffers(uint32 requested_num_of_buffers,
42 const gfx::Size& dimensions, 41 const gfx::Size& dimensions,
43 uint32 texture_target) OVERRIDE {}; 42 uint32 texture_target) OVERRIDE {};
44 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE {}; 43 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE {};
45 virtual void PictureReady(const media::Picture& picture) OVERRIDE {}; 44 virtual void PictureReady(const media::Picture& picture) OVERRIDE {};
46 virtual void NotifyEndOfBitstreamBuffer( 45 virtual void NotifyEndOfBitstreamBuffer(
47 int32 bitstream_buffer_id) OVERRIDE {}; 46 int32 bitstream_buffer_id) OVERRIDE {};
48 virtual void NotifyFlushDone() OVERRIDE {}; 47 virtual void NotifyFlushDone() OVERRIDE {};
49 virtual void NotifyResetDone() OVERRIDE {}; 48 virtual void NotifyResetDone() OVERRIDE {};
50 virtual void NotifyError( 49 virtual void NotifyError(
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 return; 91 return;
93 EXPECT_TRUE(Configure(media::kCodecVP8)); 92 EXPECT_TRUE(Configure(media::kCodecVP8));
94 } 93 }
95 94
96 } // namespace content 95 } // namespace content
97 96
98 int main(int argc, char **argv) { 97 int main(int argc, char **argv) {
99 testing::InitGoogleTest(&argc, argv); 98 testing::InitGoogleTest(&argc, argv);
100 return RUN_ALL_TESTS(); 99 return RUN_ALL_TESTS();
101 } 100 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698