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

Unified Diff: chrome/test/webdriver/commands/command.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
« no previous file with comments | « chrome/test/webdriver/commands/command.h ('k') | chrome/test/webdriver/commands/cookie_commands.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/commands/command.cc
diff --git a/chrome/test/webdriver/commands/command.cc b/chrome/test/webdriver/commands/command.cc
deleted file mode 100644
index dfde908e15eb2dca0b1a8744855c7da5930cc450..0000000000000000000000000000000000000000
--- a/chrome/test/webdriver/commands/command.cc
+++ /dev/null
@@ -1,88 +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/command.h"
-
-namespace webdriver {
-
-Command::Command(const std::vector<std::string>& path_segments,
- const DictionaryValue* const parameters)
- : path_segments_(path_segments),
- parameters_(parameters) {}
-
-Command::~Command() {}
-
-bool Command::DoesDelete() {
- return false;
-}
-
-bool Command::DoesGet() {
- return false;
-}
-
-bool Command::DoesPost() {
- return false;
-}
-
-bool Command::Init(Response* const response) {
- return true;
-}
-
-void Command::Finish(Response* const response) {}
-
-std::string Command::GetPathVariable(const size_t i) const {
- return i < path_segments_.size() ? path_segments_.at(i) : std::string();
-}
-
-bool Command::HasParameter(const std::string& key) const {
- return parameters_.get() && parameters_->HasKey(key);
-}
-
-bool Command::IsNullParameter(const std::string& key) const {
- const Value* value;
- return parameters_.get() &&
- parameters_->Get(key, &value) &&
- value->IsType(Value::TYPE_NULL);
-}
-
-bool Command::GetStringParameter(const std::string& key,
- string16* out) const {
- return parameters_.get() != NULL && parameters_->GetString(key, out);
-}
-
-bool Command::GetStringParameter(const std::string& key,
- std::string* out) const {
- return parameters_.get() != NULL && parameters_->GetString(key, out);
-}
-
-bool Command::GetStringASCIIParameter(const std::string& key,
- std::string* out) const {
- return parameters_.get() != NULL && parameters_->GetStringASCII(key, out);
-}
-
-bool Command::GetBooleanParameter(const std::string& key,
- bool* out) const {
- return parameters_.get() != NULL && parameters_->GetBoolean(key, out);
-}
-
-bool Command::GetIntegerParameter(const std::string& key,
- int* out) const {
- return parameters_.get() != NULL && parameters_->GetInteger(key, out);
-}
-
-bool Command::GetDoubleParameter(const std::string& key, double* out) const {
- return parameters_.get() != NULL && parameters_->GetDouble(key, out);
-}
-
-bool Command::GetDictionaryParameter(const std::string& key,
- const DictionaryValue** out) const {
- return parameters_.get() != NULL && parameters_->GetDictionary(key, out);
-}
-
-bool Command::GetListParameter(const std::string& key,
- const ListValue** out) const {
- return parameters_.get() != NULL && parameters_->GetList(key, out);
-}
-
-} // namespace webdriver
« no previous file with comments | « chrome/test/webdriver/commands/command.h ('k') | chrome/test/webdriver/commands/cookie_commands.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698