/system/connectivity/shill/ |
D | daemon_task_unittest.cc | 88 manager_(new MockManager(control_, dispatcher_, metrics_)), in DaemonTaskTest() 92 device_info_(control_, dispatcher_, metrics_, manager_) { in DaemonTaskTest() 102 daemon_.manager_.reset(manager_); // Passes ownership in SetUp() 136 MockManager* manager_; member in shill::DaemonTaskTest 168 EXPECT_CALL(*manager_, Start()).After(routing_table_started); in TEST_F() 171 Mock::VerifyAndClearExpectations(manager_); in TEST_F() 173 EXPECT_CALL(*manager_, Stop()); in TEST_F() 186 .WillOnce(CompleteAction(manager_, "daemon test")); in TEST_F() 189 manager_->AddTerminationAction( in TEST_F() 211 EXPECT_CALL(*manager_, SetBlacklistedDevices(kEmptyStringList)); in TEST_F() [all …]
|
D | daemon_task.cc | 64 manager_->SetBlacklistedDevices(settings_.device_blacklist); in ApplySettings() 65 manager_->SetWhitelistedDevices(settings_.device_whitelist); in ApplySettings() 67 manager_->SetTechnologyOrder(settings_.default_technology_order, &error); in ApplySettings() 69 manager_->SetIgnoreUnknownEthernet(settings_.ignore_unknown_ethernet); in ApplySettings() 71 manager_->SetStartupPortalList(settings_.portal_list); in ApplySettings() 74 manager_->SetPassiveMode(); in ApplySettings() 76 manager_->SetPrependDNSServers(settings_.prepend_dns_servers); in ApplySettings() 78 manager_->SetMinimumMTU(settings_.minimum_mtu); in ApplySettings() 80 manager_->SetAcceptHostnameFrom(settings_.accept_hostname_from); in ApplySettings() 81 manager_->SetDHCPv6EnabledDevices(settings_.dhcpv6_enabled_devices); in ApplySettings() [all …]
|
D | service_sorter.h | 38 : manager_(manager), in ServiceSorter() 43 return Service::Compare(manager_, a, b, compare_connectivity_state_, in operator() 48 Manager* manager_;
|
/system/update_engine/ |
D | p2p_manager_unittest.cc | 86 manager_.reset(P2PManager::Construct(test_conf_, &fake_clock_, &fake_um_, in SetUp() 103 unique_ptr<P2PManager> manager_; member in chromeos_update_engine::P2PManagerTest 113 EXPECT_FALSE(manager_->IsP2PEnabled()); in TEST_F() 115 EXPECT_FALSE(manager_->IsP2PEnabled()); in TEST_F() 128 EXPECT_TRUE(manager_->IsP2PEnabled()); in TEST_F() 130 EXPECT_FALSE(manager_->IsP2PEnabled()); in TEST_F() 139 manager_.reset(P2PManager::Construct( in TEST_F() 142 EXPECT_EQ(manager_->CountSharedFiles(), 0); in TEST_F() 160 EXPECT_EQ(manager_->CountSharedFiles(), 5); in TEST_F() 162 EXPECT_TRUE(manager_->PerformHousekeeping()); in TEST_F() [all …]
|
/system/connectivity/apmanager/ |
D | manager_unittest.cc | 33 ManagerTest() : manager_(&control_interface_) { in ManagerTest() 39 manager_.devices_.push_back(device); in RegisterDevice() 44 Manager manager_; member in apmanager::ManagerTest 49 scoped_refptr<MockDevice> device0 = new MockDevice(&manager_); in TEST_F() 53 EXPECT_EQ(nullptr, manager_.GetAvailableDevice()); in TEST_F() 58 EXPECT_EQ(device0, manager_.GetAvailableDevice()); in TEST_F() 62 scoped_refptr<MockDevice> device1 = new MockDevice(&manager_); in TEST_F() 67 EXPECT_EQ(device0, manager_.GetAvailableDevice()); in TEST_F() 71 EXPECT_EQ(device1, manager_.GetAvailableDevice()); in TEST_F() 75 EXPECT_EQ(nullptr, manager_.GetAvailableDevice()); in TEST_F() [all …]
|
D | device_unittest.cc | 63 DeviceTest() : manager_(&control_interface_) { in DeviceTest() 66 device_ = new Device(&manager_, kDeviceName, 0); in DeviceTest() 132 MockManager manager_; member in apmanager::DeviceTest 303 EXPECT_CALL(manager_, ClaimInterface(kApModeInterface1.iface_name)).Times(1); in TEST_F() 304 EXPECT_CALL(manager_, in TEST_F() 307 Mock::VerifyAndClearExpectations(&manager_); in TEST_F() 310 EXPECT_CALL(manager_, ClaimInterface(_)).Times(0); in TEST_F() 312 Mock::VerifyAndClearExpectations(&manager_); in TEST_F() 315 EXPECT_CALL(manager_, in TEST_F() 317 EXPECT_CALL(manager_, in TEST_F() [all …]
|
D | service_unittest.cc | 71 : manager_(&control_interface_), in ServiceTest() 79 service_ = new Service(&manager_, kServiceIdentifier); in ServiceTest() 114 MockManager manager_; member in apmanager::ServiceTest 131 MockConfig* config = new MockConfig(&manager_); in TEST_F() 140 MockConfig* config = new MockConfig(&manager_); in TEST_F() 160 EXPECT_CALL(manager_, RequestDHCPPortAccess(_)); in TEST_F() 176 MockConfig* config = new MockConfig(&manager_); in TEST_F()
|
D | device_info_unittest.cc | 67 : manager_(&control_interface_), in DeviceInfoTest() 68 device_info_(&manager_) {} in DeviceInfoTest() 157 MockManager manager_; member in apmanager::DeviceInfoTest 196 EXPECT_CALL(manager_, RegisterDevice(_)).Times(0); in TEST_F() 204 EXPECT_CALL(manager_, RegisterDevice(IsDevice(kTestDeviceName))).Times(1); in TEST_F() 206 Mock::VerifyAndClearExpectations(&manager_); in TEST_F() 210 EXPECT_CALL(manager_, RegisterDevice(_)).Times(0); in TEST_F() 330 scoped_refptr<MockDevice> device = new MockDevice(&manager_); in TEST_F() 332 EXPECT_CALL(manager_, RegisterDevice(_)).Times(1); in TEST_F() 375 EXPECT_CALL(manager_, RegisterDevice(IsDevice(kTestDeviceName))).Times(1); in TEST_F() [all …]
|
D | config_unittest.cc | 131 : manager_(&control_interface_) { in ConfigTest() 138 config_.reset(new Config(&manager_, 0)); in ConfigTest() 143 device_ = new MockDevice(&manager_); in SetupDevice() 145 EXPECT_CALL(manager_, GetDeviceFromInterfaceName(interface)) in SetupDevice() 159 MockManager manager_; member in apmanager::ConfigTest 261 EXPECT_CALL(manager_, GetAvailableDevice()).WillOnce(Return(nullptr)); in TEST_F() 264 Mock::VerifyAndClearExpectations(&manager_); in TEST_F() 267 scoped_refptr<MockDevice> device = new MockDevice(&manager_); in TEST_F() 270 EXPECT_CALL(manager_, GetAvailableDevice()).WillOnce(Return(device)); in TEST_F() 278 Mock::VerifyAndClearExpectations(&manager_); in TEST_F() [all …]
|
D | service.cc | 71 : manager_(manager), in Service() 155 manager_->RequestDHCPPortAccess(config_->selected_interface()); in StartInternal() 189 if (!manager_->SetupApModeInterface(&interface_name)) { in Start() 225 manager_->SetupStationModeInterface(&station_mode_interface); in HandleStartFailure() 238 if (manager_->GetDeviceFromInterfaceName(interface_name)) { in APInterfaceCheckTask() 296 manager_->ReleaseDHCPPortAccess(config_->selected_interface()); in ReleaseResources() 300 manager_->SetupStationModeInterface(&station_mode_interface); in ReleaseResources()
|
/system/nativepower/daemon/ |
D | wake_lock_manager_unittest.cc | 38 manager_.set_paths_for_testing(lock_path_, unlock_path_); in WakeLockManagerTest() 39 CHECK(manager_.Init()); in WakeLockManagerTest() 63 WakeLockManager manager_; member in android::WakeLockManagerTest 72 EXPECT_TRUE(manager_.AddRequest(binder1, "1", "1", -1)); in TEST_F() 79 EXPECT_TRUE(manager_.AddRequest(binder2, "2", "2", -1)); in TEST_F() 85 EXPECT_TRUE(manager_.RemoveRequest(binder1)); in TEST_F() 91 EXPECT_TRUE(manager_.RemoveRequest(binder2)); in TEST_F() 98 EXPECT_TRUE(manager_.AddRequest(binder, "foo", "bar", -1)); in TEST_F() 105 EXPECT_TRUE(manager_.AddRequest(binder, "a", "b", -1)); in TEST_F() 110 EXPECT_TRUE(manager_.RemoveRequest(binder)); in TEST_F() [all …]
|
/system/connectivity/shill/ethernet/ |
D | ethernet_eap_provider_unittest.cc | 40 manager_(&control_, &dispatcher_, &metrics_), in EthernetEapProviderTest() 41 provider_(&control_, &dispatcher_, &metrics_, &manager_) {} in EthernetEapProviderTest() 55 MockManager manager_; member in shill::EthernetEapProviderTest 66 EXPECT_CALL(manager_, RegisterService(_)).WillOnce(SaveArg<0>(&service)); in TEST_F() 71 EXPECT_CALL(manager_, DeregisterService(service)); in TEST_F() 76 EXPECT_CALL(manager_, RegisterService(service)); in TEST_F() 78 Mock::VerifyAndClearExpectations(&manager_); in TEST_F() 89 &manager_, in TEST_F() 105 &manager_, in TEST_F() 136 EXPECT_CALL(manager_, RegisterService(_)).WillOnce(SaveArg<0>(&service)); in TEST_F() [all …]
|
D | ethernet_eap_service_unittest.cc | 44 manager_(&control_, &dispatcher_, &metrics_), in EthernetEapServiceTest() 48 &manager_)) {} in EthernetEapServiceTest() 59 MockManager manager_; member in shill::EthernetEapServiceTest 75 EXPECT_CALL(manager_, ethernet_eap_provider()).WillOnce(Return(&provider_)); in TEST_F() 82 EXPECT_CALL(manager_, ethernet_eap_provider()).WillOnce(Return(&provider_)); in TEST_F() 88 EXPECT_CALL(manager_, ethernet_eap_provider()).WillOnce(Return(&provider_)); in TEST_F() 100 TestCustomSetterNoopChange(service_, &manager_); in TEST_F()
|
D | ethernet_eap_provider.cc | 35 manager_(manager) {} in EthernetEapProvider() 63 manager_); in CreateTemporaryService() 71 manager_); in CreateTemporaryServiceFromProfile() 79 manager_); in Start() 81 manager_->RegisterService(service_); in Start() 86 manager_->DeregisterService(service_); in Stop()
|
D | ethernet_unittest.cc | 74 manager_(&control_interface_, nullptr, &metrics_), in EthernetTest() 75 device_info_(&control_interface_, &dispatcher_, &metrics_, &manager_), in EthernetTest() 79 &manager_, in EthernetTest() 90 &manager_)), in EthernetTest() 106 ON_CALL(manager_, device_info()).WillByDefault(Return(&device_info_)); in SetUp() 107 EXPECT_CALL(manager_, UpdateEnabledTechnologies()).Times(AnyNumber()); in SetUp() 111 EXPECT_CALL(manager_, ethernet_eap_provider()) in SetUp() 129 Mock::VerifyAndClearExpectations(&manager_); in TearDown() 214 MockManager manager_; member in shill::EthernetTest 257 EXPECT_CALL(manager_, RegisterService(Eq(service))); in TEST_F() [all …]
|
/system/connectivity/shill/dbus/ |
D | chromeos_manager_dbus_adaptor.cc | 56 manager_(manager), in ChromeosManagerDBusAdaptor() 61 manager_ = nullptr; in ~ChromeosManagerDBusAdaptor() 121 return ChromeosDBusAdaptor::GetProperties(manager_->store(), in GetProperties() 130 return ChromeosDBusAdaptor::SetProperty(manager_->mutable_store(), in SetProperty() 139 *state = manager_->CalculateState(nullptr); in GetState() 149 manager_->CreateProfile(name, &path, &e); in CreateProfile() 161 manager_->RemoveProfile(name, &e); in RemoveProfile() 171 manager_->PushProfile(name, &path, &e); in PushProfile() 187 manager_->InsertUserProfile(name, user_hash, &path, &e); in InsertUserProfile() 199 manager_->PopProfile(name, &e); in PopProfile() [all …]
|
D | chromeos_manager_dbus_adaptor_unittest.cc | 55 manager_(&control_interface_, &dispatcher_, &metrics_), in ChromeosManagerDBusAdaptorTest() 56 manager_adaptor_(adaptor_bus_, proxy_bus_, &manager_) {} in ChromeosManagerDBusAdaptorTest() 73 MockManager manager_; member in shill::ChromeosManagerDBusAdaptorTest 93 EXPECT_CALL(manager_, ClaimDevice(_, kInterfaceName, _)) in TEST_F() 104 EXPECT_CALL(manager_, ClaimDevice(_, kInterfaceName, _)) in TEST_F() 115 EXPECT_CALL(manager_, ClaimDevice(_, kInterfaceName, _)) in TEST_F() 136 EXPECT_CALL(manager_, ReleaseDevice(_, kInterfaceName, _, _)) in TEST_F() 143 EXPECT_CALL(manager_, ReleaseDevice(_, kInterfaceName, _, _)) in TEST_F() 159 EXPECT_CALL(manager_, SetupApModeInterface(&out_interface_name, _)) in TEST_F() 170 EXPECT_CALL(manager_, SetupApModeInterface(&out_interface_name, _)) in TEST_F() [all …]
|
/system/connectivity/shill/wifi/ |
D | wifi_provider_unittest.cc | 80 manager_(&control_, &dispatcher_, &metrics_), in WiFiProviderTest() 81 provider_(&control_, &dispatcher_, &metrics_, &manager_), in WiFiProviderTest() 84 &control_, &metrics_, &manager_, "default")), in WiFiProviderTest() 86 new NiceMock<MockProfile>(&control_, &metrics_, &manager_, "user")), in WiFiProviderTest() 336 &manager_, in AddMockService() 432 StrictMock<MockManager> manager_; member in shill::WiFiProviderTest 477 EXPECT_CALL(manager_, DeregisterService(RefPtrMatch(service0))).Times(1); in TEST_F() 478 EXPECT_CALL(manager_, DeregisterService(RefPtrMatch(service1))).Times(1); in TEST_F() 484 Mock::VerifyAndClearExpectations(&manager_); in TEST_F() 642 EXPECT_CALL(manager_, RegisterService(_)) in TEST_F() [all …]
|
/system/connectivity/shill/wimax/ |
D | wimax_provider_unittest.cc | 76 manager_(&control_, nullptr, &metrics_), in WiMaxProviderTest() 77 device_info_(&control_, nullptr, &metrics_, &manager_), in WiMaxProviderTest() 78 provider_(&control_, nullptr, &metrics_, &manager_) {} in WiMaxProviderTest() 90 MockManager manager_; member in shill::WiMaxProviderTest 131 EXPECT_CALL(manager_, device_info()).WillRepeatedly(Return(&device_info_)); in TEST_F() 146 EXPECT_CALL(manager_, device_info()).WillRepeatedly(Return(&device_info_)); in TEST_F() 161 EXPECT_CALL(manager_, device_info()).WillRepeatedly(Return(&device_info_)); in TEST_F() 187 new MockWiMax(&control_, nullptr, &metrics_, &manager_, in TEST_F() 201 EXPECT_CALL(manager_, device_info()) in TEST_F() 240 new MockWiMaxService(&control_, nullptr, &metrics_, &manager_)); in TEST_F() [all …]
|
D | wimax_unittest.cc | 56 manager_(&control_, &dispatcher_, &metrics_), in WiMaxTest() 59 device_(new WiMax(&control_, &dispatcher_, &metrics_, &manager_, in WiMaxTest() 86 MockManager manager_; member in shill::WiMaxTest 109 new MockWiMaxService(&control_, nullptr, &metrics_, &manager_)); in TEST_F() 114 EXPECT_CALL(manager_, wimax_provider()).WillOnce(Return(&provider)); in TEST_F() 125 new NiceMock<MockWiMaxService>(&control_, nullptr, &metrics_, &manager_)); in TEST_F() 127 new MockWiMaxService(&control_, nullptr, &metrics_, &manager_)); in TEST_F() 146 EXPECT_CALL(manager_, wimax_provider()).WillOnce(Return(&provider)); in TEST_F() 161 new MockWiMaxService(&control_, nullptr, &metrics_, &manager_)); in TEST_F() 172 new MockWiMaxService(&control_, nullptr, &metrics_, &manager_)); in TEST_F() [all …]
|
D | wimax_service_unittest.cc | 68 manager_(&control_, nullptr, nullptr), in WiMaxServiceTest() 70 device_(new MockWiMax(&control_, nullptr, &metrics_, &manager_, in WiMaxServiceTest() 73 service_(new WiMaxService(&control_, nullptr, &metrics_, &manager_)), in WiMaxServiceTest() 89 EXPECT_CALL(manager_, HasService(_)).WillOnce(Return(true)); in ExpectUpdateService() 90 EXPECT_CALL(manager_, UpdateService(_)); in ExpectUpdateService() 107 MockManager manager_; member in shill::WiMaxServiceTest 256 EXPECT_CALL(manager_, wimax_provider()).WillOnce(Return(&provider)); in TEST_F() 263 EXPECT_CALL(manager_, wimax_provider()).WillOnce(Return(&provider)); in TEST_F() 290 EXPECT_CALL(manager_, wimax_provider()) in TEST_F() 313 EXPECT_CALL(manager_, UpdateService(_)); in TEST_F() [all …]
|
/system/connectivity/shill/pppoe/ |
D | pppoe_service_unittest.cc | 54 manager_(&control_interface_, &dispatcher_, &metrics_), in PPPoEServiceTest() 58 &manager_, in PPPoEServiceTest() 65 &manager_), in PPPoEServiceTest() 69 &manager_, in PPPoEServiceTest() 71 manager_.set_mock_device_info(&device_info_); in PPPoEServiceTest() 96 MockManager manager_; member in shill::PPPoEServiceTest 147 &control_interface_, &dispatcher_, &metrics_, &manager_, kLinkName, 0); in TEST_F() 157 EXPECT_CALL(manager_, IsDHCPv6EnabledForDevice(StrEq(kLinkName))) in TEST_F() 161 EXPECT_CALL(manager_, OnInnerDevicesChanged()); in TEST_F() 163 Mock::VerifyAndClearExpectations(&manager_); in TEST_F() [all …]
|
/system/connectivity/shill/vpn/ |
D | vpn_provider_unittest.cc | 56 manager_(&control_, nullptr, &metrics_), in VPNProviderTest() 57 device_info_(&control_, nullptr, &metrics_, &manager_), in VPNProviderTest() 58 provider_(&control_, nullptr, &metrics_, &manager_) {} in VPNProviderTest() 89 MockManager manager_; member in shill::VPNProviderTest 137 EXPECT_CALL(manager_, device_info()).WillOnce(Return(&device_info_)); in TEST_F() 138 EXPECT_CALL(manager_, RegisterService(_)); in TEST_F() 142 testing::Mock::VerifyAndClearExpectations(&manager_); in TEST_F() 158 EXPECT_CALL(manager_, RegisterService(_)).Times(0); in TEST_F() 272 new NiceMock<MockProfile>(&control_, &metrics_, &manager_, "")); in TEST_F() 275 EXPECT_CALL(manager_, device_info()).WillRepeatedly(Return(nullptr)); in TEST_F() [all …]
|
/system/weaved/buffet/ |
D | main.cc | 57 manager_ = new Manager{options_, bus_}; in RegisterDBusObjectsAsync() 60 android::IInterface::asBinder(manager_)); in RegisterDBusObjectsAsync() 61 manager_->Start(sequencer); in RegisterDBusObjectsAsync() 64 void OnShutdown(int* return_code) override { manager_->Stop(); } in OnShutdown() 69 android::sp<buffet::Manager> manager_; member in buffet::Daemon
|
/system/connectivity/apmanager/dbus/ |
D | manager_dbus_adaptor.cc | 40 manager_(manager) {} in ManagerDBusAdaptor() 53 auto service = manager_->CreateService(); in CreateService() 95 manager_->RemoveService(watcher_context->second.service, &error); in RemoveService() 109 manager_->RemoveService(watcher_context->second.service, nullptr); in OnServiceOwnerVanished()
|