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

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

Issue 2045813003: Decouple capture timestamp and reference time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit Created 4 years, 6 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 void OnBufferCreated(VideoCaptureControllerID id, 54 void OnBufferCreated(VideoCaptureControllerID id,
55 base::SharedMemoryHandle handle, 55 base::SharedMemoryHandle handle,
56 int length, int buffer_id) override {} 56 int length, int buffer_id) override {}
57 void OnBufferCreated2(VideoCaptureControllerID id, 57 void OnBufferCreated2(VideoCaptureControllerID id,
58 const std::vector<gfx::GpuMemoryBufferHandle>& handles, 58 const std::vector<gfx::GpuMemoryBufferHandle>& handles,
59 const gfx::Size& size, 59 const gfx::Size& size,
60 int buffer_id) override {} 60 int buffer_id) override {}
61 void OnBufferDestroyed(VideoCaptureControllerID id, int buffer_id) override {} 61 void OnBufferDestroyed(VideoCaptureControllerID id, int buffer_id) override {}
62 void OnBufferReady(VideoCaptureControllerID id, 62 void OnBufferReady(VideoCaptureControllerID id,
63 int buffer_id, 63 int buffer_id,
64 const scoped_refptr<media::VideoFrame>& frame, 64 const scoped_refptr<media::VideoFrame>& frame) override {}
65 const base::TimeTicks& timestamp) override {}
66 void OnEnded(VideoCaptureControllerID id) override {} 65 void OnEnded(VideoCaptureControllerID id) override {}
67 66
68 void OnGotControllerCallback(VideoCaptureControllerID) {} 67 void OnGotControllerCallback(VideoCaptureControllerID) {}
69 }; 68 };
70 69
71 // Test class 70 // Test class
72 class VideoCaptureManagerTest : public testing::Test { 71 class VideoCaptureManagerTest : public testing::Test {
73 public: 72 public:
74 VideoCaptureManagerTest() : next_client_id_(1) {} 73 VideoCaptureManagerTest() : next_client_id_(1) {}
75 ~VideoCaptureManagerTest() override {} 74 ~VideoCaptureManagerTest() override {}
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 // Wait to check callbacks before removing the listener. 616 // Wait to check callbacks before removing the listener.
618 message_loop_->RunUntilIdle(); 617 message_loop_->RunUntilIdle();
619 vcm_->Unregister(); 618 vcm_->Unregister();
620 } 619 }
621 #endif 620 #endif
622 621
623 // TODO(mcasas): Add a test to check consolidation of the supported formats 622 // TODO(mcasas): Add a test to check consolidation of the supported formats
624 // provided by the device when http://crbug.com/323913 is closed. 623 // provided by the device when http://crbug.com/323913 is closed.
625 624
626 } // namespace content 625 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/media/video_capture_host.cc ('k') | content/common/media/video_capture_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698