Lines Matching refs:device_
66 device_ = new Device(&manager_, kDeviceName, 0); in DeviceTest()
71 EXPECT_EQ(interface_list.size(), device_->interface_list_.size()); in VerifyInterfaceList()
73 EXPECT_TRUE(interface_list[i].Equals(device_->interface_list_[i])); in VerifyInterfaceList()
78 EXPECT_EQ(interface_name, device_->GetPreferredApInterface()); in VerifyPreferredApInterface()
119 device_->supports_ap_mode_ = true; in EnableApModeSupport()
123 EXPECT_EQ(supports_ap_mode, device_->supports_ap_mode_); in VerifyApModeSupport()
127 EXPECT_EQ(frequency_list, device_->band_capability_[band_id].frequencies); in VerifyFrequencyList()
133 scoped_refptr<Device> device_; member in apmanager::DeviceTest
142 device_->RegisterInterface(kApModeInterface0); in TEST_F()
143 device_->RegisterInterface(kManagedModeInterface0); in TEST_F()
144 device_->RegisterInterface(kMonitorModeInterface); in TEST_F()
156 device_->RegisterInterface(kApModeInterface0); in TEST_F()
157 device_->RegisterInterface(kMonitorModeInterface); in TEST_F()
158 device_->RegisterInterface(kManagedModeInterface0); in TEST_F()
159 device_->RegisterInterface(kManagedModeInterface1); in TEST_F()
160 device_->DeregisterInterface(kMonitorModeInterface); in TEST_F()
161 device_->DeregisterInterface(kManagedModeInterface1); in TEST_F()
171 device_->RegisterInterface(kMonitorModeInterface); in TEST_F()
175 device_->RegisterInterface(kManagedModeInterface0); in TEST_F()
179 device_->RegisterInterface(kApModeInterface0); in TEST_F()
185 device_->RegisterInterface(kApModeInterface1); in TEST_F()
186 device_->RegisterInterface(kManagedModeInterface1); in TEST_F()
191 device_->DeregisterInterface(kApModeInterface0); in TEST_F()
196 device_->DeregisterInterface(kApModeInterface1); in TEST_F()
201 device_->DeregisterInterface(kManagedModeInterface0); in TEST_F()
206 device_->DeregisterInterface(kManagedModeInterface1); in TEST_F()
213 device_->RegisterInterface(kApModeInterface0); in TEST_F()
272 device_->ParseWiphyCapability(message); in TEST_F()
284 EXPECT_TRUE(device_->GetHTCapability(6, &band_24ghz_cap)); in TEST_F()
291 EXPECT_TRUE(device_->GetHTCapability(36, &band_5ghz_cap)); in TEST_F()
299 device_->RegisterInterface(kApModeInterface1); in TEST_F()
300 device_->RegisterInterface(kManagedModeInterface1); in TEST_F()
306 EXPECT_TRUE(device_->ClaimDevice(true)); in TEST_F()
311 EXPECT_FALSE(device_->ClaimDevice(true)); in TEST_F()
319 EXPECT_TRUE(device_->ReleaseDevice()); in TEST_F()
324 EXPECT_FALSE(device_->ReleaseDevice()); in TEST_F()
332 device_->RegisterInterface(kApModeInterface1); in TEST_F()
333 device_->RegisterInterface(kManagedModeInterface1); in TEST_F()
340 EXPECT_TRUE(device_->ClaimDevice(false)); in TEST_F()
345 EXPECT_FALSE(device_->ClaimDevice(false)); in TEST_F()
354 EXPECT_TRUE(device_->ReleaseDevice()); in TEST_F()
359 EXPECT_FALSE(device_->ReleaseDevice()); in TEST_F()