forked from SeleniumHQ/selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improving cross-platform compatibility of webdriver-server C++ code.
This commit makes the common webdriver-server C++ code more easily cross-platform. It does this mainly by removing use of std::tr1::regex, which has issues compiling under gcc. In its place, we now use a custom URL matching algorithm for matching URLs in the WebDriver JSON Wire Protocol. While this matching algorithm may be a source of future errors, a nice side effect of it is a 3% performance increase in server execution times over using regular expressions. Additionally, this commit includes an alias for snprintf, which throws buffer overrun warnings when used with Visual Studio. It also contains some header #include rearranging and linting of the C++ code.
- Loading branch information
Showing
8 changed files
with
264 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.