Index: chrome/test/webdriver/server.cc |
diff --git a/chrome/test/webdriver/server.cc b/chrome/test/webdriver/server.cc |
index 8046c046cf91e6d2777c6f9087eff4d49301ff04..829f088fb110b3c5d510dfd05bdff72126bdc522 100644 |
--- a/chrome/test/webdriver/server.cc |
+++ b/chrome/test/webdriver/server.cc |
@@ -29,6 +29,7 @@ |
#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 +90,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"); |