• Home
  • Raw
  • Download

Lines Matching refs:cm_

59         cm_(new cricket::ChannelManager(fme_,  in ChannelManagerTest()
64 fake_mc_(cm_, &fake_call_), in ChannelManagerTest()
75 delete cm_; in TearDown()
76 cm_ = NULL; in TearDown()
86 cricket::ChannelManager* cm_; member in cricket::ChannelManagerTest
94 EXPECT_FALSE(cm_->initialized()); in TEST_F()
95 EXPECT_EQ(rtc::Thread::Current(), cm_->worker_thread()); in TEST_F()
96 EXPECT_TRUE(cm_->Init()); in TEST_F()
97 EXPECT_TRUE(cm_->initialized()); in TEST_F()
98 cm_->Terminate(); in TEST_F()
99 EXPECT_FALSE(cm_->initialized()); in TEST_F()
105 EXPECT_FALSE(cm_->initialized()); in TEST_F()
106 EXPECT_EQ(rtc::Thread::Current(), cm_->worker_thread()); in TEST_F()
107 EXPECT_TRUE(cm_->set_worker_thread(&worker_)); in TEST_F()
108 EXPECT_EQ(&worker_, cm_->worker_thread()); in TEST_F()
109 EXPECT_TRUE(cm_->Init()); in TEST_F()
110 EXPECT_TRUE(cm_->initialized()); in TEST_F()
112 EXPECT_FALSE(cm_->set_worker_thread(rtc::Thread::Current())); in TEST_F()
113 cm_->Terminate(); in TEST_F()
114 EXPECT_FALSE(cm_->initialized()); in TEST_F()
119 EXPECT_TRUE(cm_->Init()); in TEST_F()
121 cm_->CreateVoiceChannel(&fake_mc_, transport_controller_, in TEST_F()
125 cm_->CreateVideoChannel(&fake_mc_, transport_controller_, in TEST_F()
128 cricket::DataChannel* data_channel = cm_->CreateDataChannel( in TEST_F()
131 cm_->DestroyVideoChannel(video_channel); in TEST_F()
132 cm_->DestroyVoiceChannel(voice_channel); in TEST_F()
133 cm_->DestroyDataChannel(data_channel); in TEST_F()
134 cm_->Terminate(); in TEST_F()
140 EXPECT_TRUE(cm_->set_worker_thread(&worker_)); in TEST_F()
141 EXPECT_TRUE(cm_->Init()); in TEST_F()
146 cm_->CreateVoiceChannel(&fake_mc_, transport_controller_, in TEST_F()
150 cm_->CreateVideoChannel(&fake_mc_, transport_controller_, in TEST_F()
153 cricket::DataChannel* data_channel = cm_->CreateDataChannel( in TEST_F()
156 cm_->DestroyVideoChannel(video_channel); in TEST_F()
157 cm_->DestroyVoiceChannel(voice_channel); in TEST_F()
158 cm_->DestroyDataChannel(data_channel); in TEST_F()
159 cm_->Terminate(); in TEST_F()
165 EXPECT_TRUE(cm_->Init()); in TEST_F()
173 cm_->CreateVoiceChannel(&fake_mc_, transport_controller_, in TEST_F()
177 cm_->CreateVideoChannel(&fake_mc_, transport_controller_, in TEST_F()
180 cricket::DataChannel* data_channel = cm_->CreateDataChannel( in TEST_F()
183 cm_->Terminate(); in TEST_F()
191 EXPECT_FALSE(cm_->GetOutputVolume(&level)); in TEST_F()
192 EXPECT_FALSE(cm_->SetOutputVolume(-1)); // Invalid volume. in TEST_F()
193 EXPECT_TRUE(cm_->SetOutputVolume(99)); in TEST_F()
197 EXPECT_TRUE(cm_->Init()); in TEST_F()
198 EXPECT_TRUE(cm_->GetOutputVolume(&level)); in TEST_F()
202 EXPECT_TRUE(cm_->SetOutputVolume(60)); in TEST_F()
203 EXPECT_TRUE(cm_->GetOutputVolume(&level)); in TEST_F()
210 EXPECT_TRUE(cm_->Init()); in TEST_F()
211 EXPECT_TRUE(cm_->GetOutputVolume(&level)); in TEST_F()
214 EXPECT_FALSE(cm_->SetOutputVolume(-1)); // Invalid volume. in TEST_F()
215 EXPECT_TRUE(cm_->SetOutputVolume(60)); in TEST_F()
217 EXPECT_TRUE(cm_->GetOutputVolume(&level)); in TEST_F()
226 cm_->GetSupportedVideoCodecs(&codecs); in TEST_F()
230 EXPECT_TRUE(cm_->SetVideoRtxEnabled(true)); in TEST_F()
231 cm_->GetSupportedVideoCodecs(&codecs); in TEST_F()
235 EXPECT_TRUE(cm_->SetVideoRtxEnabled(false)); in TEST_F()
236 cm_->GetSupportedVideoCodecs(&codecs); in TEST_F()
240 EXPECT_TRUE(cm_->Init()); in TEST_F()
241 EXPECT_FALSE(cm_->SetVideoRtxEnabled(true)); in TEST_F()
242 EXPECT_FALSE(cm_->SetVideoRtxEnabled(false)); in TEST_F()
245 cm_->Terminate(); in TEST_F()
246 EXPECT_TRUE(cm_->SetVideoRtxEnabled(true)); in TEST_F()
247 cm_->GetSupportedVideoCodecs(&codecs); in TEST_F()