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

Side by Side Diff: chrome/test/webdriver/commands/find_element_commands.h

Issue 8558032: Add OVERRIDE to chrome/test/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 #ifndef CHROME_TEST_WEBDRIVER_COMMANDS_FIND_ELEMENT_COMMANDS_H_ 5 #ifndef CHROME_TEST_WEBDRIVER_COMMANDS_FIND_ELEMENT_COMMANDS_H_
6 #define CHROME_TEST_WEBDRIVER_COMMANDS_FIND_ELEMENT_COMMANDS_H_ 6 #define CHROME_TEST_WEBDRIVER_COMMANDS_FIND_ELEMENT_COMMANDS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "chrome/test/webdriver/commands/webdriver_command.h" 11 #include "chrome/test/webdriver/commands/webdriver_command.h"
12 12
13 namespace webdriver { 13 namespace webdriver {
14 14
15 class Response; 15 class Response;
16 16
17 // Base class for searching a page, this class can find either a single 17 // Base class for searching a page, this class can find either a single
18 // webelement or return multiple matches. 18 // webelement or return multiple matches.
19 class FindElementCommand : public WebDriverCommand { 19 class FindElementCommand : public WebDriverCommand {
20 public: 20 public:
21 FindElementCommand(const std::vector<std::string>& path_segments, 21 FindElementCommand(const std::vector<std::string>& path_segments,
22 const DictionaryValue* const parameters, 22 const DictionaryValue* const parameters,
23 const bool find_one_element); 23 const bool find_one_element);
24 virtual ~FindElementCommand(); 24 virtual ~FindElementCommand();
25 25
26 virtual bool DoesPost(); 26 virtual bool DoesPost() OVERRIDE;
27 virtual void ExecutePost(Response* const response); 27 virtual void ExecutePost(Response* const response) OVERRIDE;
28 28
29 private: 29 private:
30 const bool find_one_element_; 30 const bool find_one_element_;
31 std::string root_element_id_; 31 std::string root_element_id_;
32 std::string use_; 32 std::string use_;
33 std::string value_; 33 std::string value_;
34 34
35 DISALLOW_COPY_AND_ASSIGN(FindElementCommand); 35 DISALLOW_COPY_AND_ASSIGN(FindElementCommand);
36 }; 36 };
37 37
(...skipping 22 matching lines...) Expand all
60 : FindElementCommand(path_segments, parameters, false) {} 60 : FindElementCommand(path_segments, parameters, false) {}
61 virtual ~FindManyElementsCommand() {} 61 virtual ~FindManyElementsCommand() {}
62 62
63 private: 63 private:
64 DISALLOW_COPY_AND_ASSIGN(FindManyElementsCommand); 64 DISALLOW_COPY_AND_ASSIGN(FindManyElementsCommand);
65 }; 65 };
66 66
67 } // namespace webdriver 67 } // namespace webdriver
68 68
69 #endif // CHROME_TEST_WEBDRIVER_COMMANDS_FIND_ELEMENT_COMMANDS_H_ 69 #endif // CHROME_TEST_WEBDRIVER_COMMANDS_FIND_ELEMENT_COMMANDS_H_
OLDNEW
« no previous file with comments | « chrome/test/webdriver/commands/execute_command.h ('k') | chrome/test/webdriver/commands/mouse_commands.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698