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

Side by Side Diff: chrome/test/webdriver/commands/command.cc

Issue 6330012: Cookie commands for the webdriver protocol (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: dsdsdsdjsdsj 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/test/webdriver/commands/command.h" 5 #include "chrome/test/webdriver/commands/command.h"
6 6
7 namespace webdriver { 7 namespace webdriver {
8 8
9 // Error message taken from: 9 // Error message taken from:
10 // http://code.google.com/p/selenium/wiki/JsonWireProtocol#Response_Status_Codes 10 // http://code.google.com/p/selenium/wiki/JsonWireProtocol#Response_Status_Codes
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 bool Command::GetBooleanParameter(const std::string& key, 58 bool Command::GetBooleanParameter(const std::string& key,
59 bool* out) const { 59 bool* out) const {
60 return parameters_.get() != NULL && parameters_->GetBoolean(key, out); 60 return parameters_.get() != NULL && parameters_->GetBoolean(key, out);
61 } 61 }
62 62
63 bool Command::GetIntegerParameter(const std::string& key, 63 bool Command::GetIntegerParameter(const std::string& key,
64 int* out) const { 64 int* out) const {
65 return parameters_.get() != NULL && parameters_->GetInteger(key, out); 65 return parameters_.get() != NULL && parameters_->GetInteger(key, out);
66 } 66 }
67 67
68 bool Command::GetDictionaryParameter(const std::string& key,
69 DictionaryValue** out) const {
70 return parameters_.get() != NULL && parameters_->GetDictionary(key, out);
71 }
72
68 } // namespace webdriver 73 } // namespace webdriver
69 74
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698