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

Unified Diff: chrome/test/chromedriver/status.h

Issue 12848005: [chromedriver] Separate stuff of chrome from chromedriver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments and fix compile error on mac. Created 7 years, 9 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/chromedriver/session_unittest.cc ('k') | chrome/test/chromedriver/status.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/status.h
diff --git a/chrome/test/chromedriver/status.h b/chrome/test/chromedriver/status.h
deleted file mode 100644
index 3ba7ee5a732cd4746c1efd78d386317ee6816805..0000000000000000000000000000000000000000
--- a/chrome/test/chromedriver/status.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright (c) 2012 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_CHROMEDRIVER_STATUS_H_
-#define CHROME_TEST_CHROMEDRIVER_STATUS_H_
-
-#include <string>
-
-// WebDriver standard status codes.
-enum StatusCode {
- kOk = 0,
- kNoSuchElement = 7,
- kUnknownCommand = 9,
- kStaleElementReference = 10,
- kElementNotVisible = 11,
- kInvalidElementState = 12,
- kUnknownError = 13,
- kJavaScriptError = 17,
- kXPathLookupError = 19,
- kNoSuchWindow = 23,
- kInvalidCookieDomain = 24,
- kUnexpectedAlertOpen = 26,
- kNoAlertOpen = 27,
- kScriptTimeout = 28,
- kInvalidSelector = 32,
- kSessionNotCreatedException = 33,
- // Chrome-specific status codes.
- kNoSuchSession = 100,
- kNoSuchFrame,
- kChromeNotReachable,
- kDisconnected,
-};
-
-// Represents a WebDriver status, which may be an error or ok.
-class Status {
- public:
- explicit Status(StatusCode code);
- Status(StatusCode code, const std::string& details);
- Status(StatusCode code, const Status& cause);
- Status(StatusCode code, const std::string& details, const Status& cause);
- ~Status();
-
- void AddDetails(const std::string& details);
-
- bool IsOk() const;
- bool IsError() const;
-
- StatusCode code() const;
-
- const std::string& message() const;
-
- private:
- StatusCode code_;
- std::string msg_;
-};
-
-#endif // CHROME_TEST_CHROMEDRIVER_STATUS_H_
« no previous file with comments | « chrome/test/chromedriver/session_unittest.cc ('k') | chrome/test/chromedriver/status.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698