OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_TEST_CHROMEDRIVER_CAPABILITIES_PARSER_H_ |
| 6 #define CHROME_TEST_CHROMEDRIVER_CAPABILITIES_PARSER_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/callback_forward.h" |
| 11 #include "base/files/file_path.h" |
| 12 #include "base/values.h" |
| 13 |
| 14 class Status; |
| 15 |
| 16 struct Capabilities { |
| 17 Capabilities(); |
| 18 ~Capabilities(); |
| 19 |
| 20 bool HasAndroidPackage(); |
| 21 |
| 22 std::string android_package; |
| 23 |
| 24 base::FilePath chrome_exe; |
| 25 std::string log_path; |
| 26 base::ListValue args_list; |
| 27 const base::DictionaryValue* prefs_dict; |
| 28 const base::DictionaryValue* local_state_dict; |
| 29 const base::ListValue* extensions_list; |
| 30 }; |
| 31 |
| 32 Status ParseCapabilities( |
| 33 const base::DictionaryValue& desired_caps, |
| 34 Capabilities* capabilities, |
| 35 const base::Callback<bool(const base::FilePath&)>& file_checker); |
| 36 |
| 37 #endif // CHROME_TEST_CHROMEDRIVER_CAPABILITIES_PARSER_H_ |
OLD | NEW |