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 24 matching lines...) Expand all Loading... |
35 MOCK_METHOD1(MockOnNewBufferHandle, void(int buffer_id)); | 35 MOCK_METHOD1(MockOnNewBufferHandle, void(int buffer_id)); |
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 | 46 |
46 void OnNewBufferHandle( | 47 void OnNewBufferHandle( |
47 int buffer_id, | 48 int buffer_id, |
48 std::unique_ptr<media::VideoCaptureDevice::Client::Buffer::HandleProvider> | 49 std::unique_ptr<media::VideoCaptureDevice::Client::Buffer::HandleProvider> |
49 handle_provider) override { | 50 handle_provider) override { |
50 MockOnNewBufferHandle(buffer_id); | 51 MockOnNewBufferHandle(buffer_id); |
51 } | 52 } |
52 | 53 |
53 void OnFrameReadyInBuffer( | 54 void OnFrameReadyInBuffer( |
54 int32_t buffer_id, | 55 int32_t buffer_id, |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 | 259 |
259 EXPECT_EQ(coded_size.width(), size_and_rotation.output_resolution.width()); | 260 EXPECT_EQ(coded_size.width(), size_and_rotation.output_resolution.width()); |
260 EXPECT_EQ(coded_size.height(), | 261 EXPECT_EQ(coded_size.height(), |
261 size_and_rotation.output_resolution.height()); | 262 size_and_rotation.output_resolution.height()); |
262 | 263 |
263 Mock::VerifyAndClearExpectations(controller_); | 264 Mock::VerifyAndClearExpectations(controller_); |
264 } | 265 } |
265 } | 266 } |
266 | 267 |
267 } // namespace media | 268 } // namespace media |
OLD | NEW |