Home
last modified time | relevance | path

Searched refs:config_ (Results 1 – 19 of 19) sorted by relevance

/system/connectivity/shill/dhcp/
Ddhcp_config_unittest.cc97 config_(new TestDHCPConfig(&control_, in DHCPConfigTest()
105 config_->process_manager_ = &process_manager_; in SetUp()
109 config_->Stop("In test"); in StopInstance()
120 TestDHCPConfigRefPtr config_; member in shill::DHCPConfigTest
142 EXPECT_FALSE(config_->proxy_.get()); in TEST_F()
145 config_->InitProxy(kService); in TEST_F()
147 EXPECT_TRUE(config_->proxy_.get()); in TEST_F()
149 config_->InitProxy(kService); in TEST_F()
156 EXPECT_FALSE(config_->Start()); in TEST_F()
157 EXPECT_EQ(0, config_->pid_); in TEST_F()
[all …]
Ddhcpv6_config_unittest.cc75 config_(new DHCPv6Config(&control_, in DHCPv6ConfigTest()
82 config_->process_manager_ = &process_manager_; in SetUp()
90 config_->Stop("In test"); in StopInstance()
109 DHCPv6ConfigRefPtr config_; member in shill::DHCPv6ConfigTest
201 ASSERT_TRUE(config_->ParseConfiguration(conf)); in TEST_F()
202 EXPECT_EQ(kConfigIPAddress, config_->properties_.address); in TEST_F()
203 EXPECT_EQ(kConfigDelegatedPrefix, config_->properties_.delegated_prefix); in TEST_F()
205 config_->properties_.delegated_prefix_length); in TEST_F()
206 ASSERT_EQ(1, config_->properties_.dns_servers.size()); in TEST_F()
207 EXPECT_EQ(kConfigNameServer, config_->properties_.dns_servers[0]); in TEST_F()
[all …]
Ddhcpv4_config_unittest.cc83 config_(new DHCPv4Config(&control_, in DHCPv4ConfigTest()
93 config_->process_manager_ = &process_manager_; in SetUp()
101 config_->Stop("In test"); in StopInstance()
127 DHCPv4ConfigRefPtr config_; member in shill::DHCPv4ConfigTest
238 EXPECT_EQ("255.255.255.255", config_->GetIPv4AddressString(0xffffffff)); in TEST_F()
239 EXPECT_EQ("0.0.0.0", config_->GetIPv4AddressString(0)); in TEST_F()
240 EXPECT_EQ("1.2.3.4", config_->GetIPv4AddressString(0x04030201)); in TEST_F()
328 ASSERT_TRUE(config_->ParseConfiguration(conf, &properties)); in TEST_F()
352 ASSERT_TRUE(config_->ParseConfiguration(conf, &properties)); in TEST_F()
357 config_->set_minimum_mtu(1500); in TEST_F()
[all …]
/system/connectivity/apmanager/
Dconfig_unittest.cc138 config_.reset(new Config(&manager_, 0)); in ConfigTest()
161 std::unique_ptr<Config> config_; member in apmanager::ConfigTest
190 EXPECT_TRUE(config_->ValidateSsid(&error, "s")); in TEST_F()
191 EXPECT_TRUE(config_->ValidateSsid(&error, std::string(32, 'c'))); in TEST_F()
192 EXPECT_FALSE(config_->ValidateSsid(&error, "")); in TEST_F()
193 EXPECT_FALSE(config_->ValidateSsid(&error, std::string(33, 'c'))); in TEST_F()
198 EXPECT_TRUE(config_->ValidateSecurityMode(&error, kSecurityModeNone)); in TEST_F()
199 EXPECT_TRUE(config_->ValidateSecurityMode(&error, kSecurityModeRSN)); in TEST_F()
200 EXPECT_FALSE(config_->ValidateSecurityMode(&error, "InvalidSecurityMode")); in TEST_F()
206 EXPECT_TRUE(config_->ValidatePassphrase(&error, std::string(8, 'c'))); in TEST_F()
[all …]
Dservice.cc73 config_(new Config(manager, service_identifier)), in Service()
78 adaptor_->SetConfig(config_.get()); in Service()
82 config_->SetServerAddressIndex(identifier_ & 0xFF); in Service()
105 config_->set_control_interface(kHostapdControlInterfacePath); in StartInternal()
109 if (!config_->GenerateConfigFile(error, &config_str)) { in StartInternal()
125 if (!config_->ClaimDevice()) { in StartInternal()
138 config_->ReleaseDevice(); in StartInternal()
143 if (config_->GetOperationMode() == kOperationModeServer) { in StartInternal()
145 dhcp_server_factory_->CreateDHCPServer(config_->GetServerAddressIndex(), in StartInternal()
146 config_->selected_interface())); in StartInternal()
[all …]
Dservice.h56 Config* config() const { return config_.get(); } in config()
106 std::unique_ptr<Config> config_; variable
Dservice_unittest.cc101 service_->config_.reset(config); in SetConfig()
/system/update_engine/payload_generator/
Dfull_update_generator_unittest.cc37 config_.is_delta = false; in SetUp()
38 config_.version.minor = kFullPayloadMinorVersion; in SetUp()
39 config_.hard_chunk_size = 128 * 1024; in SetUp()
40 config_.block_size = 4096; in SetUp()
54 PayloadGenerationConfig config_; member in chromeos_update_engine::FullUpdateGeneratorTest
80 EXPECT_TRUE(generator_.GenerateOperations(config_, in TEST_F()
85 int64_t new_part_chunks = new_part_conf.size / config_.hard_chunk_size; in TEST_F()
90 static_cast<uint64_t>(i * config_.hard_chunk_size / config_.block_size), in TEST_F()
93 EXPECT_EQ(config_.hard_chunk_size / config_.block_size, in TEST_F()
104 config_.hard_chunk_size = 1024 * 1024; in TEST_F()
[all …]
/system/weaved/buffet/
Dbuffet_config_unittest.cc87 config_.reset(new BuffetConfig{config_options}); in SetUp()
88 config_->SetEncryptor(this); in SetUp()
89 config_->SetFileIO(this); in SetUp()
124 std::unique_ptr<BuffetConfig> config_; member in buffet::BuffetConfigTestWithFakes
128 config_->SaveSettings("config", "test", {}); in TEST_F()
130 ASSERT_EQ("test", config_->LoadSettings("config")); in TEST_F()
134 config_->SaveSettings("config", "test", {}); in TEST_F()
137 config_->SaveSettings("config", "test2", {}); in TEST_F()
143 config_->SaveSettings("config", "test", {}); in TEST_F()
147 ASSERT_TRUE(config_->LoadSettings("config").empty()); in TEST_F()
[all …]
Dmanager.cc201 config_.reset(new BuffetConfig{options_.config_options}); in RestartWeave()
236 device_ = weave::Device::Create(config_.get(), task_runner_.get(), in CreateDevice()
281 config_.reset(); in Stop()
Dmanager.h116 std::unique_ptr<BuffetConfig> config_; variable
/system/connectivity/apmanager/dbus/
Dconfig_dbus_adaptor.cc50 config_(config) { in ConfigDBusAdaptor()
60 config_->ValidateSsid(&internal_error, value); in ValidateSsid()
67 config_->ValidateSecurityMode(&internal_error, value); in ValidateSecurityMode()
74 config_->ValidatePassphrase(&internal_error, value); in ValidatePassphrase()
80 config_->ValidateHwMode(&internal_error, value); in ValidateHwMode()
87 config_->ValidateOperationMode(&internal_error, value); in ValidateOperationMode()
94 config_->ValidateChannel(&internal_error, value); in ValidateChannel()
Dconfig_dbus_adaptor.h85 Config* config_; variable
/system/webservd/webservd/
Dmain.cc60 config_{std::move(config)} {}
64 webservd::LogManager::Init(base::FilePath{config_.log_directory}); in RegisterDBusObjectsAsync()
66 object_manager_.get(), config_, in RegisterDBusObjectsAsync()
77 webservd::Config config_; member in __anon01e120ba0111::Daemon
Dserver.cc86 config_{config},
89 config_.default_request_timeout_seconds);
101 for (auto& handler_config : config_.protocol_handlers) in RegisterAsync()
121 for (auto& handler_config : config_.protocol_handlers) { in OnFirewallServiceOnline()
221 for (auto& handler_config : config_.protocol_handlers) { in InitTlsData()
Dserver.h59 const Config& GetConfig() const override { return config_; } in GetConfig()
81 Config config_; variable
/system/connectivity/shill/
Ddaemon_task.cc59 : settings_(settings), config_(config) {} in DaemonTask()
118 config_->GetRunDirectory(), in Init()
119 config_->GetStorageDirectory(), in Init()
120 config_->GetUserStorageDirectory())); in Init()
Ddaemon_task_unittest.cc84 : daemon_(DaemonTask::Settings(), &config_), in DaemonTaskTest()
127 TestConfig config_; member in shill::DaemonTaskTest
Ddaemon_task.h111 Config* config_; variable