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

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: Check unexpected capabilities failed java tests. Created 7 years, 8 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..4a90d81cf4e18b19891b08367413ba833a48beac
--- /dev/null
+++ b/chrome/test/chromedriver/capabilities_parser.h
@@ -0,0 +1,43 @@
+// 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_
kkania 2013/04/06 17:17:52 how about rename this file capabilities.h, since i
chrisgao (Use stgao instead) 2013/04/08 08:26:56 Done. I had the same idea.
+#define CHROME_TEST_CHROMEDRIVER_CAPABILITIES_PARSER_H_
+
+#include <string>
+#include <vector>
+
+#include "base/callback_forward.h"
+#include "base/command_line.h"
+#include "base/files/file_path.h"
+#include "base/memory/scoped_ptr.h"
+
+namespace base {
+class DictionaryValue;
+}
+
+class Status;
+
+struct Capabilities {
+ Capabilities();
+ ~Capabilities();
+
+ // Return true if android package is specified.
+ bool IsAndroid() const;
+
+ // |file_checker| is used to check if a file exists.
+ Status Parse(
+ const base::DictionaryValue& desired_caps,
+ const base::Callback<bool(const base::FilePath&)>& file_checker);
+
+ std::string android_package;
+
+ std::string log_path;
+ CommandLine command;
+ scoped_ptr<base::DictionaryValue> prefs;
+ scoped_ptr<base::DictionaryValue> local_state;
+ std::vector<std::string> extensions;
+};
+
+#endif // CHROME_TEST_CHROMEDRIVER_CAPABILITIES_PARSER_H_

Powered by Google App Engine
This is Rietveld 408576698