| 79 | } |
| 80 | |
| 81 | void Server::Initialize(const int port, |
| 82 | const std::string& host, |
| 83 | const std::string& log_level, |
| 84 | const std::string& log_file, |
| 85 | const std::string& acl) { |
| 86 | LOG::Level(log_level); |
| 87 | LOG::File(log_file); |
| 88 | LOG(INFO) << "Starting WebDriver server on port: '" |
| 89 | << port << "' on host: '" << host << "'"; |
| 90 | this->port_ = port; |
| 91 | this->host_ = host; |
| 92 | if (acl.size() > 0) { |
| 93 | this->ProcessWhitelist(acl); |
| 94 | } |
| 95 | this->PopulateCommandRepository(); |
| 96 | } |
| 97 | |
| 98 | void Server::ProcessWhitelist(const std::string& whitelist) { |
| 99 | std::string input_copy = whitelist; |
no test coverage detected