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

Side by Side Diff: content/browser/renderer_host/media/video_capture_controller_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 #include "content/browser/renderer_host/media/video_capture_controller.h" 5 #include "content/browser/renderer_host/media/video_capture_controller.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 // These mock methods are delegated to by our fake implementation of 63 // These mock methods are delegated to by our fake implementation of
64 // VideoCaptureControllerEventHandler, to be used in EXPECT_CALL(). 64 // VideoCaptureControllerEventHandler, to be used in EXPECT_CALL().
65 MOCK_METHOD2(DoBufferCreated, void(VideoCaptureControllerID, int buffer_id)); 65 MOCK_METHOD2(DoBufferCreated, void(VideoCaptureControllerID, int buffer_id));
66 MOCK_METHOD2(DoBufferDestroyed, 66 MOCK_METHOD2(DoBufferDestroyed,
67 void(VideoCaptureControllerID, int buffer_id)); 67 void(VideoCaptureControllerID, int buffer_id));
68 MOCK_METHOD2(DoBufferReady, void(VideoCaptureControllerID, const gfx::Size&)); 68 MOCK_METHOD2(DoBufferReady, void(VideoCaptureControllerID, const gfx::Size&));
69 MOCK_METHOD1(DoEnded, void(VideoCaptureControllerID)); 69 MOCK_METHOD1(DoEnded, void(VideoCaptureControllerID));
70 MOCK_METHOD1(DoError, void(VideoCaptureControllerID)); 70 MOCK_METHOD1(DoError, void(VideoCaptureControllerID));
71 MOCK_METHOD1(OnStarted, void(VideoCaptureControllerID)); 71 MOCK_METHOD1(OnStarted, void(VideoCaptureControllerID));
72 MOCK_METHOD1(OnStartedUsingGpuDecode, void(VideoCaptureControllerID));
73 72
74 void OnError(VideoCaptureControllerID id) override { DoError(id); } 73 void OnError(VideoCaptureControllerID id) override { DoError(id); }
75 void OnBufferCreated(VideoCaptureControllerID id, 74 void OnBufferCreated(VideoCaptureControllerID id,
76 mojo::ScopedSharedBufferHandle handle, 75 mojo::ScopedSharedBufferHandle handle,
77 int length, 76 int length,
78 int buffer_id) override { 77 int buffer_id) override {
79 DoBufferCreated(id, buffer_id); 78 DoBufferCreated(id, buffer_id);
80 } 79 }
81 void OnBufferDestroyed(VideoCaptureControllerID id, int buffer_id) override { 80 void OnBufferDestroyed(VideoCaptureControllerID id, int buffer_id) override {
82 DoBufferDestroyed(id, buffer_id); 81 DoBufferDestroyed(id, buffer_id);
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 EXPECT_CALL(*client_b_, OnStarted(_)); 828 EXPECT_CALL(*client_b_, OnStarted(_));
830 device_client_->OnStarted(); 829 device_client_->OnStarted();
831 830
832 // VideoCaptureController will take care of the OnStarted event for the 831 // VideoCaptureController will take care of the OnStarted event for the
833 // clients who join later. 832 // clients who join later.
834 EXPECT_CALL(*client_a_, OnStarted(_)); 833 EXPECT_CALL(*client_a_, OnStarted(_));
835 controller_->AddClient(client_a_route_2, client_a_.get(), 200, session_200); 834 controller_->AddClient(client_a_route_2, client_a_.get(), 200, session_200);
836 } 835 }
837 } 836 }
838 } // namespace content 837 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698