Chromium Code Reviews| Index: chrome/test/webdriver/server.cc |
| diff --git a/chrome/test/webdriver/server.cc b/chrome/test/webdriver/server.cc |
| index 0cd63aae32d030a928ff4227d62098cb6687d217..34ebb2da41dd4341c0ecd0723b334589ef2184a0 100644 |
| --- a/chrome/test/webdriver/server.cc |
| +++ b/chrome/test/webdriver/server.cc |
| @@ -25,10 +25,12 @@ |
| #include "base/test/test_timeouts.h" |
| #include "base/threading/platform_thread.h" |
| #include "base/utf_string_conversions.h" |
| + |
|
kkania
2011/02/09 16:53:13
no newline here
|
| #include "chrome/common/chrome_paths.h" |
| #include "chrome/test/webdriver/dispatch.h" |
| #include "chrome/test/webdriver/session_manager.h" |
| #include "chrome/test/webdriver/utility_functions.h" |
| +#include "chrome/test/webdriver/commands/cookie_commands.h" |
| #include "chrome/test/webdriver/commands/create_session.h" |
| #include "chrome/test/webdriver/commands/execute_command.h" |
| #include "chrome/test/webdriver/commands/find_element_commands.h" |
| @@ -89,6 +91,10 @@ void InitCallbacks(struct mg_context* ctx, |
| SetCallback<SpeedCommand>(ctx, "/session/*/speed"); |
| SetCallback<ImplicitWaitCommand>(ctx, "/session/*/timeouts/implicit_wait"); |
| + // Cookie functions. |
| + SetCallback<CookieCommand>(ctx, "/session/*/cookie"); |
| + SetCallback<NamedCookieCommand>(ctx, "/session/*/cookie/*"); |
| + |
| // WebElement commands |
| SetCallback<FindOneElementCommand>(ctx, "/session/*/element"); |
| SetCallback<FindManyElementsCommand>(ctx, "/session/*/elements"); |