Chromium Code Reviews| Index: content/browser/renderer_host/media/video_capture_unittest.cc |
| diff --git a/content/browser/renderer_host/media/video_capture_unittest.cc b/content/browser/renderer_host/media/video_capture_unittest.cc |
| index b2ce87ec007dd49609bef2d9367daaf932f70ab9..b792e9cee8ce497bff93a17ca97ceea0d6203c46 100644 |
| --- a/content/browser/renderer_host/media/video_capture_unittest.cc |
| +++ b/content/browser/renderer_host/media/video_capture_unittest.cc |
| @@ -38,6 +38,7 @@ |
| using ::testing::_; |
| using ::testing::AnyNumber; |
| +using ::testing::AtMost; |
| using ::testing::DoAll; |
| using ::testing::InSequence; |
| using ::testing::Mock; |
| @@ -244,7 +245,10 @@ class VideoCaptureTest : public testing::Test, |
| params.requested_format = media::VideoCaptureFormat( |
| gfx::Size(352, 288), 30, media::PIXEL_FORMAT_I420); |
| - EXPECT_CALL(*this, OnStateChanged(mojom::VideoCaptureState::STARTED)); |
| + // |STARTED| is reported asynchronously now, which may not be got if capture |
|
chfremer
2017/02/16 01:00:50
Please remove the word "now".
braveyao
2017/02/17 20:37:21
Done.
|
| + // is stopped immediately. |
| + EXPECT_CALL(*this, OnStateChanged(mojom::VideoCaptureState::STARTED)) |
| + .Times(AtMost(1)); |
| host_->Start(kDeviceId, opened_session_id_, params, |
| observer_binding_.CreateInterfacePtrAndBind()); |