OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "base/memory/ref_counted.h" | 5 #include "base/memory/ref_counted.h" |
6 #include "base/run_loop.h" | 6 #include "base/run_loop.h" |
7 #include "services/video_capture/fake_device_test.h" | 7 #include "services/video_capture/fake_device_test.h" |
8 #include "services/video_capture/mock_video_capture_device_client.h" | 8 #include "services/video_capture/mock_video_capture_device_client.h" |
9 #include "services/video_capture/public/interfaces/video_capture_device_factory.
mojom.h" | 9 #include "services/video_capture/public/interfaces/video_capture_device_factory.
mojom.h" |
10 #include "services/video_capture/video_capture_service_test.h" | 10 #include "services/video_capture/video_capture_service_test.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 EXPECT_CALL(client, OnFrameAvailablePtr(_)) | 29 EXPECT_CALL(client, OnFrameAvailablePtr(_)) |
30 .WillRepeatedly(InvokeWithoutArgs( | 30 .WillRepeatedly(InvokeWithoutArgs( |
31 [&wait_loop, &kNumFramesToWaitFor, &num_frames_arrived]() { | 31 [&wait_loop, &kNumFramesToWaitFor, &num_frames_arrived]() { |
32 num_frames_arrived += 1; | 32 num_frames_arrived += 1; |
33 if (num_frames_arrived >= kNumFramesToWaitFor) { | 33 if (num_frames_arrived >= kNumFramesToWaitFor) { |
34 wait_loop.Quit(); | 34 wait_loop.Quit(); |
35 } | 35 } |
36 })); | 36 })); |
37 | 37 |
38 fake_device_proxy_->Start(arbitrary_requested_format, | 38 fake_device_proxy_->Start(arbitrary_requested_format, |
39 mojom::ResolutionChangePolicy::FIXED_RESOLUTION, | 39 media::RESOLUTION_POLICY_FIXED_RESOLUTION, |
40 mojom::PowerLineFrequency::DEFAULT, | 40 media::PowerLineFrequency::FREQUENCY_DEFAULT, |
41 std::move(client_proxy)); | 41 std::move(client_proxy)); |
42 wait_loop.Run(); | 42 wait_loop.Run(); |
43 } | 43 } |
44 | 44 |
45 } // namespace video_capture | 45 } // namespace video_capture |
OLD | NEW |