Lines Matching refs:GetTestLinkName
55 string GetTestLinkName(int index) { in GetTestLinkName() function
60 return wimax_manager::kDeviceObjectPathPrefix + GetTestLinkName(index); in GetTestPath()
111 provider_.pending_devices_[GetTestLinkName(2)] = GetTestPath(2); in TEST_F()
125 provider_.pending_devices_[GetTestLinkName(2)] = GetTestPath(2); in TEST_F()
133 provider_.pending_devices_[GetTestLinkName(1)] = GetTestPath(1); in TEST_F()
137 EXPECT_CALL(device_info_, GetIndex(GetTestLinkName(2))).WillOnce(Return(-1)); in TEST_F()
138 EXPECT_CALL(device_info_, GetIndex(GetTestLinkName(3))).WillOnce(Return(-1)); in TEST_F()
141 EXPECT_EQ(GetTestPath(2), provider_.pending_devices_[GetTestLinkName(2)]); in TEST_F()
142 EXPECT_EQ(GetTestPath(3), provider_.pending_devices_[GetTestLinkName(3)]); in TEST_F()
148 provider_.pending_devices_[GetTestLinkName(1)] = GetTestPath(1); in TEST_F()
149 EXPECT_CALL(device_info_, GetIndex(GetTestLinkName(1))).WillOnce(Return(1)); in TEST_F()
152 provider_.OnDeviceInfoAvailable(GetTestLinkName(1)); in TEST_F()
155 ASSERT_TRUE(ContainsKey(provider_.devices_, GetTestLinkName(1))); in TEST_F()
156 EXPECT_EQ(GetTestLinkName(1), in TEST_F()
157 provider_.devices_[GetTestLinkName(1)]->link_name()); in TEST_F()
163 EXPECT_CALL(device_info_, GetIndex(GetTestLinkName(1))).WillOnce(Return(-1)); in TEST_F()
164 provider_.CreateDevice(GetTestLinkName(1), GetTestPath(1)); in TEST_F()
167 EXPECT_EQ(GetTestPath(1), provider_.pending_devices_[GetTestLinkName(1)]); in TEST_F()
169 EXPECT_CALL(device_info_, GetIndex(GetTestLinkName(1))).WillOnce(Return(1)); in TEST_F()
172 provider_.CreateDevice(GetTestLinkName(1), GetTestPath(1)); in TEST_F()
175 ASSERT_TRUE(ContainsKey(provider_.devices_, GetTestLinkName(1))); in TEST_F()
176 EXPECT_EQ(GetTestLinkName(1), in TEST_F()
177 provider_.devices_[GetTestLinkName(1)]->link_name()); in TEST_F()
179 WiMax* device = provider_.devices_[GetTestLinkName(1)].get(); in TEST_F()
180 provider_.CreateDevice(GetTestLinkName(1), GetTestPath(1)); in TEST_F()
181 EXPECT_EQ(device, provider_.devices_[GetTestLinkName(1)].get()); in TEST_F()
188 GetTestLinkName(i), "", i, GetTestPath(i))); in TEST_F()
190 provider_.devices_[GetTestLinkName(i)] = device; in TEST_F()
193 provider_.pending_devices_[GetTestLinkName(i)] = GetTestPath(i); in TEST_F()
207 EXPECT_TRUE(ContainsKey(provider_.devices_, GetTestLinkName(0))); in TEST_F()
208 EXPECT_TRUE(ContainsKey(provider_.devices_, GetTestLinkName(3))); in TEST_F()
210 EXPECT_TRUE(ContainsKey(provider_.pending_devices_, GetTestLinkName(4))); in TEST_F()
211 EXPECT_TRUE(ContainsKey(provider_.pending_devices_, GetTestLinkName(7))); in TEST_F()
216 EXPECT_EQ(GetTestLinkName(1), provider_.GetLinkName(GetTestPath(1))); in TEST_F()
377 GetTestLinkName(i), "", i, GetTestPath(i))); in TEST_F()
378 provider_.devices_[GetTestLinkName(i)] = device; in TEST_F()
588 GetTestLinkName(1), "", 1, GetTestPath(1))); in TEST_F()
589 provider_.devices_[GetTestLinkName(1)] = device; in TEST_F()