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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
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.
6 #define CHROME_TEST_CHROMEDRIVER_CAPABILITIES_PARSER_H_
7
8 #include <string>
9 #include <vector>
10
11 #include "base/callback_forward.h"
12 #include "base/command_line.h"
13 #include "base/files/file_path.h"
14 #include "base/memory/scoped_ptr.h"
15
16 namespace base {
17 class DictionaryValue;
18 }
19
20 class Status;
21
22 struct Capabilities {
23 Capabilities();
24 ~Capabilities();
25
26 // Return true if android package is specified.
27 bool IsAndroid() const;
28
29 // |file_checker| is used to check if a file exists.
30 Status Parse(
31 const base::DictionaryValue& desired_caps,
32 const base::Callback<bool(const base::FilePath&)>& file_checker);
33
34 std::string android_package;
35
36 std::string log_path;
37 CommandLine command;
38 scoped_ptr<base::DictionaryValue> prefs;
39 scoped_ptr<base::DictionaryValue> local_state;
40 std::vector<std::string> extensions;
41 };
42
43 #endif // CHROME_TEST_CHROMEDRIVER_CAPABILITIES_PARSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698