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

Unified Diff: chrome/test/chromedriver/capabilities_parser.h

Issue 13185004: [chromedriver] Implement proxy capability. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments & Rebase. Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698