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