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

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: kdsodkoskdoskdokosdksdkso 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 24 matching lines...) Expand all
35 bool Command::GetBooleanParameter(const std::string& key, 35 bool Command::GetBooleanParameter(const std::string& key,
36 bool* out) const { 36 bool* out) const {
37 return parameters_.get() != NULL && parameters_->GetBoolean(key, out); 37 return parameters_.get() != NULL && parameters_->GetBoolean(key, out);
38 } 38 }
39 39
40 bool Command::GetIntegerParameter(const std::string& key, 40 bool Command::GetIntegerParameter(const std::string& key,
41 int* out) const { 41 int* out) const {
42 return parameters_.get() != NULL && parameters_->GetInteger(key, out); 42 return parameters_.get() != NULL && parameters_->GetInteger(key, out);
43 } 43 }
44 44
45 bool Command::GetDictionaryParameter(const std::string& key,
46 DictionaryValue** out) const {
47 return parameters_.get() != NULL && parameters_->GetDictionary(key, out);
48 }
49
45 } // namespace webdriver 50 } // namespace webdriver
46 51
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698