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

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

Issue 6523032: Even more test cleanup. Some fixes to non-test code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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/title_command.cc
diff --git a/chrome/test/webdriver/commands/title_command.cc b/chrome/test/webdriver/commands/title_command.cc
index 121389536469c98320c2abbf10c0add4f2abb6f0..12eaa379bc8e8620bc056468de5ed20d40b9c4cf 100644
--- a/chrome/test/webdriver/commands/title_command.cc
+++ b/chrome/test/webdriver/commands/title_command.cc
@@ -8,6 +8,16 @@
namespace webdriver {
+TitleCommand::TitleCommand(const std::vector<std::string>& path_segments,
+ const DictionaryValue* const parameters)
+ : WebDriverCommand(path_segments, parameters) {}
+
+TitleCommand::~TitleCommand() {}
+
+bool TitleCommand::DoesGet() {
+ return true;
+}
+
void TitleCommand::ExecuteGet(Response* const response) {
std::string title;
if (!session_->GetTabTitle(&title)) {
@@ -19,4 +29,8 @@ void TitleCommand::ExecuteGet(Response* const response) {
response->set_status(kSuccess);
}
+bool TitleCommand::RequiresValidTab() {
+ return true;
+}
+
} // namespace webdriver

Powered by Google App Engine
This is Rietveld 408576698