| Index: chrome/test/chromedriver/capabilities_parser.h
|
| diff --git a/chrome/test/chromedriver/capabilities_parser.h b/chrome/test/chromedriver/capabilities_parser.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b04faae874f53e376c62b12d65a7c141b342699c
|
| --- /dev/null
|
| +++ b/chrome/test/chromedriver/capabilities_parser.h
|
| @@ -0,0 +1,37 @@
|
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_TEST_CHROMEDRIVER_CAPABILITIES_PARSER_H_
|
| +#define CHROME_TEST_CHROMEDRIVER_CAPABILITIES_PARSER_H_
|
| +
|
| +#include <string>
|
| +
|
| +#include "base/callback_forward.h"
|
| +#include "base/files/file_path.h"
|
| +#include "base/values.h"
|
| +
|
| +class Status;
|
| +
|
| +struct Capabilities {
|
| + Capabilities();
|
| + ~Capabilities();
|
| +
|
| + bool HasAndroidPackage();
|
| +
|
| + std::string android_package;
|
| +
|
| + base::FilePath chrome_exe;
|
| + std::string log_path;
|
| + base::ListValue args_list;
|
| + const base::DictionaryValue* prefs_dict;
|
| + const base::DictionaryValue* local_state_dict;
|
| + const base::ListValue* extensions_list;
|
| +};
|
| +
|
| +Status ParseCapabilities(
|
| + const base::DictionaryValue& desired_caps,
|
| + Capabilities* capabilities,
|
| + const base::Callback<bool(const base::FilePath&)>& file_checker);
|
| +
|
| +#endif // CHROME_TEST_CHROMEDRIVER_CAPABILITIES_PARSER_H_
|
|
|