| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "media/capture/video/video_capture_device_client.h" | 5 #include "media/capture/video/video_capture_device_client.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 MOCK_METHOD3( | 36 MOCK_METHOD3( |
| 37 MockOnFrameReadyInBuffer, | 37 MockOnFrameReadyInBuffer, |
| 38 void(int buffer_id, | 38 void(int buffer_id, |
| 39 std::unique_ptr<media::VideoCaptureDevice::Client::Buffer:: | 39 std::unique_ptr<media::VideoCaptureDevice::Client::Buffer:: |
| 40 ScopedAccessPermission>* buffer_read_permission, | 40 ScopedAccessPermission>* buffer_read_permission, |
| 41 const gfx::Size&)); | 41 const gfx::Size&)); |
| 42 MOCK_METHOD0(OnError, void()); | 42 MOCK_METHOD0(OnError, void()); |
| 43 MOCK_METHOD1(OnLog, void(const std::string& message)); | 43 MOCK_METHOD1(OnLog, void(const std::string& message)); |
| 44 MOCK_METHOD1(OnBufferRetired, void(int buffer_id)); | 44 MOCK_METHOD1(OnBufferRetired, void(int buffer_id)); |
| 45 MOCK_METHOD0(OnStarted, void()); | 45 MOCK_METHOD0(OnStarted, void()); |
| 46 MOCK_METHOD0(OnStartedUsingGpuDecode, void()); |
| 46 | 47 |
| 47 void OnNewBufferHandle( | 48 void OnNewBufferHandle( |
| 48 int buffer_id, | 49 int buffer_id, |
| 49 std::unique_ptr<media::VideoCaptureDevice::Client::Buffer::HandleProvider> | 50 std::unique_ptr<media::VideoCaptureDevice::Client::Buffer::HandleProvider> |
| 50 handle_provider) override { | 51 handle_provider) override { |
| 51 MockOnNewBufferHandle(buffer_id); | 52 MockOnNewBufferHandle(buffer_id); |
| 52 } | 53 } |
| 53 | 54 |
| 54 void OnFrameReadyInBuffer( | 55 void OnFrameReadyInBuffer( |
| 55 int32_t buffer_id, | 56 int32_t buffer_id, |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 | 260 |
| 260 EXPECT_EQ(coded_size.width(), size_and_rotation.output_resolution.width()); | 261 EXPECT_EQ(coded_size.width(), size_and_rotation.output_resolution.width()); |
| 261 EXPECT_EQ(coded_size.height(), | 262 EXPECT_EQ(coded_size.height(), |
| 262 size_and_rotation.output_resolution.height()); | 263 size_and_rotation.output_resolution.height()); |
| 263 | 264 |
| 264 Mock::VerifyAndClearExpectations(controller_); | 265 Mock::VerifyAndClearExpectations(controller_); |
| 265 } | 266 } |
| 266 } | 267 } |
| 267 | 268 |
| 268 } // namespace media | 269 } // namespace media |
| OLD | NEW |