MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / ProcessWhitelist

Method ProcessWhitelist

cpp/webdriver-server/server.cc:98–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void Server::ProcessWhitelist(const std::string& whitelist) {
99 std::string input_copy = whitelist;
100 while (input_copy.size() > 0) {
101 size_t delimiter_pos = input_copy.find(",");
102 std::string token = input_copy.substr(0, delimiter_pos);
103 if (delimiter_pos == std::string::npos) {
104 input_copy = "";
105 } else {
106 input_copy = input_copy.substr(delimiter_pos + 1);
107 }
108 this->whitelist_.push_back(token);
109 }
110}
111
112std::string Server::GetListeningPorts(const bool use_ipv6) {
113 std::string port_format_string = "%s:%d";

Callers 1

InitializeMethod · 0.95

Calls 2

findMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected