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

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

Issue 23526047: Delete old chromedriver code, and remove mongoose webserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 3 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/navigate_commands.cc ('k') | chrome/test/webdriver/commands/response.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/commands/response.h
diff --git a/chrome/test/webdriver/commands/response.h b/chrome/test/webdriver/commands/response.h
deleted file mode 100644
index 3545081e3ff2acbb24b10cefebbe9e0bf249b8e8..0000000000000000000000000000000000000000
--- a/chrome/test/webdriver/commands/response.h
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) 2011 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_RESPONSE_H_
-#define CHROME_TEST_WEBDRIVER_COMMANDS_RESPONSE_H_
-
-#include <sstream>
-#include <string>
-
-#include "base/values.h"
-#include "chrome/test/webdriver/webdriver_error.h"
-
-namespace webdriver {
-
-// A simple class that encapsulates the information describing the response to
-// a |Command|. In Webdriver all responses must be sent back as a JSON value,
-// conforming to the spec found at:
-// http://code.google.com/p/selenium/wiki/JsonWireProtocol#Messages
-class Response {
- public:
- // Creates a new |Response| with a default status of |kSuccess| and a
- // |NullValue|.
- Response();
- ~Response();
-
- ErrorCode GetStatus() const;
- void SetStatus(ErrorCode status);
-
- // Ownership of the returned pointer is kept by this object.
- const base::Value* GetValue() const;
-
- // Sets the |value| of this response, assuming ownership of the object in the
- // process.
- void SetValue(base::Value* value);
-
- // Configures this response to report the given error. Ownership of the error
- // is taken from the caller.
- void SetError(Error* error);
-
- // Sets a JSON field in this response. The |key| may be a "." delimitted
- // string to indicate the value should be set in a nested object. Any
- // previously set value for the |key| will be deleted.
- // This object assumes ownership of |value|.
- void SetField(const std::string& key, base::Value* value);
-
- // Returns a pointer to the actual response dictionary.
- const base::Value* GetDictionary() const;
-
- // Returns this response as a JSON string.
- std::string ToJSON() const;
-
- private:
- base::DictionaryValue data_;
-
- DISALLOW_COPY_AND_ASSIGN(Response);
-};
-
-} // namespace webdriver
-
-#endif // CHROME_TEST_WEBDRIVER_COMMANDS_RESPONSE_H_
« no previous file with comments | « chrome/test/webdriver/commands/navigate_commands.cc ('k') | chrome/test/webdriver/commands/response.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698