Lines Matching refs:dm
116 scoped_ptr<DeviceManagerInterface> dm(DeviceManagerFactory::Create()); in TEST() local
117 EXPECT_TRUE(dm->Init()); in TEST()
118 dm->Terminate(); in TEST()
124 scoped_ptr<DeviceManagerInterface> dm(DeviceManagerFactory::Create()); in TEST() local
127 EXPECT_TRUE(dm->Init()); in TEST()
128 EXPECT_TRUE(dm->GetVideoCaptureDevices(&devices)); in TEST()
129 dm->Terminate(); in TEST()
135 EXPECT_TRUE(dm->Init()); in TEST()
136 dm->Terminate(); in TEST()
143 EXPECT_TRUE(dm->Init()); in TEST()
144 dm->Terminate(); in TEST()
154 scoped_ptr<DeviceManagerInterface> dm(DeviceManagerFactory::Create()); in TEST() local
158 EXPECT_TRUE(dm->Init()); in TEST()
159 EXPECT_TRUE(dm->GetAudioInputDevices(&audio_ins)); in TEST()
160 EXPECT_TRUE(dm->GetAudioOutputDevices(&audio_outs)); in TEST()
161 EXPECT_TRUE(dm->GetVideoCaptureDevices(&video_ins)); in TEST()
162 EXPECT_TRUE(dm->GetVideoCaptureDevices(&video_in_devs)); in TEST()
165 EXPECT_TRUE(dm->GetVideoCaptureDevice( in TEST()
172 scoped_ptr<DeviceManagerInterface> dm(DeviceManagerFactory::Create()); in TEST() local
174 EXPECT_TRUE(dm->Init()); in TEST()
175 EXPECT_TRUE(dm->GetAudioInputDevice( in TEST()
178 EXPECT_TRUE(dm->GetAudioOutputDevice( in TEST()
181 EXPECT_FALSE(dm->GetAudioInputDevice("_NOT A REAL DEVICE_", &device)); in TEST()
182 EXPECT_FALSE(dm->GetAudioOutputDevice("_NOT A REAL DEVICE_", &device)); in TEST()
187 scoped_ptr<DeviceManagerInterface> dm(DeviceManagerFactory::Create()); in TEST() local
189 EXPECT_TRUE(dm->Init()); in TEST()
190 EXPECT_FALSE(dm->GetVideoCaptureDevice("_NOT A REAL DEVICE_", &device)); in TEST()
192 EXPECT_TRUE(dm->GetVideoCaptureDevices(&video_ins)); in TEST()
195 EXPECT_TRUE(dm->GetVideoCaptureDevice( in TEST()
199 EXPECT_TRUE(dm->GetVideoCaptureDevice(video_ins[0].name, &device)); in TEST()
206 scoped_ptr<DeviceManagerInterface> dm(DeviceManagerFactory::Create()); in TEST() local
207 EXPECT_TRUE(dm->Init()); in TEST()
211 EXPECT_TRUE(dm->GetVideoCaptureDevice(test_file, &device)); in TEST()
217 scoped_ptr<DeviceManagerInterface> dm(DeviceManagerFactory::Create()); in TEST() local
222 EXPECT_TRUE(dm->Init()); in TEST()
223 EXPECT_TRUE(dm->GetAudioInputDevices(&audio_ins)); in TEST()
224 EXPECT_TRUE(dm->GetAudioOutputDevices(&audio_outs)); in TEST()
225 EXPECT_TRUE(dm->GetVideoCaptureDevices(&video_ins)); in TEST()
322 scoped_ptr<DeviceManagerInterface> dm(DeviceManagerFactory::Create()); in TEST() local
324 EXPECT_TRUE(dm->Init()); in TEST()
325 EXPECT_TRUE(dm->GetVideoCaptureDevices(&video_ins)); in TEST()
351 scoped_ptr<DeviceManagerInterface> dm(DeviceManagerFactory::Create()); in TEST() local
353 EXPECT_TRUE(dm->Init()); in TEST()
354 EXPECT_TRUE(dm->GetVideoCaptureDevices(&video_ins)); in TEST()
372 scoped_ptr<DeviceManagerInterface> dm(DeviceManagerFactory::Create()); in TEST() local
374 EXPECT_TRUE(dm->Init()); in TEST()
375 EXPECT_TRUE(dm->GetVideoCaptureDevices(&video_ins)); in TEST()
390 scoped_ptr<DeviceManagerInterface> dm(DeviceManagerFactory::Create()); in TEST() local
391 dm->SetScreenCapturerFactory(new FakeScreenCapturerFactory()); in TEST()
393 EXPECT_TRUE(dm->Init()); in TEST()
394 if (!dm->GetWindows(&descriptions) || descriptions.empty()) { in TEST()
399 scoped_ptr<cricket::VideoCapturer> capturer(dm->CreateScreenCapturer( in TEST()
414 scoped_ptr<DeviceManagerInterface> dm(DeviceManagerFactory::Create()); in TEST() local
415 dm->SetScreenCapturerFactory(new FakeScreenCapturerFactory()); in TEST()
417 EXPECT_TRUE(dm->Init()); in TEST()
418 if (!dm->GetDesktops(&descriptions) || descriptions.empty()) { in TEST()
423 scoped_ptr<cricket::VideoCapturer> capturer(dm->CreateScreenCapturer( in TEST()