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

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

Issue 2766343002: Revert of [Mojo Video Capture] Add test coverage for accelerated jpeg decoding (Closed)
Patch Set: Created 3 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
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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 MOCK_METHOD2(Opened, void(MediaStreamType, int)); 144 MOCK_METHOD2(Opened, void(MediaStreamType, int));
145 MOCK_METHOD2(Closed, void(MediaStreamType, int)); 145 MOCK_METHOD2(Closed, void(MediaStreamType, int));
146 MOCK_METHOD2(Aborted, void(MediaStreamType, int)); 146 MOCK_METHOD2(Aborted, void(MediaStreamType, int));
147 }; // class MockMediaStreamProviderListener 147 }; // class MockMediaStreamProviderListener
148 148
149 // Needed as an input argument to StartCaptureForClient(). 149 // Needed as an input argument to StartCaptureForClient().
150 class MockFrameObserver : public VideoCaptureControllerEventHandler { 150 class MockFrameObserver : public VideoCaptureControllerEventHandler {
151 public: 151 public:
152 MOCK_METHOD1(OnError, void(VideoCaptureControllerID id)); 152 MOCK_METHOD1(OnError, void(VideoCaptureControllerID id));
153 MOCK_METHOD1(OnStarted, void(VideoCaptureControllerID id)); 153 MOCK_METHOD1(OnStarted, void(VideoCaptureControllerID id));
154 MOCK_METHOD1(OnStartedUsingGpuDecode, void(VideoCaptureControllerID id));
155 154
156 void OnBufferCreated(VideoCaptureControllerID id, 155 void OnBufferCreated(VideoCaptureControllerID id,
157 mojo::ScopedSharedBufferHandle handle, 156 mojo::ScopedSharedBufferHandle handle,
158 int length, int buffer_id) override {} 157 int length, int buffer_id) override {}
159 void OnBufferDestroyed(VideoCaptureControllerID id, int buffer_id) override {} 158 void OnBufferDestroyed(VideoCaptureControllerID id, int buffer_id) override {}
160 void OnBufferReady( 159 void OnBufferReady(
161 VideoCaptureControllerID id, 160 VideoCaptureControllerID id,
162 int buffer_id, 161 int buffer_id,
163 const media::mojom::VideoFrameInfoPtr& frame_info) override {} 162 const media::mojom::VideoFrameInfoPtr& frame_info) override {}
164 void OnEnded(VideoCaptureControllerID id) override {} 163 void OnEnded(VideoCaptureControllerID id) override {}
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 // Wait to check callbacks before removing the listener. 789 // Wait to check callbacks before removing the listener.
791 base::RunLoop().RunUntilIdle(); 790 base::RunLoop().RunUntilIdle();
792 vcm_->UnregisterListener(listener_.get()); 791 vcm_->UnregisterListener(listener_.get());
793 } 792 }
794 #endif 793 #endif
795 794
796 // TODO(mcasas): Add a test to check consolidation of the supported formats 795 // TODO(mcasas): Add a test to check consolidation of the supported formats
797 // provided by the device when http://crbug.com/323913 is closed. 796 // provided by the device when http://crbug.com/323913 is closed.
798 797
799 } // namespace content 798 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698