Index: content/browser/renderer_host/media/video_capture_host_unittest.cc |
=================================================================== |
--- content/browser/renderer_host/media/video_capture_host_unittest.cc (revision 107671) |
+++ content/browser/renderer_host/media/video_capture_host_unittest.cc (working copy) |
@@ -269,18 +269,18 @@ |
void StartCapture() { |
InSequence s; |
- // 1. Newly created buffers will arrive. |
- EXPECT_CALL(*host_, OnNewBufferCreated(kDeviceId, _, _, _)) |
- .Times(AnyNumber()) |
- .WillRepeatedly(Return()); |
- |
- // 2. First - get info about the new resolution |
+ // 1. First - get info about the new resolution |
EXPECT_CALL(*host_, OnDeviceInfo(kDeviceId)); |
- // 3. Change state to started |
+ // 2. Change state to started |
EXPECT_CALL(*host_, OnStateChanged(kDeviceId, |
media::VideoCapture::kStarted)); |
+ // 3. Newly created buffers will arrive. |
+ EXPECT_CALL(*host_, OnNewBufferCreated(kDeviceId, _, _, _)) |
+ .Times(AnyNumber()) |
+ .WillRepeatedly(Return()); |
+ |
// 4. First filled buffer will arrive. |
EXPECT_CALL(*host_, OnBufferFilled(kDeviceId, _, _)) |
.Times(AnyNumber()) |