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

Side by Side Diff: content/browser/renderer_host/media/video_capture_manager_unittest.cc

Issue 500653003: Video capture frame size: separate coded size and visible size. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix content_unittests build. Created 6 years, 3 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) 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 <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 MOCK_METHOD1(OnError, void(const VideoCaptureControllerID& id)); 47 MOCK_METHOD1(OnError, void(const VideoCaptureControllerID& id));
48 48
49 virtual void OnBufferCreated(const VideoCaptureControllerID& id, 49 virtual void OnBufferCreated(const VideoCaptureControllerID& id,
50 base::SharedMemoryHandle handle, 50 base::SharedMemoryHandle handle,
51 int length, int buffer_id) OVERRIDE {} 51 int length, int buffer_id) OVERRIDE {}
52 virtual void OnBufferDestroyed(const VideoCaptureControllerID& id, 52 virtual void OnBufferDestroyed(const VideoCaptureControllerID& id,
53 int buffer_id) OVERRIDE {} 53 int buffer_id) OVERRIDE {}
54 virtual void OnBufferReady(const VideoCaptureControllerID& id, 54 virtual void OnBufferReady(const VideoCaptureControllerID& id,
55 int buffer_id, 55 int buffer_id,
56 const media::VideoCaptureFormat& format, 56 const media::VideoCaptureFormat& format,
57 const gfx::Rect& visible_rect,
57 base::TimeTicks timestamp) OVERRIDE {} 58 base::TimeTicks timestamp) OVERRIDE {}
58 virtual void OnMailboxBufferReady(const VideoCaptureControllerID& id, 59 virtual void OnMailboxBufferReady(const VideoCaptureControllerID& id,
59 int buffer_id, 60 int buffer_id,
60 const gpu::MailboxHolder& mailbox_holder, 61 const gpu::MailboxHolder& mailbox_holder,
61 const media::VideoCaptureFormat& format, 62 const media::VideoCaptureFormat& format,
62 base::TimeTicks timestamp) OVERRIDE {} 63 base::TimeTicks timestamp) OVERRIDE {}
63 virtual void OnEnded(const VideoCaptureControllerID& id) OVERRIDE {} 64 virtual void OnEnded(const VideoCaptureControllerID& id) OVERRIDE {}
64 65
65 void OnGotControllerCallback(VideoCaptureControllerID) {} 66 void OnGotControllerCallback(VideoCaptureControllerID) {}
66 }; 67 };
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 483
483 // Wait to check callbacks before removing the listener 484 // Wait to check callbacks before removing the listener
484 message_loop_->RunUntilIdle(); 485 message_loop_->RunUntilIdle();
485 vcm_->Unregister(); 486 vcm_->Unregister();
486 } 487 }
487 488
488 // TODO(mcasas): Add a test to check consolidation of the supported formats 489 // TODO(mcasas): Add a test to check consolidation of the supported formats
489 // provided by the device when http://crbug.com/323913 is closed. 490 // provided by the device when http://crbug.com/323913 is closed.
490 491
491 } // namespace content 492 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/media/video_capture_host_unittest.cc ('k') | content/common/media/video_capture_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698