Lines Matching defs:capturer_
44 capturer_.reset(new cricket::FileVideoCapturer);
48 return capturer_->Init(cricket::GetTestFilePath(filename));
85 rtc::scoped_ptr<cricket::FileVideoCapturer> capturer_;
90 EXPECT_EQ("", capturer_->GetId());
91 EXPECT_TRUE(capturer_->GetSupportedFormats()->empty());
92 EXPECT_EQ(NULL, capturer_->GetCaptureFormat());
93 EXPECT_FALSE(capturer_->IsRunning());
102 EXPECT_NE("", capturer_->GetId());
103 EXPECT_TRUE(NULL != capturer_->GetSupportedFormats());
104 EXPECT_EQ(1U, capturer_->GetSupportedFormats()->size());
105 EXPECT_EQ(NULL, capturer_->GetCaptureFormat()); // not started yet
106 EXPECT_FALSE(capturer_->IsRunning());
114 EXPECT_TRUE(capturer_->GetBestCaptureFormat(desired, &capture_format_));
121 EXPECT_TRUE(capturer_->GetBestCaptureFormat(desired, &capture_format_));
129 cricket::VideoFormat desired = capturer_->GetSupportedFormats()->at(0);
130 EXPECT_TRUE(capturer_->GetBestCaptureFormat(desired, &capture_format_));
135 EXPECT_TRUE(capturer_->GetBestCaptureFormat(desired, &capture_format_));
140 EXPECT_TRUE(capturer_->GetBestCaptureFormat(desired, &capture_format_));
146 capturer_->SignalFrameCaptured.connect(
148 capturer_->set_repeat(0);
149 capture_format_ = capturer_->GetSupportedFormats()->at(0);
150 EXPECT_EQ(cricket::CS_RUNNING, capturer_->Start(capture_format_));
151 EXPECT_TRUE_WAIT(!capturer_->IsRunning(), 20000);
156 // Start the capturer_ with 50 fps and read no less than 150 frames.
159 capturer_->SignalFrameCaptured.connect(
161 capturer_->set_repeat(cricket::FileVideoCapturer::kForever);
162 capture_format_ = capturer_->GetSupportedFormats()->at(0);
164 EXPECT_EQ(cricket::CS_RUNNING, capturer_->Start(capture_format_));
165 EXPECT_TRUE(NULL != capturer_->GetCaptureFormat());
166 EXPECT_TRUE(capture_format_ == *capturer_->GetCaptureFormat());
167 EXPECT_TRUE_WAIT(!capturer_->IsRunning() ||
169 capturer_->Stop();
170 EXPECT_FALSE(capturer_->IsRunning());
181 capturer_->SignalFrameCaptured.connect(
183 capturer_->set_repeat(0);
184 capture_format_ = capturer_->GetSupportedFormats()->at(0);
185 EXPECT_EQ(cricket::CS_RUNNING, capturer_->Start(capture_format_));
186 EXPECT_TRUE_WAIT(!capturer_->IsRunning(), 1000);
200 EXPECT_TRUE(capturer_->Init(file_device));
201 EXPECT_EQ(file_device.id, capturer_->GetId());