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/browser/renderer_host/media/video_capture_manager_unittest.cc

Issue 2398463003: 16 bit capture and GPU&CPU memory buffer support.
Patch Set: fixes. Created 4 years, 2 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
OLDNEW
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 // Unit test for VideoCaptureManager. 5 // Unit test for VideoCaptureManager.
6 6
7 #include "content/browser/renderer_host/media/video_capture_manager.h" 7 #include "content/browser/renderer_host/media/video_capture_manager.h"
8 8
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 class MockFrameObserver : public VideoCaptureControllerEventHandler { 136 class MockFrameObserver : public VideoCaptureControllerEventHandler {
137 public: 137 public:
138 MOCK_METHOD1(OnError, void(VideoCaptureControllerID id)); 138 MOCK_METHOD1(OnError, void(VideoCaptureControllerID id));
139 139
140 void OnBufferCreated(VideoCaptureControllerID id, 140 void OnBufferCreated(VideoCaptureControllerID id,
141 base::SharedMemoryHandle handle, 141 base::SharedMemoryHandle handle,
142 int length, int buffer_id) override {} 142 int length, int buffer_id) override {}
143 void OnBufferCreated2(VideoCaptureControllerID id, 143 void OnBufferCreated2(VideoCaptureControllerID id,
144 const std::vector<gfx::GpuMemoryBufferHandle>& handles, 144 const std::vector<gfx::GpuMemoryBufferHandle>& handles,
145 const gfx::Size& size, 145 const gfx::Size& size,
146 media::VideoPixelFormat format,
146 int buffer_id) override {} 147 int buffer_id) override {}
147 void OnBufferDestroyed(VideoCaptureControllerID id, int buffer_id) override {} 148 void OnBufferDestroyed(VideoCaptureControllerID id, int buffer_id) override {}
148 void OnBufferReady(VideoCaptureControllerID id, 149 void OnBufferReady(VideoCaptureControllerID id,
149 int buffer_id, 150 int buffer_id,
150 const scoped_refptr<media::VideoFrame>& frame) override {} 151 const scoped_refptr<media::VideoFrame>& frame) override {}
151 void OnEnded(VideoCaptureControllerID id) override {} 152 void OnEnded(VideoCaptureControllerID id) override {}
152 153
153 void OnGotControllerCallback(VideoCaptureControllerID) {} 154 void OnGotControllerCallback(VideoCaptureControllerID) {}
154 }; 155 };
155 156
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 // Wait to check callbacks before removing the listener. 633 // Wait to check callbacks before removing the listener.
633 base::RunLoop().RunUntilIdle(); 634 base::RunLoop().RunUntilIdle();
634 vcm_->Unregister(); 635 vcm_->Unregister();
635 } 636 }
636 #endif 637 #endif
637 638
638 // TODO(mcasas): Add a test to check consolidation of the supported formats 639 // TODO(mcasas): Add a test to check consolidation of the supported formats
639 // provided by the device when http://crbug.com/323913 is closed. 640 // provided by the device when http://crbug.com/323913 is closed.
640 641
641 } // namespace content 642 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/media/video_capture_manager.cc ('k') | content/common/media/video_capture_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698