Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1966)

Unified Diff: chrome/test/webdriver/commands/session_with_id.h

Issue 3064012: Base implementation of WebDriver for Chrome. This checkin includes... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/webdriver/commands/response.h ('k') | chrome/test/webdriver/commands/session_with_id.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/commands/session_with_id.h
===================================================================
--- chrome/test/webdriver/commands/session_with_id.h (revision 0)
+++ chrome/test/webdriver/commands/session_with_id.h (revision 0)
@@ -0,0 +1,43 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_TEST_WEBDRIVER_COMMANDS_SESSION_WITH_ID_H_
+#define CHROME_TEST_WEBDRIVER_COMMANDS_SESSION_WITH_ID_H_
+
+#include <string>
+#include <vector>
+
+#include "chrome/test/webdriver/commands/command.h"
+#include "chrome/test/webdriver/commands/webdriver_command.h"
+
+namespace webdriver {
+
+// Retrieve the capabilities of the specified session. If the HTTP Delete
+// method is used then all chrome instances linked to the session ID are
+// closed. The session's capabilities will be returned in a JSON object
+// with the following properties:
+// http://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId
+// If the HTTP Delete request is sent the session is closed and all temp
+// files and directories created are deleted.
+class SessionWithID : public WebDriverCommand {
+ public:
+ inline SessionWithID(const std::vector<std::string>& path_segments,
+ const DictionaryValue* const parameters)
+ : WebDriverCommand(path_segments, parameters) {}
+ virtual ~SessionWithID() {}
+
+ virtual bool DoesGet() { return true; }
+ virtual bool DoesDelete() { return true; }
+
+ virtual void ExecuteGet(Response* const response);
+ virtual void ExecuteDelete(Response* const response);
+
+ private:
+ virtual bool RequiresValidTab() { return false; }
+
+ DISALLOW_COPY_AND_ASSIGN(SessionWithID);
+};
+} // namespace webdriver
+#endif // CHROME_TEST_WEBDRIVER_COMMANDS_SESSION_WITH_ID_H_
+
Property changes on: chrome/test/webdriver/commands/session_with_id.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/test/webdriver/commands/response.h ('k') | chrome/test/webdriver/commands/session_with_id.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698