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

Unified Diff: chrome/test/webdriver/webdriver_error.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/webdriver_element_id.cc ('k') | chrome/test/webdriver/webdriver_error.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/webdriver_error.h
diff --git a/chrome/test/webdriver/webdriver_error.h b/chrome/test/webdriver/webdriver_error.h
deleted file mode 100644
index 653aca4afee97662653ecf5662991c0576c989e1..0000000000000000000000000000000000000000
--- a/chrome/test/webdriver/webdriver_error.h
+++ /dev/null
@@ -1,70 +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_WEBDRIVER_ERROR_H_
-#define CHROME_TEST_WEBDRIVER_WEBDRIVER_ERROR_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-
-namespace automation {
-class Error;
-}
-
-namespace webdriver {
-
-// Error codes defined by the WebDriver wire protcol.
-// If you add a code here, don't forget to add it to |ErrorCodeToString|.
-enum ErrorCode {
- kSuccess = 0,
- kNoSuchElement = 7,
- kNoSuchFrame = 8,
- kUnknownCommand = 9,
- kStaleElementReference = 10,
- kElementNotVisible = 11,
- kInvalidElementState = 12,
- kUnknownError = 13,
- kElementNotSelectable = 15,
- kXPathLookupError = 19,
- kNoSuchWindow = 23,
- kInvalidCookieDomain = 24,
- kUnableToSetCookie = 25,
- kUnexpectedAlertOpen = 26,
- kNoAlertOpenError = 27,
-
- // HTTP status codes.
- kSeeOther = 303,
- kBadRequest = 400,
- kSessionNotFound = 404,
- kMethodNotAllowed = 405,
- kInternalServerError = 500,
-};
-
-// Represents a WebDriver error and the context within which the error occurred.
-class Error {
- public:
- static Error* FromAutomationError(const automation::Error& error);
-
- explicit Error(ErrorCode code);
-
- Error(ErrorCode code, const std::string& details);
-
- virtual ~Error();
-
- void AddDetails(const std::string& details);
-
- ErrorCode code() const;
- const std::string& details() const;
-
- private:
- ErrorCode code_;
- std::string details_;
-
- DISALLOW_COPY_AND_ASSIGN(Error);
-};
-
-} // namespace webdriver
-
-#endif // CHROME_TEST_WEBDRIVER_WEBDRIVER_ERROR_H_
« no previous file with comments | « chrome/test/webdriver/webdriver_element_id.cc ('k') | chrome/test/webdriver/webdriver_error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698