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

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

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
Index: chrome/test/webdriver/commands/session_with_id.cc
diff --git a/chrome/test/webdriver/commands/session_with_id.cc b/chrome/test/webdriver/commands/session_with_id.cc
deleted file mode 100644
index e234af62230c409a18f72a336db54a33a6c5a3b5..0000000000000000000000000000000000000000
--- a/chrome/test/webdriver/commands/session_with_id.cc
+++ /dev/null
@@ -1,84 +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.
-
-#include "chrome/test/webdriver/commands/session_with_id.h"
-
-#include <sstream>
-#include <string>
-
-#include "base/values.h"
-#include "chrome/app/chrome_command_ids.h"
-#include "chrome/common/chrome_constants.h"
-#include "chrome/test/webdriver/commands/response.h"
-#include "chrome/test/webdriver/webdriver_session.h"
-
-namespace webdriver {
-
-SessionWithID::SessionWithID(const std::vector<std::string>& path_segments,
- const base::DictionaryValue* const parameters)
- : WebDriverCommand(path_segments, parameters) {}
-
-SessionWithID::~SessionWithID() {}
-
-bool SessionWithID::DoesGet() {
- return true;
-}
-
-bool SessionWithID::DoesDelete() {
- return true;
-}
-
-void SessionWithID::ExecuteGet(Response* const response) {
- base::DictionaryValue* temp_value = new base::DictionaryValue();
-
- // Standard capabilities defined at
- // http://code.google.com/p/selenium/wiki/JsonWireProtocol#Capabilities_JSON_Object
- temp_value->SetString("browserName", "chrome");
- temp_value->SetString("version", session_->GetBrowserVersion());
-
-#if defined(OS_WIN)
- temp_value->SetString("platform", "windows");
-#elif defined(OS_MACOSX)
- temp_value->SetString("platform", "mac");
-#elif defined(OS_CHROMEOS)
- temp_value->SetString("platform", "chromeos");
-#elif defined(OS_LINUX)
- temp_value->SetString("platform", "linux");
-#else
- temp_value->SetString("platform", "unknown");
-#endif
-
- temp_value->SetBoolean("javascriptEnabled", true);
- temp_value->SetBoolean("takesScreenshot", true);
- temp_value->SetBoolean("handlesAlerts", true);
- temp_value->SetBoolean("databaseEnabled", false);
- temp_value->SetBoolean("locationContextEnabled", false);
- temp_value->SetBoolean("applicationCacheEnabled", false);
- temp_value->SetBoolean("browserConnectionEnabled", false);
- temp_value->SetBoolean("cssSelectorsEnabled", true);
- temp_value->SetBoolean("webStorageEnabled", true);
- temp_value->SetBoolean("rotatable", false);
- temp_value->SetBoolean("acceptSslCerts", false);
- // Even when ChromeDriver does not OS-events, the input simulation produces
- // the same effect for most purposes (except IME).
- temp_value->SetBoolean("nativeEvents", true);
-
- // Custom non-standard session info.
- temp_value->SetWithoutPathExpansion(
- "chrome.chromedriverVersion",
- new base::StringValue(chrome::kChromeVersion));
-
- response->SetValue(temp_value);
-}
-
-void SessionWithID::ExecuteDelete(Response* const response) {
- // Session manages its own lifetime, so do not call delete.
- session_->Terminate();
-}
-
-bool SessionWithID::ShouldRunPreAndPostCommandHandlers() {
- return false;
-}
-
-} // namespace webdriver
« no previous file with comments | « chrome/test/webdriver/commands/session_with_id.h ('k') | chrome/test/webdriver/commands/set_timeout_commands.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698