Home
last modified time | relevance | path

Searched refs:IsActiveProfile (Results 1 – 6 of 6) sorted by relevance

/dports/www/chromium-legacy/chromium-88.0.4324.182/chrome/browser/nearby_sharing/
H A Dnearby_process_manager_unittest.cc185 TEST_F(NearbyProcessManagerTest, IsActiveProfile) { in TEST_F() argument
189 EXPECT_FALSE(manager.IsActiveProfile(profile_1)); in TEST_F()
190 EXPECT_FALSE(manager.IsActiveProfile(profile_2)); in TEST_F()
193 EXPECT_TRUE(manager.IsActiveProfile(profile_1)); in TEST_F()
198 EXPECT_TRUE(manager.IsActiveProfile(profile_2)); in TEST_F()
259 EXPECT_TRUE(manager.IsActiveProfile(profile_1)); in TEST_F()
292 EXPECT_TRUE(manager.IsActiveProfile(profile)); in TEST_F()
324 EXPECT_TRUE(manager.IsActiveProfile(profile)); in TEST_F()
366 EXPECT_TRUE(manager.IsActiveProfile(profile)); in TEST_F()
408 EXPECT_TRUE(manager.IsActiveProfile(profile)); in TEST_F()
[all …]
H A Dnearby_process_manager.cc112 bool NearbyProcessManager::IsActiveProfile(Profile* profile) const { in IsActiveProfile() function in NearbyProcessManager
121 return !IsActiveProfile(/*profile=*/nullptr); in IsAnyProfileActive()
125 if (IsActiveProfile(profile)) in SetActiveProfile()
142 if (!IsActiveProfile(profile)) in GetOrStartNearbyConnections()
151 if (!IsActiveProfile(profile)) in GetOrStartNearbySharingDecoder()
159 if (!IsActiveProfile(profile)) in StopProcess()
167 if (IsActiveProfile(profile)) in OnProfileAdded()
173 if (IsActiveProfile(profile)) in OnProfileMarkedForPermanentDeletion()
H A Dmock_nearby_process_manager.h31 MOCK_METHOD(bool, IsActiveProfile, (Profile * profile), (const, override));
H A Dnearby_process_manager.h67 virtual bool IsActiveProfile(Profile* profile) const;
H A Dnearby_sharing_service_impl.cc317 if (process_manager_->IsActiveProfile(profile_)) in Shutdown()
880 if (process_manager_->IsActiveProfile(profile_)) { in OnNearbyProcessStarted()
889 if (process_manager_->IsActiveProfile(profile_)) { in OnNearbyProcessStopped()
1346 if (!process_manager_->IsActiveProfile(profile_)) in ShouldStopNearbyProcess()
1394 if (!process_manager_->IsActiveProfile(profile_)) { in InvalidateScanningState()
1465 if (!process_manager_->IsActiveProfile(profile_)) { in InvalidateFastInitiationAdvertising()
1537 if (!process_manager_->IsActiveProfile(profile_)) { in InvalidateAdvertisingState()
H A Dnearby_sharing_service_impl_unittest.cc441 ON_CALL(mock_nearby_process_manager_, IsActiveProfile(profile_)) in CreateService()
1155 ON_CALL(mock_nearby_process_manager_, IsActiveProfile(_)) in TEST_F()
3494 ON_CALL(mock_nearby_process_manager_, IsActiveProfile(profile_)) in TEST_F()
3500 ON_CALL(mock_nearby_process_manager_, IsActiveProfile(profile_)) in TEST_F()
3514 ON_CALL(mock_nearby_process_manager_, IsActiveProfile(profile_)) in TEST_F()
3520 ON_CALL(mock_nearby_process_manager_, IsActiveProfile(profile_)) in TEST_F()